зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1812973
- Add xulStore interface to ESLint's services.json. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D168042
This commit is contained in:
Родитель
c8516c6e39
Коммит
99c7240948
|
@ -19,7 +19,6 @@ XPCOMUtils.defineLazyServiceGetters(lazy, {
|
|||
"nsIHandlerService",
|
||||
],
|
||||
gMIMEService: ["@mozilla.org/mime;1", "nsIMIMEService"],
|
||||
gXulStore: ["@mozilla.org/xul/xulstore;1", "nsIXULStore"],
|
||||
});
|
||||
|
||||
ChromeUtils.defineESModuleGetters(lazy, {
|
||||
|
@ -890,7 +889,7 @@ export var Policies = {
|
|||
// If this policy was already applied and the user chose to re-hide the
|
||||
// menu bar, do not show it again.
|
||||
runOncePerModification("displayMenuBar", value, () => {
|
||||
lazy.gXulStore.setValue(
|
||||
Services.xulStore.setValue(
|
||||
BROWSER_DOCUMENT_URL,
|
||||
"toolbar-menubar",
|
||||
"autohide",
|
||||
|
@ -908,7 +907,7 @@ export var Policies = {
|
|||
value = "true";
|
||||
break;
|
||||
}
|
||||
lazy.gXulStore.setValue(
|
||||
Services.xulStore.setValue(
|
||||
BROWSER_DOCUMENT_URL,
|
||||
"toolbar-menubar",
|
||||
"autohide",
|
||||
|
|
|
@ -137,8 +137,7 @@
|
|||
win.close();
|
||||
|
||||
// Clean up the XUL store for the given window.
|
||||
let XULStore = Cc["@mozilla.org/xul/xulstore;1"].getService(Ci.nsIXULStore);
|
||||
XULStore.removeDocument(chrome_url);
|
||||
Services.xulStore.removeDocument(chrome_url);
|
||||
|
||||
SimpleTest.finish();
|
||||
}
|
||||
|
|
|
@ -57,5 +57,6 @@
|
|||
"nsIWindowMediator": "wm",
|
||||
"nsIWindowWatcher": "ww",
|
||||
"nsIXULAppInfo": "appinfo",
|
||||
"nsIXULRuntime": "appinfo"
|
||||
"nsIXULRuntime": "appinfo",
|
||||
"nsIXULStore": "xulStore"
|
||||
}
|
Загрузка…
Ссылка в новой задаче