diff options
| author | Stephen Blott | 2017-12-14 16:01:14 +0000 |
|---|---|---|
| committer | Stephen Blott | 2017-12-14 16:01:16 +0000 |
| commit | 13c9ecf11af81bf3ed807a961bcc43e6f1bd9814 (patch) | |
| tree | 2adc2b70d07c667fb5cd4823ba0307b74c9a6602 | |
| parent | 797e25231b306403167f5a3f90d6cea6d9ba6dda (diff) | |
| download | vimium-13c9ecf11af81bf3ed807a961bcc43e6f1bd9814.tar.bz2 | |
Fix enabled state on webNavigation.
`forTrusted()` for `checkEnabledAfterURLChange()` after web navigation
is being called with a request (not an event). So make the request
trusted.
The symptom was that pass keys and the enabled state was not being
correctly updated on web navigation.
| -rw-r--r-- | content_scripts/vimium_frontend.coffee | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee index 432fa7a2..3a9e182d 100644 --- a/content_scripts/vimium_frontend.coffee +++ b/content_scripts/vimium_frontend.coffee @@ -146,6 +146,7 @@ initializePreDomReady = -> linkHintsMessage: (request) -> HintCoordinator[request.messageType] request chrome.runtime.onMessage.addListener (request, sender, sendResponse) -> + request.isTrusted = true # Some requests intended for the background page are delivered to the options page too; ignore them. unless request.handler and not request.name # Some request are handled elsewhere; ignore them too. |
