Commit graph

3107 commits

Author SHA1 Message Date
Saul Reynolds-Haertle
fde403c3da Add warning when we fail to talk to MAC extension 2019-04-16 22:59:30 -07:00
Saul Reynolds-Haertle
b648539a89 Fix whitespace in manifest 2019-04-16 22:59:30 -07:00
Saul Reynolds-Haertle
bc482ec64d Add new check to autocontain code to suppress some double-opens 2019-04-16 22:59:30 -07:00
Saul Reynolds-Haertle
5c529e26a2 Add explanation for 'management' permission to amo.md 2019-04-16 22:59:30 -07:00
Saul Reynolds-Haertle
0582e4fb5e Augment typing in DefaultMap to admit use by autocontainer code 2019-04-16 22:59:30 -07:00
Saul Reynolds-Haertle
5c7ae5331f Teach tabopen to use autocontainer directives when -c is not set
Apparently I have to run the prettifier before I can touch this file?

This behavior is actually pretty simple: If -c isn't set, check to see
if there's an autocontainer directive that matches the url. If there
is a matching container, go ahead and use it.
2019-04-16 22:59:30 -07:00
Saul Reynolds-Haertle
6f726d7092 Teach autocontainers to coexist with other container-management exts
This has a few moving parts.

First, we need a bit of code for keeping track of what other
extensions are installed and enabled. This isn't completely trivial
because we need to listen for "on {en,dis}abled" and "on
{,un}installed" events. This requires a new permission, `management`,
which is _annoying_, but not having this permission would require
extension detection to be done using kludgy messaging hacks that would
be on the critical path for essentially every navigation operation.

Second, we need to write code to talk to the other addons and ask them
if they're handling things. Thankfully they do provide public APIs and
and we can use their sample code to do exactly what we need to do.

Third, it turns out some important chunks of the firefox webext API
aren't handled by the web-ext-browser ts declaration we're
using. They *are* handled by a PR on @types/firefox-webext-browser,
though, so we can copy and paste that to make TS happy.

