Commit graph

2566 commits

Author SHA1 Message Date
Oliver Blanthorn
8903fb68a4
Merge pull request #1471 from tridactyl/dependabot/npm_and_yarn/rss-parser-3.7.0
Bump rss-parser from 3.6.3 to 3.7.0
2019-04-17 13:38:47 +01:00
Oliver Blanthorn
14c51dfce3
Merge pull request #1470 from tridactyl/fix_sonarcloud_bugs
Fix errors found by sonarcloud
2019-04-17 13:37:34 +01:00
Oliver Blanthorn
a0ff313adb
Merge pull request #1469 from tridactyl/fix_lgtm_errors
Fix errors found by LGTM
2019-04-17 13:35:32 +01:00
Oliver Blanthorn
8e344b7c12
Merge pull request #953 from saulrh/autocontain-coexistence
Autocontain coexistence
2019-04-17 13:31:45 +01:00
Saul Reynolds-Haertle
09005940ef Make extension_info in background comply with no-unused-declarations 2019-04-17 00:29:46 -07:00
Saul Reynolds-Haertle
627340c1cd Remove management permission and shortcut in extensioninfo
This should allow the new autocontainer-coexistence code to be
committed while remaining nonfunctional so I don't have to keep it
synced until we fix the functionality for asking for permissions.
2019-04-17 00:09:55 -07:00
dependabot[bot]
4af2897137
Bump rss-parser from 3.6.3 to 3.7.0
Bumps [rss-parser](https://github.com/bobby-brennan/rss-parser) from 3.6.3 to 3.7.0.
- [Release notes](https://github.com/bobby-brennan/rss-parser/releases)
- [Commits](https://github.com/bobby-brennan/rss-parser/compare/v3.6.3...v3.7.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-17 07:07:14 +00:00
Saul Reynolds-Haertle
b4c94c97a3 Fix lint errors in autocontain-coexistence code
Also uncomment the commented-out openerTabId. I can't figure out why
I'd removed it. >_>
2019-04-16 22:59:30 -07:00
Saul Reynolds-Haertle
9f875afd28 Add some more warnings to the autocontain command about redirects 2019-04-16 22:59:30 -07:00
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