Pier Angelo Vendrame pushed to branch tor-browser-140.2.0esr-15.0-1 at The Tor Project / Applications / Tor Browser
Commits:
-
d244ff5a
by Pier Angelo Vendrame at 2025-09-04T18:30:26+02:00
1 changed file:
Changes:
| ... | ... | @@ -20,6 +20,7 @@ ChromeUtils.defineESModuleGetters(lazy, { |
| 20 | 20 | ExtensionPermissions: "resource://gre/modules/ExtensionPermissions.sys.mjs",
|
| 21 | 21 | OriginControls: "resource://gre/modules/ExtensionPermissions.sys.mjs",
|
| 22 | 22 | PERMISSION_L10N: "resource://gre/modules/ExtensionPermissionMessages.sys.mjs",
|
| 23 | + PrivateBrowsingUtils: "resource://gre/modules/PrivateBrowsingUtils.sys.mjs",
|
|
| 23 | 24 | SITEPERMS_ADDON_TYPE:
|
| 24 | 25 | "resource://gre/modules/addons/siteperms-addon-utils.sys.mjs",
|
| 25 | 26 | });
|
| ... | ... | @@ -466,7 +467,9 @@ customElements.define( |
| 466 | 467 | this.notification.options.customElementOptions;
|
| 467 | 468 | |
| 468 | 469 | let checkboxEl = this.ownerDocument.createElement("moz-checkbox");
|
| 469 | - checkboxEl.checked = grantPrivateBrowsingAllowed;
|
|
| 470 | + checkboxEl.checked =
|
|
| 471 | + grantPrivateBrowsingAllowed ||
|
|
| 472 | + lazy.PrivateBrowsingUtils.permanentPrivateBrowsing;
|
|
| 470 | 473 | checkboxEl.addEventListener("change", () => {
|
| 471 | 474 | // NOTE: the popupnotification instances will be reused
|
| 472 | 475 | // and so the callback function is destructured here to
|