From 12691fdf5028108dad3ece77e4476f221ef786c6 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Thu, 2 Jul 2026 18:46:41 +0200 Subject: [PATCH] Remove unnecessary class-field resetting in `SignaturePropertiesManager.prototype.setDocument` (PR 21247 follow-up) This corresponds to the initial values of these fields, and they were *already* reset when a (previous) PDF document was closed. --- web/digital_signature_properties_manager.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/web/digital_signature_properties_manager.js b/web/digital_signature_properties_manager.js index 17f285175..3f441b94b 100644 --- a/web/digital_signature_properties_manager.js +++ b/web/digital_signature_properties_manager.js @@ -263,9 +263,6 @@ class SignaturePropertiesManager { if (!pdfDocument) { return; } - this.#signatures = []; - this.#results.clear(); - this.#pendingVerify.clear(); this.#isLoading = true; this.#render(); @@ -274,7 +271,6 @@ class SignaturePropertiesManager { signatures = await pdfDocument.getSignatures(); } catch (ex) { console.warn("getSignatures failed:", ex); - signatures = []; } if (pdfDocument !== this.#pdfDocument) { return;