зеркало из https://github.com/mozilla/gecko-dev.git
Bug 924089 - 'Enable SharedWorker by default', r=ehsan+khuey.
This commit is contained in:
Родитель
3233aad341
Коммит
4932a60252
|
@ -454,6 +454,7 @@ var interfaceNamesInGlobalScope =
|
|||
"SettingsLock",
|
||||
"SettingsManager",
|
||||
{name: "ShadowRoot", pref: "dom.webcomponents.enabled"},
|
||||
{name: "SharedWorker", pref: "dom.workers.sharedWorkers.enabled"},
|
||||
"SimpleGestureEvent",
|
||||
{name: "SimpleTest", xbl: false},
|
||||
"SmartCardEvent",
|
||||
|
|
|
@ -30,9 +30,9 @@
|
|||
let testGenerator = (function() {
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
|
||||
ok(!("SharedWorker" in window), "No SharedWorker without pref set");
|
||||
ok(!("WorkerMessagePort" in window),
|
||||
"No WorkerMessagePort without pref set");
|
||||
if (!SpecialPowers.getBoolPref(swPref)) {
|
||||
ok(!("SharedWorker" in window), "No SharedWorker without pref set");
|
||||
}
|
||||
|
||||
SpecialPowers.pushPrefEnv({ set: [[swPref, true]] }, sendToGenerator);
|
||||
yield undefined;
|
||||
|
|
|
@ -22,9 +22,9 @@
|
|||
let testGenerator = (function() {
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
|
||||
ok(!("SharedWorker" in window), "No SharedWorker without pref set");
|
||||
ok(!("WorkerMessagePort" in window),
|
||||
"No WorkerMessagePort without pref set");
|
||||
if (!SpecialPowers.getBoolPref(swPref)) {
|
||||
ok(!("SharedWorker" in window), "No SharedWorker without pref set");
|
||||
}
|
||||
|
||||
SpecialPowers.pushPrefEnv({ set: [[swPref, true]] }, sendToGenerator);
|
||||
yield undefined;
|
||||
|
|
|
@ -27,7 +27,9 @@
|
|||
const errorLine = 86;
|
||||
const errorColumn = 0;
|
||||
|
||||
ok(!("SharedWorker" in window), "No SharedWorker without pref set");
|
||||
if (!SpecialPowers.getBoolPref(swPref)) {
|
||||
ok(!("SharedWorker" in window), "No SharedWorker without pref set");
|
||||
}
|
||||
|
||||
SpecialPowers.pushPrefEnv({ set: [[swPref, true]] }, function() {
|
||||
var worker = new SharedWorker(filename);
|
||||
|
|
|
@ -100,7 +100,7 @@ pref("dom.workers.enabled", true);
|
|||
pref("dom.workers.maxPerDomain", 20);
|
||||
|
||||
// Whether or not Shared Web Workers are enabled.
|
||||
pref("dom.workers.sharedWorkers.enabled", false);
|
||||
pref("dom.workers.sharedWorkers.enabled", true);
|
||||
|
||||
// Whether nonzero values can be returned from performance.timing.*
|
||||
pref("dom.enable_performance", true);
|
||||
|
|
Загрузка…
Ссылка в новой задаче