Merge pull request #15495 from mozilla/revert-15459-1774427

Revert "Don't use window.print in the Firefox builtin viewer (bug 1774427)"
This commit is contained in:
Jonas Jenwald 2022-09-22 17:07:21 +02:00 committed by GitHub
commit 91bdcd8b20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 9 deletions

View File

@ -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() {

View File

@ -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