Loading toolkit/components/pdfjs/content/PdfjsParent.sys.mjs +2 −0 Original line number Diff line number Diff line Loading @@ -148,6 +148,8 @@ export class PdfjsParent extends JSWindowActorParent { return this.#getSignatures(data); case "delete": return this.#deleteSignature(data); case "isVolatile": return lazy.PrivateBrowsingUtils.isBrowserPrivate(this.browser); default: return null; } Loading toolkit/components/pdfjs/content/web/viewer.mjs +5 −1 Original line number Diff line number Diff line Loading @@ -2009,6 +2009,9 @@ class SignatureStorage { async size() { return (await this.getAll()).size; } async isVolatile() { return await this.#handleSignature({action: "isVolatile"}); } async create(data) { if (await this.isFull()) { return null; Loading Loading @@ -12751,7 +12754,8 @@ class SignatureManager { this.#uiManager.removeEditListeners(); const isStorageFull = await this.#signatureStorage.isFull(); this.#saveContainer.classList.toggle("fullStorage", isStorageFull); this.#saveCheckbox.checked = !isStorageFull; const isVolatile = await this.#signatureStorage.isVolatile(); this.#saveCheckbox.checked = !(isStorageFull || isVolatile); await this.#overlayManager.open(this.#dialog); const tabType = this.#tabButtons.get("type"); tabType.focus(); Loading Loading
toolkit/components/pdfjs/content/PdfjsParent.sys.mjs +2 −0 Original line number Diff line number Diff line Loading @@ -148,6 +148,8 @@ export class PdfjsParent extends JSWindowActorParent { return this.#getSignatures(data); case "delete": return this.#deleteSignature(data); case "isVolatile": return lazy.PrivateBrowsingUtils.isBrowserPrivate(this.browser); default: return null; } Loading
toolkit/components/pdfjs/content/web/viewer.mjs +5 −1 Original line number Diff line number Diff line Loading @@ -2009,6 +2009,9 @@ class SignatureStorage { async size() { return (await this.getAll()).size; } async isVolatile() { return await this.#handleSignature({action: "isVolatile"}); } async create(data) { if (await this.isFull()) { return null; Loading Loading @@ -12751,7 +12754,8 @@ class SignatureManager { this.#uiManager.removeEditListeners(); const isStorageFull = await this.#signatureStorage.isFull(); this.#saveContainer.classList.toggle("fullStorage", isStorageFull); this.#saveCheckbox.checked = !isStorageFull; const isVolatile = await this.#signatureStorage.isVolatile(); this.#saveCheckbox.checked = !(isStorageFull || isVolatile); await this.#overlayManager.open(this.#dialog); const tabType = this.#tabButtons.get("type"); tabType.focus(); Loading