Commit c4c26ff0 authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame 🎃 Committed by jwilde
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 3ebe8fa1
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1666,6 +1666,7 @@ Preferences.addSetting(
);
Preferences.addSetting({
  id: "cookieExceptions",
  deps: ["privateBrowsingAutoStart"],
  onUserClick() {
    gSubDialog.open(
      "chrome://browser/content/preferences/dialogs/permissions.xhtml",
@@ -1679,6 +1680,9 @@ Preferences.addSetting({
      }
    );
  },
  disabled({ privateBrowsingAutoStart }) {
    return privateBrowsingAutoStart.value;
  },
});

function isCookiesAndStorageClearingOnShutdown() {