зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1357486: Enable OOP extensions by default on Windows. r=aswan
MozReview-Commit-ID: 3Tet7tNtmGx --HG-- extra : source : 7124641a168ffaa20461764f2f554992dfd856e6 extra : absorb_source : a8b47dcf788b841a832ea5a8669f8940b2412f6d extra : histedit_source : dd3cab4db72f4d24b3103834a644173632064d25
This commit is contained in:
Родитель
330469aeb9
Коммит
c57409fca6
|
@ -84,6 +84,10 @@ pref("extensions.geckoProfiler.getSymbolRules", "localBreakpad,remoteBreakpad");
|
|||
pref("extensions.webextensions.base-content-security-policy", "script-src 'self' https://* moz-extension: blob: filesystem: 'unsafe-eval' 'unsafe-inline'; object-src 'self' https://* moz-extension: blob: filesystem:;");
|
||||
pref("extensions.webextensions.default-content-security-policy", "script-src 'self'; object-src 'self';");
|
||||
|
||||
#ifdef XP_WIN
|
||||
pref("extensions.webextensions.remote", true);
|
||||
#endif
|
||||
|
||||
// Extensions that should not be flagged as legacy in about:addons
|
||||
pref("extensions.legacy.exceptions", "{972ce4c6-7e08-4474-a285-3208198ce6fd},testpilot@cliqz.com,@testpilot-containers,jid1-NeEaf3sAHdKHPA@jetpack,@activity-streams,pulse@mozilla.com,@testpilot-addon,@min-vid,tabcentertest1@mozilla.com,snoozetabs@mozilla.com,speaktome@mozilla.com,hoverpad@mozilla.com");
|
||||
|
||||
|
|
|
@ -38,11 +38,11 @@ const {CustomizableUI} = Cu.import("resource:///modules/CustomizableUI.jsm", {})
|
|||
// browser-remote.ini. When running from browser-remote.ini, the tests are
|
||||
// copied to the sub-directory "test-oop-extensions", which we detect here, and
|
||||
// use to select our configuration.
|
||||
if (gTestPath.includes("test-oop-extensions")) {
|
||||
SpecialPowers.pushPrefEnv({set: [
|
||||
["extensions.webextensions.remote", true],
|
||||
["layers.popups.compositing.enabled", true],
|
||||
]});
|
||||
let remote = gTestPath.includes("test-oop-extensions");
|
||||
SpecialPowers.pushPrefEnv({set: [
|
||||
["extensions.webextensions.remote", remote],
|
||||
]});
|
||||
if (remote) {
|
||||
// We don't want to reset this at the end of the test, so that we don't have
|
||||
// to spawn a new extension child process for each test unit.
|
||||
SpecialPowers.setIntPref("dom.ipc.keepProcessesAlive.extension", 1);
|
||||
|
|
|
@ -754,10 +754,6 @@ this.Extension = class extends ExtensionData {
|
|||
if (this.remote && processCount !== 1) {
|
||||
throw new Error("Out-of-process WebExtensions are not supported with multiple child processes");
|
||||
}
|
||||
if (this.remote && !Services.prefs.getBoolPref("layers.popups.compositing.enabled", false)) {
|
||||
Cu.reportError(new Error("Remote extensions should not be enabled without also setting " +
|
||||
"the layers.popups.compositing.enabled preference to true"));
|
||||
}
|
||||
|
||||
// This is filled in the first time an extension child is created.
|
||||
this.parentMessageManager = null;
|
||||
|
|
|
@ -8,11 +8,11 @@ var {AppConstants} = SpecialPowers.Cu.import("resource://gre/modules/AppConstant
|
|||
// mochitest-remote.ini. When running from mochitest-remote.ini, the tests are
|
||||
// copied to the sub-directory "test-oop-extensions", which we detect here, and
|
||||
// use to select our configuration.
|
||||
if (location.pathname.includes("test-oop-extensions")) {
|
||||
SpecialPowers.pushPrefEnv({set: [
|
||||
["extensions.webextensions.remote", true],
|
||||
["layers.popups.compositing.enabled", true],
|
||||
]});
|
||||
let remote = location.pathname.includes("test-oop-extensions");
|
||||
SpecialPowers.pushPrefEnv({set: [
|
||||
["extensions.webextensions.remote", remote],
|
||||
]});
|
||||
if (remote) {
|
||||
// We don't want to reset this at the end of the test, so that we don't have
|
||||
// to spawn a new extension child process for each test unit.
|
||||
SpecialPowers.setIntPref("dom.ipc.keepProcessesAlive.extension", 1);
|
||||
|
|
Загрузка…
Ссылка в новой задаче