Commit graph

3229 commits

Author SHA1 Message Date
Oliver Blanthorn
9ae0116744
Merge pull request #1913 from farnoy/split-tsconfigs
Add a separate tsconfig for tests
2019-10-18 15:13:28 +01:00
Jakub Okoński
8030143ace Share the same tsconfig by adding overrides in new jest config 2019-10-18 16:02:53 +02:00
Jakub Okoński
ecd3a218aa Clean up toLowerCase unused declaration 2019-10-18 14:57:20 +02:00
Jakub Okoński
9b4d52dbd2 Try another fix 2019-10-18 14:39:47 +02:00
Jakub Okoński
0ebc44741b Try a fix for selenium export under the wrong name 2019-10-18 14:11:19 +02:00
Jakub Okoński
67fa18b4ec Add a separate tsconfig for tests
Tests run with nodejs + jest types, while the web extension code
runs with browser + web-ext type roots.
2019-10-18 13:07:38 +02:00
Jakub Okoński
bd2b988338
Fix and optimize addJump scroll handler
It was reading properties that a scroll event does not have.

It was messaging the background page with an expensive call on every
scroll event. This slowed down the page unnecessarily.

Also extracted jumps.timeoutid to the content script scope.
This variable is not useful to others outside of the current content
script. Storing it locally means we can avoid expensive communication
with the background page and only do it once we're sure we need to add
a new entry to the jump list.
2019-10-18 11:49:13 +01:00
arcnmx
7e1888a683
Don't merge local and remote configs
The entire config gets written to one storage or the other and there's
no support for partially setting values locally or remotely; so it's
meaningless to try and merge them on initialization.
2019-10-18 11:16:10 +01:00
arcnmx
e78ed69fa3
Fix storageloc setting
The storageloc setting is inherently unsyncable; since it is used to
decide which storage to use, it is always set to "local" in local
storage and "sync" in sync storage. Any updates from sync storage will
cause mayhem and override local settings with "sync".

So instead, ensure that it is always saved to local storage with the
intended value, and that remote updates cannot change it.
2019-10-18 11:16:10 +01:00
Oliver Blanthorn
71ae77a432
Merge branch 'autocontain-urlpattern' 2019-10-18 10:55:54 +01:00
Oliver Blanthorn
7a7b017c3c
Merge pull request #1764 from arcnmx/source-race-conditions
:source race conditions
2019-10-18 10:52:04 +01:00
arcnmx
f4ff5c8fc3 autocontain excmd compatibility
Retain old behaviour unless the `autocontain -u` flag is used.
2019-10-17 15:00:34 -07:00
arcnmx
f169163755 Explicitly delete unset keys
Default object keys depend on unset values explicitly not existing as
keys.
2019-10-17 14:27:26 -07:00
Oliver Blanthorn
15b498971e
Merge branch 'autocontain-relaxed' 2019-10-17 22:05:24 +01:00
Oliver Blanthorn
308ac0a043
Tidy autocontain docs 2019-10-17 22:05:13 +01:00
Oliver Blanthorn
6d39bdd343
Fix #1910: improve autocmd docs 2019-10-17 20:56:48 +01:00
arcnmx
fec571d748 autocontainmode: "strict" | "relaxed"
The prior (and still default) autocontain behaviour is to intercept all
page loads that match an aucon pattern, and may even replace a tab to do
so. "relaxed" mode is introduced here as a way to only apply the rules
when opening a new tab.
2019-10-16 11:38:36 -07:00
arcnmx
335f15b4ab configversion 1.8 to migrate autocontain patterns 2019-10-16 11:33:11 -07:00
arcnmx
6fbcb4e719 treat autocontain settings as url patterns
Be more consistent and in line with the `seturl` family of settings.
2019-10-16 11:32:12 -07:00
arcnmx
4428bf957e Synchronize with storage before setting config
Mitigate the impact of racy settings updates by synchronizing with the
storage before setting any new values.
2019-10-16 09:43:37 -07:00
arcnmx
6528c69314 Conservative config delta logic
Avoid referring to the global state and consult oldValue to determine
what settings have changed instead.
2019-10-16 09:43:37 -07:00
arcnmx
1cbf1d3f3f Partial config updates to avoid race clobbering
Updates to the global configuration object happen via storage onChanged
event, however this is not guaranteed to fire before a set() promise
resolves: https://bugzilla.mozilla.org/show_bug.cgi?id=1554088

