mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Bug 1576254 - Update wasmForTrustedPrinciples to use a separate pref r=luke
Differential Revision: https://phabricator.services.mozilla.com/D47474 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
754ebbc4d7
commit
cac810aea7
@ -287,7 +287,7 @@ void LoadContextOptions(const char* aPrefName, void* /* aClosure */) {
|
|||||||
contextOptions.setAsmJS(GetWorkerPref<bool>(NS_LITERAL_CSTRING("asmjs")))
|
contextOptions.setAsmJS(GetWorkerPref<bool>(NS_LITERAL_CSTRING("asmjs")))
|
||||||
.setWasm(GetWorkerPref<bool>(NS_LITERAL_CSTRING("wasm")))
|
.setWasm(GetWorkerPref<bool>(NS_LITERAL_CSTRING("wasm")))
|
||||||
.setWasmForTrustedPrinciples(
|
.setWasmForTrustedPrinciples(
|
||||||
GetWorkerPref<bool>(NS_LITERAL_CSTRING("wasm")))
|
GetWorkerPref<bool>(NS_LITERAL_CSTRING("wasm_trustedprincipals")))
|
||||||
.setWasmBaseline(
|
.setWasmBaseline(
|
||||||
GetWorkerPref<bool>(NS_LITERAL_CSTRING("wasm_baselinejit")))
|
GetWorkerPref<bool>(NS_LITERAL_CSTRING("wasm_baselinejit")))
|
||||||
.setWasmIon(GetWorkerPref<bool>(NS_LITERAL_CSTRING("wasm_ionjit")))
|
.setWasmIon(GetWorkerPref<bool>(NS_LITERAL_CSTRING("wasm_ionjit")))
|
||||||
|
@ -896,6 +896,8 @@ static void ReloadPrefsCallback(const char* pref, XPCJSContext* xpccx) {
|
|||||||
|
|
||||||
bool useAsmJS = Preferences::GetBool(JS_OPTIONS_DOT_STR "asmjs");
|
bool useAsmJS = Preferences::GetBool(JS_OPTIONS_DOT_STR "asmjs");
|
||||||
bool useWasm = Preferences::GetBool(JS_OPTIONS_DOT_STR "wasm");
|
bool useWasm = Preferences::GetBool(JS_OPTIONS_DOT_STR "wasm");
|
||||||
|
bool useWasmTrustedPrincipals =
|
||||||
|
Preferences::GetBool(JS_OPTIONS_DOT_STR "wasm_trustedprincipals");
|
||||||
bool useWasmIon = Preferences::GetBool(JS_OPTIONS_DOT_STR "wasm_ionjit");
|
bool useWasmIon = Preferences::GetBool(JS_OPTIONS_DOT_STR "wasm_ionjit");
|
||||||
bool useWasmBaseline =
|
bool useWasmBaseline =
|
||||||
Preferences::GetBool(JS_OPTIONS_DOT_STR "wasm_baselinejit");
|
Preferences::GetBool(JS_OPTIONS_DOT_STR "wasm_baselinejit");
|
||||||
@ -957,7 +959,7 @@ static void ReloadPrefsCallback(const char* pref, XPCJSContext* xpccx) {
|
|||||||
JS::ContextOptionsRef(cx)
|
JS::ContextOptionsRef(cx)
|
||||||
.setAsmJS(useAsmJS)
|
.setAsmJS(useAsmJS)
|
||||||
.setWasm(useWasm)
|
.setWasm(useWasm)
|
||||||
.setWasmForTrustedPrinciples(useWasm)
|
.setWasmForTrustedPrinciples(useWasmTrustedPrincipals)
|
||||||
.setWasmIon(useWasmIon)
|
.setWasmIon(useWasmIon)
|
||||||
.setWasmBaseline(useWasmBaseline)
|
.setWasmBaseline(useWasmBaseline)
|
||||||
#ifdef ENABLE_WASM_CRANELIFT
|
#ifdef ENABLE_WASM_CRANELIFT
|
||||||
|
@ -1048,6 +1048,7 @@ pref("javascript.options.ion.full.threshold", 100000);
|
|||||||
pref("javascript.options.ion.frequent_bailout_threshold", 10);
|
pref("javascript.options.ion.frequent_bailout_threshold", 10);
|
||||||
pref("javascript.options.asmjs", true);
|
pref("javascript.options.asmjs", true);
|
||||||
pref("javascript.options.wasm", true);
|
pref("javascript.options.wasm", true);
|
||||||
|
pref("javascript.options.wasm_trustedprincipals", true);
|
||||||
pref("javascript.options.wasm_verbose", false);
|
pref("javascript.options.wasm_verbose", false);
|
||||||
pref("javascript.options.wasm_ionjit", true);
|
pref("javascript.options.wasm_ionjit", true);
|
||||||
pref("javascript.options.wasm_baselinejit", true);
|
pref("javascript.options.wasm_baselinejit", true);
|
||||||
|
Loading…
Reference in New Issue
Block a user