From 8af9d7f3617ef04c33d5b160e36159939f3839df Mon Sep 17 00:00:00 2001 From: AlexVallat Date: Thu, 26 Mar 2015 21:00:56 +0000 Subject: [PATCH] Use a nsIWebProgressListener instead of a tabsProgressListener for location change monitoring --- platform/firefox/frameScript.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/platform/firefox/frameScript.js b/platform/firefox/frameScript.js index bb5f898..e8c3cba 100644 --- a/platform/firefox/frameScript.js +++ b/platform/firefox/frameScript.js @@ -21,13 +21,15 @@ /******************************************************************************/ +var locationChangeListener; // Keep alive while frameScript is alive + (function() { 'use strict'; /******************************************************************************/ -let {contentObserver} = Components.utils.import( +let {contentObserver, LocationChangeListener} = Components.utils.import( Components.stack.filename.replace('Script', 'Module'), null ); @@ -54,6 +56,8 @@ let onLoadCompleted = function() { addMessageListener('ublock-load-completed', onLoadCompleted); +locationChangeListener = new LocationChangeListener(docShell); + /******************************************************************************/ })();