Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Applications
torbutton
Commits
2a15af35
Commit
2a15af35
authored
Aug 19, 2019
by
Matthew Finkel
Committed by
Georg Koppen
Aug 27, 2019
Browse files
Bug 31140 - Do not enable IonMonkey at low security level on AARCH64
parent
40b7d137
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/modules/security-prefs.js
View file @
2a15af35
...
...
@@ -5,6 +5,11 @@
let
{
classes
:
Cc
,
utils
:
Cu
}
=
Components
;
let
{
getBoolPref
,
setBoolPref
,
getIntPref
,
setIntPref
}
=
Cu
.
import
(
"
resource://gre/modules/Services.jsm
"
,
{}).
Services
.
prefs
;
// Used for detecting the current system architecture
let
{
XPCOMABI
}
=
Cu
.
import
(
"
resource://gre/modules/Services.jsm
"
,
{}).
Services
.
appinfo
;
let
{
bindPref
,
bindPrefAndInit
}
=
Cu
.
import
(
"
resource://torbutton/modules/utils.js
"
,
{});
let
logger
=
Components
.
classes
[
"
@torproject.org/torbutton-logger;1
"
]
...
...
@@ -41,8 +46,16 @@ const kCustomPref = "extensions.torbutton.security_custom";
// to the pref database.
var
write_setting_to_prefs
=
function
(
settingIndex
)
{
Object
.
keys
(
kSecuritySettings
).
forEach
(
prefName
=>
setBoolPref
(
prefName
,
kSecuritySettings
[
prefName
][
settingIndex
]));
prefName
=>
{
// Bug 31140 - Do not enable IonMonkey on AARCH64.
if
(
XPCOMABI
.
split
(
"
-
"
)[
0
]
==
"
aarch64
"
&&
prefName
==
"
javascript.options.ion
"
)
{
setBoolPref
(
prefName
,
false
);
continue
;
}
setBoolPref
(
prefName
,
kSecuritySettings
[
prefName
][
settingIndex
]);
});
};
// __read_setting_from_prefs()__.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment