зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1577284 - Refactor out a data: URI in loadProcessScript r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D45730 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
c0f73bf1fa
Коммит
46be6f9ea3
|
@ -77,7 +77,7 @@ const whitelist = {
|
|||
processScripts: new Set([
|
||||
"chrome://global/content/process-content.js",
|
||||
"resource:///modules/ContentObservers.js",
|
||||
"data:,ChromeUtils.import('resource://gre/modules/ExtensionProcessScript.jsm')",
|
||||
"resource://gre/modules/extensionProcessScriptLoader.js",
|
||||
"resource://devtools/client/jsonview/converter-observer.js",
|
||||
"resource://gre/modules/WebRequestContent.js",
|
||||
]),
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* 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/. */
|
||||
"use strict";
|
||||
|
||||
ChromeUtils.import("resource://gre/modules/ExtensionProcessScript.jsm");
|
|
@ -20,6 +20,7 @@ EXTRA_JS_MODULES += [
|
|||
'ExtensionPermissions.jsm',
|
||||
'ExtensionPreferencesManager.jsm',
|
||||
'ExtensionProcessScript.jsm',
|
||||
'extensionProcessScriptLoader.js',
|
||||
'ExtensionSettingsStore.jsm',
|
||||
'ExtensionShortcuts.jsm',
|
||||
'ExtensionStorage.jsm',
|
||||
|
|
|
@ -87,7 +87,7 @@ XPCOMUtils.defineLazyPreferenceGetter(
|
|||
// since it needs to be able to track things like new frameLoader globals that
|
||||
// are created before other framework code has been initialized.
|
||||
Services.ppmm.loadProcessScript(
|
||||
"data:,ChromeUtils.import('resource://gre/modules/ExtensionProcessScript.jsm')",
|
||||
"resource://gre/modules/extensionProcessScriptLoader.js",
|
||||
true
|
||||
);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче