From c0b0afadecb10169a3419489302a6b72dad2fad0 Mon Sep 17 00:00:00 2001 From: gorhill Date: Sat, 1 Apr 2017 19:11:58 -0400 Subject: [PATCH] minor code review + new revision for release candidate --- platform/chromium/manifest.json | 2 +- platform/firefox/bootstrap.js | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/platform/chromium/manifest.json b/platform/chromium/manifest.json index 9fa9a35e8..451e2764f 100644 --- a/platform/chromium/manifest.json +++ b/platform/chromium/manifest.json @@ -2,7 +2,7 @@ "manifest_version": 2, "name": "uBlock Origin", - "version": "1.11.5.105", + "version": "1.11.5.106", "default_locale": "en", "description": "__MSG_extShortDesc__", diff --git a/platform/firefox/bootstrap.js b/platform/firefox/bootstrap.js index 41107bbcc..7e2dddc9b 100644 --- a/platform/firefox/bootstrap.js +++ b/platform/firefox/bootstrap.js @@ -60,10 +60,7 @@ function startup(data/*, reason*/) { return; } - let appShell = Cc['@mozilla.org/appshell/appShellService;1'] - .getService(Ci.nsIAppShellService); - - waitForHiddenWindow(appShell); + waitForHiddenWindow(); } function createBgProcess(parentDocument) { @@ -109,7 +106,10 @@ function getWindowlessBrowserFrame(appShell) { } -function waitForHiddenWindow(appShell) { +function waitForHiddenWindow() { + let appShell = Cc['@mozilla.org/appshell/appShellService;1'] + .getService(Ci.nsIAppShellService); + let isReady = function() { var hiddenDoc;