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:
Tom Ritter 2019-09-14 03:36:14 +00:00
Родитель c0f73bf1fa
Коммит 46be6f9ea3
4 изменённых файлов: 9 добавлений и 2 удалений

Просмотреть файл

@ -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");

1
toolkit/components/extensions/moz.build Normal file → Executable file
Просмотреть файл

@ -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
);