Commit 5d66b060 authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame 🎃
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 681373de
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -2735,10 +2735,11 @@ Preferences.addSetting(

Preferences.addSetting({
  id: "cookieExceptions",
  disabled: () =>
  deps: ["privateBrowsingAutoStart"],
  disabled: ({ privateBrowsingAutoStart }) =>
    Services.prefs.prefIsLocked(
      "pref.privacy.disable_button.cookie_exceptions"
    ),
    ) || privateBrowsingAutoStart.value,
  onUserClick() {
    gSubDialog.open(
      "chrome://browser/content/preferences/dialogs/permissions.xhtml",