Fourth, and finally, we need to add some code to the autocontainer
logic to use the compatibility code. This is pretty easy, but
autocontainer logic starts taking a noticeable amount of time becuase
of all the sequences awaits we're doing, so I also have to tweak
things to do all of the async stuff in parallel.
2019-04-16 22:59:30 -07:00
glacambre
74db069ef2
Fix errors found by sonarcloud
https://sonarcloud.io/dashboard?id=tridactyl
2019-04-17 07:49:41 +02:00
glacambre
51f88f51c9
Fix errors found by LGTM
https://lgtm.com/projects/g/tridactyl/tridactyl/overview/
2019-04-17 07:18:18 +02:00
Oliver Blanthorn
92fcb5d043
Merge pull request #1467 from tridactyl/dependabot/npm_and_yarn/jest-24.7.1
Bump jest from 24.1.0 to 24.7.1
2019-04-16 18:09:42 +01:00
dependabot[bot]
a5d802ed39
Bump jest from 24.1.0 to 24.7.1
Bumps [jest](https://github.com/facebook/jest) from 24.1.0 to 24.7.1.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v24.1.0...v24.7.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-16 16:42:34 +00:00
Oliver Blanthorn
7bb37e3fdc
Merge pull request #1465 from tridactyl/dependabot/npm_and_yarn/ts-jest-24.0.2
Bump ts-jest from 24.0.0 to 24.0.2
2019-04-16 17:40:29 +01:00
Oliver Blanthorn
e19e7091fd
Merge pull request #1462 from tridactyl/dependabot/npm_and_yarn/fuse.js-3.4.4
Bump fuse.js from 3.4.2 to 3.4.4
2019-04-16 17:40:02 +01:00
dependabot[bot]
5e5a296a2e
Bump ts-jest from 24.0.0 to 24.0.2
Bumps [ts-jest](https://github.com/kulshekhar/ts-jest) from 24.0.0 to 24.0.2.
- [Release notes](https://github.com/kulshekhar/ts-jest/releases)
- [Changelog](https://github.com/kulshekhar/ts-jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kulshekhar/ts-jest/compare/v24.0.0...v24.0.2)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-16 15:01:32 +00:00
Oliver Blanthorn
926009dca3
Merge pull request #1466 from tridactyl/dependabot/npm_and_yarn/copy-webpack-plugin-5.0.2
Bump copy-webpack-plugin from 5.0.0 to 5.0.2
2019-04-16 16:00:58 +01:00
Oliver Blanthorn
a853e66c8c
Merge pull request #1460 from tridactyl/dependabot/npm_and_yarn/lodash-4.17.11
[Security] Bump lodash from 4.17.10 to 4.17.11
2019-04-16 15:58:00 +01:00
Oliver Blanthorn
abe57a013b
Merge pull request #1464 from tridactyl/dependabot/npm_and_yarn/prettier-1.17.0
Bump prettier from 1.16.4 to 1.17.0
2019-04-16 15:57:24 +01:00
Oliver Blanthorn
5765a30b9d
Merge pull request #1463 from tridactyl/dependabot/npm_and_yarn/webpack-cli-3.3.0
Bump webpack-cli from 3.2.3 to 3.3.0
2019-04-16 15:57:11 +01:00
dependabot[bot]
eac3e3801f
Bump fuse.js from 3.4.2 to 3.4.4
Bumps [fuse.js](https://github.com/krisk/Fuse) from 3.4.2 to 3.4.4.
- [Release notes](https://github.com/krisk/Fuse/releases)
- [Changelog](https://github.com/krisk/Fuse/blob/master/CHANGELOG.md)
- [Commits](https://github.com/krisk/Fuse/compare/v3.4.2...v3.4.4)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-16 14:54:19 +00:00
Oliver Blanthorn
0196f328e7
Merge pull request #1461 from tridactyl/dependabot/npm_and_yarn/tslint-5.15.0
Bump tslint from 5.14.0 to 5.15.0
2019-04-16 15:52:38 +01:00
dependabot[bot]
3cef264aec
Bump copy-webpack-plugin from 5.0.0 to 5.0.2
Bumps [copy-webpack-plugin](https://github.com/webpack-contrib/copy-webpack-plugin) from 5.0.0 to 5.0.2.
- [Release notes](https://github.com/webpack-contrib/copy-webpack-plugin/releases)
- [Changelog](https://github.com/webpack-contrib/copy-webpack-plugin/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/copy-webpack-plugin/compare/v5.0.0...v5.0.2)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-16 14:52:10 +00:00
dependabot[bot]
0ee05af1b0
[Security] Bump lodash from 4.17.10 to 4.17.11
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.10 to 4.17.11. **This update includes security fixes.**
- [Release notes](https://github.com/lodash/lodash/releases)
- [Changelog](https://github.com/lodash/lodash/blob/master/CHANGELOG)
- [Commits](https://github.com/lodash/lodash/compare/4.17.10...4.17.11)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-16 14:51:55 +00:00
Oliver Blanthorn
06370da67a
Merge pull request #1459 from tridactyl/dependabot/npm_and_yarn/command-line-args-5.1.1
Bump command-line-args from 5.0.2 to 5.1.1
2019-04-16 15:49:58 +01:00
dependabot[bot]
fdc6b9c46f
Bump prettier from 1.16.4 to 1.17.0
Bumps [prettier](https://github.com/prettier/prettier) from 1.16.4 to 1.17.0.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/1.16.4...1.17.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-16 14:47:21 +00:00
dependabot[bot]
a0dafa1a66
Bump webpack-cli from 3.2.3 to 3.3.0
Bumps [webpack-cli](https://github.com/webpack/webpack-cli) from 3.2.3 to 3.3.0.
- [Release notes](https://github.com/webpack/webpack-cli/releases)
- [Changelog](https://github.com/webpack/webpack-cli/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-cli/compare/V.3.2.3...v.3.3.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-16 14:46:42 +00:00
dependabot[bot]
7370efc664
Bump tslint from 5.14.0 to 5.15.0
Bumps [tslint](https://github.com/palantir/tslint) from 5.14.0 to 5.15.0.
- [Release notes](https://github.com/palantir/tslint/releases)
- [Changelog](https://github.com/palantir/tslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/palantir/tslint/compare/5.14.0...5.15.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-16 14:45:27 +00:00
dependabot[bot]
088a7e1781
Bump command-line-args from 5.0.2 to 5.1.1
Bumps [command-line-args](https://github.com/75lb/command-line-args) from 5.0.2 to 5.1.1.
- [Release notes](https://github.com/75lb/command-line-args/releases)
- [Commits](https://github.com/75lb/command-line-args/compare/v5.0.2...v5.1.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-16 14:44:51 +00:00
Oliver Blanthorn
e806d88c70
Merge pull request #1457 from tridactyl/tslint_rules_reactivation
TSLint: enable no-unused-declaration rule
2019-04-16 14:25:57 +01:00
glacambre
923f9caf92
TSLint: enable no-unused-declaration rule
This rule requires adding a new set of rules, tslint-etc.
no-unused-declaration used to be available in tslint:recommended but was
deprecated when --noUnusedVariables was added to typescript. The problem
with using TypeScript's --noUnusedVariables is that it turns unused
declarations into an error and prevents compilation, which isn't fun
when you're just prototyping things.
2019-04-16 08:30:31 +02:00
Oliver Blanthorn
62bedd669a
Merge pull request #1456 from tridactyl/tslint_rules_reactivation
TSLint: re-enable no-identical-functions rule
2019-04-15 18:59:19 +01:00
glacambre
af20bbe4df
TSLint: re-enable no-identical-functions rule 2019-04-15 19:47:41 +02:00
Oliver Blanthorn
0a50f84c53
Merge pull request #1452 from tridactyl/tslint_rules_reactivation2
TSLint: re-enable prefer-const rule
2019-04-14 11:47:47 +01:00
glacambre
3fe1e5a091
TSLint: re-enable no-empty rule 2019-04-14 10:27:22 +02:00
glacambre
2b11d1d464
TSLint: re-enable prefer-const rule 2019-04-14 08:01:26 +02:00
Oliver Blanthorn
65523419e5
Merge pull request #1451 from tridactyl/tslint_rules_reactivation2
Tslint rules reactivation2
2019-04-12 09:06:23 +01:00
glacambre
0a8c3cd2f6
TSLint: re-enable whitespace rule 2019-04-12 05:54:31 +02:00
glacambre
37dfddca4e
TSLint: ignore generated files
This enables removing file-specific rules-disabling comments in
excmds.ts
2019-04-12 05:50:01 +02:00
glacambre
ff8f313aa5
Turn double-equals into triple-equals
See https://github.com/tridactyl/tridactyl/pull/1451
2019-04-10 12:28:47 +02:00
glacambre
f16dc99589
TSLint: re-enable no-var-keyword rule 2019-04-10 06:54:10 +02:00
glacambre
5f05833cde
TSLint: re-enable no-variable-usage-before-declaration rule 2019-04-10 06:51:14 +02:00
glacambre
bd65146ca8
TSLint: re-enable no-unnecessary-initializer rule 2019-04-10 06:47:46 +02:00
glacambre
3ff4713247
TSLint: re-enable no-trailing-whitespace rule 2019-04-10 06:39:19 +02:00
Oliver Blanthorn
a7281585e4
Merge pull request #1450 from tridactyl/fix_saveas_completion
Fix completions/FileSystem.ts
2019-04-09 07:32:20 +01:00
glacambre
b54e08aa42
Fix completions/FileSystem.ts
Prettier broke it a long time ago.
2019-04-09 06:45:21 +02:00
Oliver Blanthorn
d736117a38
Merge pull request #1442 from tridactyl/autofill_new_issues
Add `:issue` excmd and autocmd to autofill new issues
2019-04-08 20:32:08 +01:00
glacambre
52103a0578
Add :issue excmd and autocmd to autofill new issues 2019-04-08 09:10:34 +02:00
Oliver Blanthorn
331233b32e
Merge pull request #1439 from tridactyl/replace_prettier_with_tslint
Replace prettier with tslint where possible
2019-04-07 09:47:19 +01:00
glacambre
93a66ec96b
Replace prettier with tslint where possible 2019-04-06 22:52:07 +02:00
Oliver Blanthorn
e46fa09ba6
Merge pull request #1437 from tridactyl/tslint_rules_reactivation
Tslint rules reactivation
2019-04-05 13:32:40 +01:00
glacambre
00ce513ccc
TSLint: re-enable no-conditional-assignment rule 2019-04-05 13:38:14 +02:00