ma1 pushed to branch tor-browser-140.2.0esr-15.0-1 at The Tor Project / Applications / Tor Browser
Commits:
-
c83c49f7
by hackademix at 2025-08-27T18:53:07+02:00
2 changed files:
- toolkit/components/pdfjs/content/PdfjsParent.sys.mjs
- toolkit/components/pdfjs/content/web/viewer.mjs
Changes:
... | ... | @@ -152,6 +152,8 @@ export class PdfjsParent extends JSWindowActorParent { |
152 | 152 | return this.#getSignatures(data);
|
153 | 153 | case "delete":
|
154 | 154 | return this.#deleteSignature(data);
|
155 | + case "isVolatile":
|
|
156 | + return lazy.PrivateBrowsingUtils.isBrowserPrivate(this.browser);
|
|
155 | 157 | default:
|
156 | 158 | return null;
|
157 | 159 | }
|
... | ... | @@ -2009,6 +2009,9 @@ class SignatureStorage { |
2009 | 2009 | async size() {
|
2010 | 2010 | return (await this.getAll()).size;
|
2011 | 2011 | }
|
2012 | + async isVolatile() {
|
|
2013 | + return await this.#handleSignature({action: "isVolatile"});
|
|
2014 | + }
|
|
2012 | 2015 | async create(data) {
|
2013 | 2016 | if (await this.isFull()) {
|
2014 | 2017 | return null;
|
... | ... | @@ -12736,7 +12739,8 @@ class SignatureManager { |
12736 | 12739 | this.#uiManager.removeEditListeners();
|
12737 | 12740 | const isStorageFull = await this.#signatureStorage.isFull();
|
12738 | 12741 | this.#saveContainer.classList.toggle("fullStorage", isStorageFull);
|
12739 | - this.#saveCheckbox.checked = !isStorageFull;
|
|
12742 | + const isVolatile = await this.#signatureStorage.isVolatile();
|
|
12743 | + this.#saveCheckbox.checked = !(isStorageFull || isVolatile);
|
|
12740 | 12744 | await this.#overlayManager.open(this.#dialog);
|
12741 | 12745 | const tabType = this.#tabButtons.get("type");
|
12742 | 12746 | tabType.focus();
|