From 8f969ecab54f70df408fd07e12a661d488c8622e Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Thu, 30 Oct 2025 17:24:44 -0700 Subject: [PATCH] Fix: delay iframe DOM removal for print in FF --- .../components/document-detail/document-detail.component.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src-ui/src/app/components/document-detail/document-detail.component.ts b/src-ui/src/app/components/document-detail/document-detail.component.ts index 3c692e4961..9c0c845929 100644 --- a/src-ui/src/app/components/document-detail/document-detail.component.ts +++ b/src-ui/src/app/components/document-detail/document-detail.component.ts @@ -1455,9 +1455,7 @@ export class DocumentDetailComponent // FF throws cross-origin error on onafterprint const isCrossOriginAfterPrintError = err instanceof DOMException && - (err.name === 'SecurityError' || - err.message.includes('onafterprint')) && - err.message.includes('cross-origin') + err.message.includes('onafterprint') if (!isCrossOriginAfterPrintError) { this.toastService.showError($localize`Print failed.`, err) } -- 2.47.3