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

function isCookiesAndStorageClearingOnShutdown() {