Bug 1525099 - correctly select the right content blocking option, r=ewright a=lizzard
Differential Revision:
https://phabricator.services.mozilla.com/D19143
--- a/browser/components/preferences/in-content/privacy.js
+++ b/browser/components/preferences/in-content/privacy.js
@@ -476,34 +476,36 @@ var gPrivacyPane = {
+ `?step=3&newtab=true`;
let warningLinks = document.getElementsByClassName("content-blocking-warning-learn-how");
for (let warningLink of warningLinks) {
warningLink.setAttribute("href", contentBlockingTour);
}
},
highlightCBCategory() {
- let value = document.getElementById("contentBlockingCategoryRadio").value;
+ let value = Preferences.get("browser.contentblocking.category").value;
let standardEl = document.getElementById("contentBlockingOptionStandard");
let strictEl = document.getElementById("contentBlockingOptionStrict");
let customEl = document.getElementById("contentBlockingOptionCustom");
standardEl.classList.remove("selected");
strictEl.classList.remove("selected");
customEl.classList.remove("selected");
switch (value) {
- case "standard":
- standardEl.classList.add("selected");
- break;
case "strict":
strictEl.classList.add("selected");
break;
case "custom":
customEl.classList.add("selected");
break;
+ case "standard":
+ /* fall through */
+ default:
+ standardEl.classList.add("selected");
+ break;
}
},
// TRACKING PROTECTION MODE
/**
* Selects the right item of the Tracking Protection menulist and checkbox.
*/