Skip to content
Snippets Groups Projects
Verified Commit 1a5e3762 authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame :jack_o_lantern:
Browse files

MB 160: Disable the cookie exceptions button

Besides disabling the "Delete on close checkbox", disable also the
"Manage Exceptions" button when always using PBM.
parent 9125bb97
Branches
No related tags found
1 merge request!128MB 317: Rebased Mullvad Browser stable onto 115.13.0esr
......@@ -1597,6 +1597,7 @@ var gPrivacyPane = {
let blockCookiesMenu = document.getElementById("blockCookiesMenu");
let deleteOnCloseCheckbox = document.getElementById("deleteOnClose");
let deleteOnCloseNote = document.getElementById("deleteOnCloseNote");
let cookieExceptions = document.getElementById("cookieExceptions");
let blockCookies = behavior != Ci.nsICookieService.BEHAVIOR_ACCEPT;
let cookieBehaviorLocked = Services.prefs.prefIsLocked(
"network.cookie.cookieBehavior"
......@@ -1611,6 +1612,7 @@ var gPrivacyPane = {
).value;
deleteOnCloseCheckbox.disabled = privateBrowsing || completelyBlockCookies;
deleteOnCloseNote.hidden = !privateBrowsing;
cookieExceptions.disabled = privateBrowsing;
switch (behavior) {
case Ci.nsICookieService.BEHAVIOR_ACCEPT:
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment