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:
commit
91bdcd8b20
@ -152,10 +152,6 @@ class DefaultExternalServices {
|
|||||||
|
|
||||||
static reportTelemetry(data) {}
|
static reportTelemetry(data) {}
|
||||||
|
|
||||||
static print() {
|
|
||||||
window.print();
|
|
||||||
}
|
|
||||||
|
|
||||||
static createDownloadManager(options) {
|
static createDownloadManager(options) {
|
||||||
throw new Error("Not implemented: createDownloadManager");
|
throw new Error("Not implemented: createDownloadManager");
|
||||||
}
|
}
|
||||||
@ -1901,7 +1897,7 @@ const PDFViewerApplication = {
|
|||||||
if (!this.supportsPrinting) {
|
if (!this.supportsPrinting) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.externalServices.print();
|
window.print();
|
||||||
},
|
},
|
||||||
|
|
||||||
bindEvents() {
|
bindEvents() {
|
||||||
|
@ -402,10 +402,6 @@ class FirefoxExternalServices extends DefaultExternalServices {
|
|||||||
FirefoxCom.request("updateEditorStates", data);
|
FirefoxCom.request("updateEditorStates", data);
|
||||||
}
|
}
|
||||||
|
|
||||||
static print() {
|
|
||||||
FirefoxCom.request("print", null);
|
|
||||||
}
|
|
||||||
|
|
||||||
static createL10n(options) {
|
static createL10n(options) {
|
||||||
const mozL10n = document.mozL10n;
|
const mozL10n = document.mozL10n;
|
||||||
// TODO refactor mozL10n.setExternalLocalizerServices
|
// TODO refactor mozL10n.setExternalLocalizerServices
|
||||||
|
Loading…
x
Reference in New Issue
Block a user