Skip to content
Snippets Groups Projects
Verified Commit afb9a182 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 146b9349
1 merge request!105MB 268: Rebase Mullvad Browser onto Firefox 115.8.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