diff --git a/browser/base/content/browser-addons.js b/browser/base/content/browser-addons.js index c98695c79ba6..bba3fcf9e3cc 100644 --- a/browser/base/content/browser-addons.js +++ b/browser/base/content/browser-addons.js @@ -3,6 +3,9 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +// This file is loaded into the browser window scope. +/* eslint-env mozilla/browser-window */ + // Removes a doorhanger notification if all of the installs it was notifying // about have ended in some way. function removeNotificationOnEnd(notification, installs) { @@ -29,7 +32,7 @@ function removeNotificationOnEnd(notification, installs) { } } -const gXPInstallObserver = { +var gXPInstallObserver = { _findChildShell(aDocShell, aSoughtShell) { if (aDocShell == aSoughtShell) return aDocShell; @@ -482,7 +485,7 @@ const gXPInstallObserver = { } }; -const gExtensionsNotifications = { +var gExtensionsNotifications = { initialized: false, init() { this.updateAlerts(); diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js index c36c015a6c58..c24bcd6c5141 100755 --- a/browser/base/content/browser.js +++ b/browser/base/content/browser.js @@ -112,6 +112,10 @@ XPCOMUtils.defineLazyScriptGetter(this, "PanelUI", "chrome://browser/content/customizableui/panelUI.js"); XPCOMUtils.defineLazyScriptGetter(this, "gViewSourceUtils", "chrome://global/content/viewSourceUtils.js"); +XPCOMUtils.defineLazyScriptGetter(this, ["LightWeightThemeWebInstaller", + "gExtensionsNotifications", + "gXPInstallObserver"], + "chrome://browser/content/browser-addons.js"); // lazy service getters diff --git a/browser/base/content/global-scripts.inc b/browser/base/content/global-scripts.inc index 385c87c38b6d..9986c04cb8f9 100755 --- a/browser/base/content/global-scripts.inc +++ b/browser/base/content/global-scripts.inc @@ -9,7 +9,6 @@