This can lead to situations where setting multiple values in sequence
can result in a previously scheduled callback clobbering newer settings.
Slightly mitigate races by not replacing the entire object; however this
only helps with flat values and won't catch nested object updates such
as the keymap settings.
2019-10-16 09:43:37 -07:00
arcnmx
798d03890b config onChanged formatting
Minor cleanup to help make subsequent commit diffs less noisy.
2019-10-16 09:43:37 -07:00
Oliver Blanthorn
b2a6503acd
Merge pull request #1884 from tridactyl/dependabot/npm_and_yarn/immer-4.0.1
Bump immer from 3.2.1 to 4.0.1
2019-10-16 16:52:57 +01:00
Oliver Blanthorn
5ac820c787
Merge pull request #1906 from tridactyl/dependabot/npm_and_yarn/webpack-4.41.2
Bump webpack from 4.41.1 to 4.41.2
2019-10-16 16:52:40 +01:00
Oliver Blanthorn
46ab3d4282
Merge pull request #1907 from tridactyl/dependabot/npm_and_yarn/types/node-12.11.1
Bump @types/node from 12.7.12 to 12.11.1
2019-10-16 16:52:29 +01:00
dependabot-preview[bot]
e6269ca1d1
Bump @types/node from 12.7.12 to 12.11.1
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.7.12 to 12.11.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-16 13:58:25 +00:00
dependabot-preview[bot]
22c20e9759
Bump webpack from 4.41.1 to 4.41.2
Bumps [webpack](https://github.com/webpack/webpack) from 4.41.1 to 4.41.2.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v4.41.1...v4.41.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-16 13:57:53 +00:00
dependabot-preview[bot]
dfac8632ca
Bump immer from 3.2.1 to 4.0.1
Bumps [immer](https://github.com/immerjs/immer) from 3.2.1 to 4.0.1.
- [Release notes](https://github.com/immerjs/immer/releases)
- [Commits](https://github.com/immerjs/immer/compare/v3.2.1...v4.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-15 21:53:07 +00:00
Oliver Blanthorn
2f28555ac6
Merge pull request #1900 from tridactyl/dependabot/npm_and_yarn/rss-parser-3.7.3
Bump rss-parser from 3.7.2 to 3.7.3
2019-10-15 22:51:14 +01:00
Oliver Blanthorn
8e7ab565a3
Merge pull request #1899 from tridactyl/dependabot/npm_and_yarn/geckodriver-1.19.0
Bump geckodriver from 1.18.0 to 1.19.0
2019-10-15 22:50:59 +01:00
Oliver Blanthorn
eac37185e2
Merge pull request #1898 from tridactyl/dependabot/npm_and_yarn/types/jest-24.0.19
Bump @types/jest from 24.0.18 to 24.0.19
2019-10-15 22:50:47 +01:00
dependabot-preview[bot]
0a298e65f3
Bump rss-parser from 3.7.2 to 3.7.3
Bumps [rss-parser](https://github.com/bobby-brennan/rss-parser) from 3.7.2 to 3.7.3.
- [Release notes](https://github.com/bobby-brennan/rss-parser/releases)
- [Commits](https://github.com/bobby-brennan/rss-parser/compare/v3.7.2...v3.7.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-15 12:54:03 +00:00
dependabot-preview[bot]
e59ffd26b5
Bump geckodriver from 1.18.0 to 1.19.0
Bumps [geckodriver](https://github.com/vladikoff/node-geckodriver) from 1.18.0 to 1.19.0.
- [Release notes](https://github.com/vladikoff/node-geckodriver/releases)
- [Commits](https://github.com/vladikoff/node-geckodriver/compare/v1.18.0...v1.19.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-15 12:53:34 +00:00
dependabot-preview[bot]
7389faae74
Bump @types/jest from 24.0.18 to 24.0.19
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 24.0.18 to 24.0.19.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-15 12:53:10 +00:00
Oliver Blanthorn
caad30e76f
Merge pull request #1897 from tridactyl/dependabot/npm_and_yarn/webpack-4.41.1
Bump webpack from 4.41.0 to 4.41.1
2019-10-14 14:09:07 +01:00
dependabot-preview[bot]
b1a4b7f486
Bump webpack from 4.41.0 to 4.41.1
Bumps [webpack](https://github.com/webpack/webpack) from 4.41.0 to 4.41.1.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v4.41.0...v4.41.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-14 05:54:41 +00:00
Oliver Blanthorn
9ccd23d00c
Update link to signed stable version 2019-10-12 12:50:21 +01:00
Oliver Blanthorn
58cc39f8c6
Update funding information
GitHub sponsors have invited me to the beta. There isn't one for organisations
yet so you'll have to trust me to distribute the donations fairly.

I pinky promise that I will.
2019-10-11 10:51:33 +01:00
Oliver Blanthorn
fd7f7f218a
Merge pull request #1890 from kwstannard/patch-1
Remove reference to fixed issue
2019-10-10 17:54:52 +01:00
Kelly Stannard
c1811cfc5d
Remove reference to fixed issue
tab complete works with bmarks now.
2019-10-10 11:02:28 -04:00
Oliver Blanthorn
9cf7d9c74e
Merge pull request #1887 from tridactyl/dependabot/npm_and_yarn/types/node-12.7.12
Bump @types/node from 12.7.11 to 12.7.12
2019-10-10 07:32:18 +01:00
Oliver Blanthorn
84dfd32fcc
Merge pull request #1888 from tridactyl/dependabot/npm_and_yarn/typescript-3.6.4
Bump typescript from 3.6.3 to 3.6.4
2019-10-10 07:30:17 +01:00
dependabot-preview[bot]
ee52085fad
Bump typescript from 3.6.3 to 3.6.4
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.6.3 to 3.6.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v3.6.3...v3.6.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-10 06:17:59 +00:00
dependabot-preview[bot]
c5ec59dcdc
Bump @types/node from 12.7.11 to 12.7.12
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.7.11 to 12.7.12.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-09 05:52:34 +00:00
Oliver Blanthorn
691b83069d
Update donation total 2019-10-07 17:29:00 +01:00
Oliver Blanthorn
cfc9b24a80
Merge pull request #1881 from tridactyl/dependabot/npm_and_yarn/types/node-12.7.11
Bump @types/node from 12.7.9 to 12.7.11
2019-10-05 08:50:15 +08:00
Oliver Blanthorn
4870083006
Merge pull request #1880 from tridactyl/dependabot/npm_and_yarn/lodash-4.17.15
[Security] Bump lodash from 4.17.11 to 4.17.15
2019-10-05 08:50:03 +08:00
dependabot-preview[bot]
5e79399923
Bump @types/node from 12.7.9 to 12.7.11
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.7.9 to 12.7.11.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-04 05:34:21 +00:00
dependabot-preview[bot]
1001e4ed7c
[Security] Bump lodash from 4.17.11 to 4.17.15
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.11 to 4.17.15. **This update includes a security fix.**
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.11...4.17.15)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-04 05:32:44 +00:00