diff --git a/web/pdf_viewer.js b/web/pdf_viewer.js index 69374c29344d4..c53678ba365d3 100644 --- a/web/pdf_viewer.js +++ b/web/pdf_viewer.js @@ -880,7 +880,11 @@ class PDFViewer { viewer.before(element); } - if (annotationEditorMode !== AnnotationEditorType.DISABLE) { + if ( + ((typeof PDFJSDev !== "undefined" && PDFJSDev.test("MOZCENTRAL")) || + typeof AbortSignal.any === "function") && + annotationEditorMode !== AnnotationEditorType.DISABLE + ) { const mode = annotationEditorMode; if (pdfDocument.isPureXfa) {