Pier Angelo Vendrame pushed to branch mullvad-browser-140.2.0esr-15.0-1 at The 
Tor Project / Applications / Mullvad Browser


Commits:
ac67b549 by Pier Angelo Vendrame at 2025-09-05T18:56:43+02:00
BB 43664: Automatically check the PBM checkbox when in always-on PBM.

- - - - -


1 changed file:

- browser/base/content/browser-addons.js


Changes:

=====================================
browser/base/content/browser-addons.js
=====================================
@@ -20,6 +20,7 @@ ChromeUtils.defineESModuleGetters(lazy, {
   ExtensionPermissions: "resource://gre/modules/ExtensionPermissions.sys.mjs",
   OriginControls: "resource://gre/modules/ExtensionPermissions.sys.mjs",
   PERMISSION_L10N: 
"resource://gre/modules/ExtensionPermissionMessages.sys.mjs",
+  PrivateBrowsingUtils: "resource://gre/modules/PrivateBrowsingUtils.sys.mjs",
   SITEPERMS_ADDON_TYPE:
     "resource://gre/modules/addons/siteperms-addon-utils.sys.mjs",
 });
@@ -466,7 +467,9 @@ customElements.define(
         this.notification.options.customElementOptions;
 
       let checkboxEl = this.ownerDocument.createElement("moz-checkbox");
-      checkboxEl.checked = grantPrivateBrowsingAllowed;
+      checkboxEl.checked =
+        grantPrivateBrowsingAllowed ||
+        lazy.PrivateBrowsingUtils.permanentPrivateBrowsing;
       checkboxEl.addEventListener("change", () => {
         // NOTE: the popupnotification instances will be reused
         // and so the callback function is destructured here to



View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/commit/ac67b54995ea32be0ed1ca3648c443c3654e76f4

-- 
View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/commit/ac67b54995ea32be0ed1ca3648c443c3654e76f4
You're receiving this email because of your account on gitlab.torproject.org.


_______________________________________________
tor-commits mailing list -- tor-commits@lists.torproject.org
To unsubscribe send an email to tor-commits-le...@lists.torproject.org

Reply via email to