From 9ded9dd4e59d18a862b69b7aac14f9f35aeed96e Mon Sep 17 00:00:00 2001 From: calixteman Date: Thu, 22 Sep 2022 16:58:49 +0200 Subject: [PATCH] Revert "Don't use window.print in the Firefox builtin viewer (bug 1774427)" --- web/app.js | 6 +----- web/firefoxcom.js | 4 ---- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/web/app.js b/web/app.js index b2184e06e..87d4b81e4 100644 --- a/web/app.js +++ b/web/app.js @@ -152,10 +152,6 @@ class DefaultExternalServices { static reportTelemetry(data) {} - static print() { - window.print(); - } - static createDownloadManager(options) { throw new Error("Not implemented: createDownloadManager"); } @@ -1901,7 +1897,7 @@ const PDFViewerApplication = { if (!this.supportsPrinting) { return; } - this.externalServices.print(); + window.print(); }, bindEvents() { diff --git a/web/firefoxcom.js b/web/firefoxcom.js index c2e7860fd..0e5172b53 100644 --- a/web/firefoxcom.js +++ b/web/firefoxcom.js @@ -402,10 +402,6 @@ class FirefoxExternalServices extends DefaultExternalServices { FirefoxCom.request("updateEditorStates", data); } - static print() { - FirefoxCom.request("print", null); - } - static createL10n(options) { const mozL10n = document.mozL10n; // TODO refactor mozL10n.setExternalLocalizerServices