Skip to content
Snippets Groups Projects
Commit 996ce0a4 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 508d9784
No related branches found
No related tags found
1 merge request!111MB 274: Rebase alpha onto 115.9.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