Commit 8bc9aef5 authored by Georg Koppen's avatar Georg Koppen
Browse files

Bug 21324: Don't update NoScript button with timer update

parent 09056067
......@@ -140,9 +140,13 @@ var torbutton_unique_pref_observer =
}
return;
}
if (topic != "nsPref:changed") return;
if (data.startsWith("noscript.")) {
// Make sure the NoScript button shows the current NoScript state. We
// don't want to run the update function, though, if just a timer gets
// updated. Fixes bug 21324.
if (data.startsWith("noscript.") &&
data !== "noscript.subscription.lastCheck") {
torbutton_update_noscript_button();
}
switch (data) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment