Backed out changeset 3a50d857d097 (bug 1591469) for newtab failures complaining about AboutReaderParent CLOSED TREE

This commit is contained in:
Bogdan Tara
2020-05-12 06:13:10 +03:00
parent f725b3a71c
commit c4f6e12333
23 changed files with 241 additions and 383 deletions

View File

@@ -334,7 +334,7 @@ var FullZoom = {
async reduce() {
let browser = gBrowser.selectedBrowser;
if (browser.currentURI.spec.startsWith("about:reader")) {
browser.sendMessageToActor("Reader:ZoomOut", {}, "AboutReader");
browser.messageManager.sendAsyncMessage("Reader:ZoomOut");
} else if (this._isPDFViewer(browser)) {
browser.messageManager.sendAsyncMessage("PDFJS:ZoomOut");
} else {
@@ -351,7 +351,7 @@ var FullZoom = {
async enlarge() {
let browser = gBrowser.selectedBrowser;
if (browser.currentURI.spec.startsWith("about:reader")) {
browser.sendMessageToActor("Reader:ZoomIn", {}, "AboutReader");
browser.messageManager.sendAsyncMessage("Reader:ZoomIn");
} else if (this._isPDFViewer(browser)) {
browser.messageManager.sendAsyncMessage("PDFJS:ZoomIn");
} else {
@@ -371,7 +371,7 @@ var FullZoom = {
changeZoomBy(aBrowser, aValue) {
if (aBrowser.currentURI.spec.startsWith("about:reader")) {
const message = aValue > 0 ? "Reader::ZoomIn" : "Reader:ZoomOut";
aBrowser.sendMessageToActor(message, {}, "AboutReader");
aBrowser.messageManager.sendAsyncMessage(message);
return;
} else if (this._isPDFViewer(aBrowser)) {
const message = aValue > 0 ? "PDFJS::ZoomIn" : "PDFJS:ZoomOut";
@@ -412,7 +412,7 @@ var FullZoom = {
reset: function FullZoom_reset(browser = gBrowser.selectedBrowser) {
let forceValue;
if (browser.currentURI.spec.startsWith("about:reader")) {
browser.sendMessageToActor("Reader:ResetZoom", {}, "AboutReader");
browser.messageManager.sendAsyncMessage("Reader:ResetZoom");
} else if (this._isPDFViewer(browser)) {
browser.messageManager.sendAsyncMessage("PDFJS:ZoomReset");
// Ensure that the UI elements of the PDF viewer won't be zoomed in/out