From 885c68495b12fa2ecaec9123417d5c70d8b36915 Mon Sep 17 00:00:00 2001 From: gorhill Date: Fri, 29 May 2015 11:19:10 -0400 Subject: [PATCH] this fixes overlooked remnants of other ubock --- platform/firefox/bootstrap.js | 2 +- platform/firefox/frameScript.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/firefox/bootstrap.js b/platform/firefox/bootstrap.js index 77a6254a0..c17ec3cc9 100644 --- a/platform/firefox/bootstrap.js +++ b/platform/firefox/bootstrap.js @@ -27,7 +27,7 @@ /******************************************************************************/ // Accessing the context of the background page: -// var win = Services.appShell.hiddenDOMWindow.document.querySelector('iframe[src*=ublock]').contentWindow; +// var win = Services.appShell.hiddenDOMWindow.document.querySelector('iframe[src*=ublock0]').contentWindow; let bgProcess; let version; diff --git a/platform/firefox/frameScript.js b/platform/firefox/frameScript.js index 388c7913b..45d5e1aed 100644 --- a/platform/firefox/frameScript.js +++ b/platform/firefox/frameScript.js @@ -50,11 +50,11 @@ let injectContentScripts = function(win) { }; let onLoadCompleted = function() { - removeMessageListener('ublock-load-completed', onLoadCompleted); + removeMessageListener('ublock0-load-completed', onLoadCompleted); injectContentScripts(content); }; -addMessageListener('ublock-load-completed', onLoadCompleted); +addMessageListener('ublock0-load-completed', onLoadCompleted); if ( docShell ) { let Ci = Components.interfaces;