Skip to content
Snippets Groups Projects
Commit aa379dcc authored by Arthur Edelstein's avatar Arthur Edelstein
Browse files

Bug 27276: Adapt to new NoScript messaging protocol

Also, fix a bug in noscript-control.js where initialized
was never set to true.
parent 3e750278
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,8 @@ const default_caps = [
// capabilities. Most things are blocked.
let noscriptSettings = safetyLevel => (
{
"type": "NoScript.updateSettings",
"type": "NoScript.updateSettings", // backwards compatibility
"_messageName": "updateSettings",
"policy": {
"DEFAULT": {
"capabilities": default_caps[safetyLevel],
......@@ -117,6 +118,7 @@ var initialize = () => {
if (initialized) {
return;
}
initialized = true;
bindPrefAndInit(
"extensions.torbutton.security_slider",
sliderState => setNoScriptSafetyLevel(securitySliderToSafetyLevel(sliderState)));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment