From 8f2d07ec6655966a4faeaf7029121bd4baf0db05 Mon Sep 17 00:00:00 2001 From: AlexVallat Date: Wed, 1 Apr 2015 15:09:22 +0100 Subject: [PATCH] Candidate for fix for #1140 as described in https://github.com/gorhill/uBlock/issues/1140#issuecomment-88398777 --- platform/firefox/frameModule.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/platform/firefox/frameModule.js b/platform/firefox/frameModule.js index aab44730b..cee9af609 100644 --- a/platform/firefox/frameModule.js +++ b/platform/firefox/frameModule.js @@ -293,6 +293,13 @@ const contentObserver = { let docReady = (e) => { let doc = e.target; doc.removeEventListener(e.type, docReady, true); + + let messageManager = doc.docShell.getInterface(Ci.nsIContentFrameMessageManager); + + messageManager.sendSyncMessage(locationChangedMessageName, { + url: loc.href, + }); + lss(this.contentBaseURI + 'contentscript-end.js', sandbox); if ( doc.querySelector('a[href^="abp:"]') ) {