From 13c9ecf11af81bf3ed807a961bcc43e6f1bd9814 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Thu, 14 Dec 2017 16:01:14 +0000 Subject: 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. --- content_scripts/vimium_frontend.coffee | 1 + 1 file changed, 1 insertion(+) 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. -- cgit v1.2.3