mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-26 03:35:33 +00:00
Bug 1381853 - lazy load browser-customization.js into the browser window, r=mconley.
This commit is contained in:
parent
8a99c9ce27
commit
9422b19f8d
@ -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 */
|
||||
|
||||
/**
|
||||
* Customization handler prepares this browser window for entering and exiting
|
||||
* customization mode by handling customizationstarting and customizationending
|
||||
|
@ -259,7 +259,7 @@ var TabsInTitlebar = {
|
||||
|
||||
ToolbarIconColor.inferFromText("tabsintitlebar", TabsInTitlebar.enabled);
|
||||
|
||||
if (CustomizationHandler.isCustomizing()) {
|
||||
if (document.documentElement.hasAttribute("customizing")) {
|
||||
gCustomizeMode.updateLWTStyling();
|
||||
}
|
||||
},
|
||||
|
@ -118,6 +118,8 @@ XPCOMUtils.defineLazyScriptGetter(this, ["LightWeightThemeWebInstaller",
|
||||
"chrome://browser/content/browser-addons.js");
|
||||
XPCOMUtils.defineLazyScriptGetter(this, "ctrlTab",
|
||||
"chrome://browser/content/browser-ctrlTab.js");
|
||||
XPCOMUtils.defineLazyScriptGetter(this, "CustomizationHandler",
|
||||
"chrome://browser/content/browser-customization.js");
|
||||
|
||||
|
||||
// lazy service getters
|
||||
|
@ -10,7 +10,6 @@
|
||||
<script type="application/javascript" src="chrome://browser/content/browser.js"/>
|
||||
|
||||
<script type="application/javascript" src="chrome://browser/content/browser-captivePortal.js"/>
|
||||
<script type="application/javascript" src="chrome://browser/content/browser-customization.js"/>
|
||||
<script type="application/javascript" src="chrome://browser/content/browser-compacttheme.js"/>
|
||||
<script type="application/javascript" src="chrome://browser/content/browser-feeds.js"/>
|
||||
<script type="application/javascript" src="chrome://browser/content/browser-fullScreenAndPointerLock.js"/>
|
||||
|
Loading…
Reference in New Issue
Block a user