Bug 1613909 - Enable SharedArrayBuffer and wasm for broadcastChannel tests, r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D62612

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Andrea Marchesini 2020-02-13 01:26:42 +00:00
Родитель 635f568eec
Коммит 86fbe8d9d8
2 изменённых файлов: 6 добавлений и 12 удалений

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

@ -1,4 +1,10 @@
[DEFAULT]
prefs =
dom.postMessage.sharedArrayBuffer.bypassCOOP_COEP.insecure.enabled=true
browser.tabs.remote.useCrossOriginOpenerPolicy=true
browser.tabs.remote.useCrossOriginEmbedderPolicy=true
dom.postMessage.sharedArrayBuffer.withCOOP_COEP=true
javascript.options.shared_memory=true
support-files =
iframe_broadcastchannel.html
broadcastchannel_sharedWorker.js

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

@ -47,17 +47,6 @@ function create_wasmModule() {
});
}
function enable_sab() {
SpecialPowers.pushPrefEnv(
{"set": [
["dom.postMessage.sharedArrayBuffer.bypassCOOP_COEP.insecure.enabled", true],
["browser.tabs.remote.useCrossOriginOpenerPolicy", true],
["browser.tabs.remote.useCrossOriginEmbedderPolicy", true],
["dom.postMessage.sharedArrayBuffer.withCOOP_COEP", true],
["javascript.options.shared_memory", true],
]}, next);
}
function test_wasm() {
info("BroadcastChannel + WASM");
@ -139,7 +128,6 @@ function test_sab_worker() {
}
const tests = [
enable_sab,
create_wasmModule,
test_wasm,