2018-07-30 08:05:14 +03:00
|
|
|
/* vim: set ts=2 sw=2 sts=2 et tw=80: */
|
2018-05-26 04:22:09 +03:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2018-07-30 08:05:14 +03:00
|
|
|
"use strict";
|
2018-05-26 04:22:09 +03:00
|
|
|
|
2018-07-30 08:05:14 +03:00
|
|
|
var EXPORTED_SYMBOLS = ["PrintingChild"];
|
2018-05-26 04:22:09 +03:00
|
|
|
|
2019-01-17 21:18:31 +03:00
|
|
|
const { ActorChild } = ChromeUtils.import(
|
|
|
|
"resource://gre/modules/ActorChild.jsm"
|
|
|
|
);
|
|
|
|
const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
|
2018-05-26 04:22:09 +03:00
|
|
|
|
2019-12-11 16:37:51 +03:00
|
|
|
ChromeUtils.defineModuleGetter(
|
|
|
|
this,
|
|
|
|
"setTimeout",
|
|
|
|
"resource://gre/modules/Timer.jsm"
|
|
|
|
);
|
|
|
|
|
2018-05-26 04:22:09 +03:00
|
|
|
ChromeUtils.defineModuleGetter(
|
|
|
|
this,
|
|
|
|
"ReaderMode",
|
|
|
|
"resource://gre/modules/ReaderMode.jsm"
|
|
|
|
);
|
|
|
|
|
2018-07-30 08:05:14 +03:00
|
|
|
class PrintingChild extends ActorChild {
|
2018-05-26 04:22:09 +03:00
|
|
|
// Bug 1088061: nsPrintJob's DoCommonPrint currently expects the
|
|
|
|
// progress listener passed to it to QI to an nsIPrintingPromptService
|
|
|
|
// in order to know that a printing progress dialog has been shown. That's
|
|
|
|
// really all the interface is used for, hence the fact that I don't actually
|
|
|
|
// implement the interface here. Bug 1088061 has been filed to remove
|
|
|
|
// this hackery.
|
|
|
|
|
|
|
|
get shouldSavePrintSettings() {
|
2020-02-14 05:59:45 +03:00
|
|
|
return Services.prefs.getBoolPref("print.save_print_settings");
|
2018-07-30 08:05:14 +03:00
|
|
|
}
|
2018-05-26 04:22:09 +03:00
|
|
|
|
2018-07-30 08:05:14 +03:00
|
|
|
handleEvent(event) {
|
2018-05-26 04:22:09 +03:00
|
|
|
switch (event.type) {
|
|
|
|
case "PrintingError": {
|
|
|
|
let win = event.target.defaultView;
|
2018-08-02 22:26:47 +03:00
|
|
|
let wbp = win.getInterface(Ci.nsIWebBrowserPrint);
|
2018-05-26 04:22:09 +03:00
|
|
|
let nsresult = event.detail;
|
2018-07-30 08:05:14 +03:00
|
|
|
this.mm.sendAsyncMessage("Printing:Error", {
|
2018-05-26 04:22:09 +03:00
|
|
|
isPrinting: wbp.doingPrint,
|
|
|
|
nsresult,
|
|
|
|
});
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
case "printPreviewUpdate": {
|
|
|
|
let info = this.printPreviewInitializingInfo;
|
|
|
|
if (!info) {
|
|
|
|
// If there is no printPreviewInitializingInfo then we did not
|
|
|
|
// initiate the preview so ignore this event.
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Only send Printing:Preview:Entered message on first update, indicated
|
|
|
|
// by printPreviewInitializingInfo.entered not being set.
|
|
|
|
if (!info.entered) {
|
|
|
|
info.entered = true;
|
2018-07-30 08:05:14 +03:00
|
|
|
this.mm.sendAsyncMessage("Printing:Preview:Entered", {
|
2018-05-26 04:22:09 +03:00
|
|
|
failed: false,
|
|
|
|
changingBrowsers: info.changingBrowsers,
|
|
|
|
});
|
|
|
|
|
|
|
|
// If we have another request waiting, dispatch it now.
|
|
|
|
if (info.nextRequest) {
|
|
|
|
Services.tm.dispatchToMainThread(info.nextRequest);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Always send page count update.
|
2018-07-30 08:05:14 +03:00
|
|
|
this.updatePageCount(this.mm);
|
2018-05-26 04:22:09 +03:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
2018-07-30 08:05:14 +03:00
|
|
|
}
|
2018-05-26 04:22:09 +03:00
|
|
|
|
2018-07-30 08:05:14 +03:00
|
|
|
receiveMessage(message) {
|
2018-05-26 04:22:09 +03:00
|
|
|
let data = message.data;
|
|
|
|
switch (message.name) {
|
|
|
|
case "Printing:Preview:Enter": {
|
2018-07-30 08:05:14 +03:00
|
|
|
this.enterPrintPreview(
|
|
|
|
Services.wm.getOuterWindowWithId(data.windowID),
|
2018-05-26 04:22:09 +03:00
|
|
|
data.simplifiedMode,
|
|
|
|
data.changingBrowsers,
|
2020-05-29 20:37:01 +03:00
|
|
|
data.lastUsedPrinterName
|
2018-05-26 04:22:09 +03:00
|
|
|
);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
case "Printing:Preview:Exit": {
|
2018-07-30 08:05:14 +03:00
|
|
|
this.exitPrintPreview();
|
2018-05-26 04:22:09 +03:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
case "Printing:Preview:Navigate": {
|
2018-07-30 08:05:14 +03:00
|
|
|
this.navigate(data.navType, data.pageNum);
|
2018-05-26 04:22:09 +03:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
case "Printing:Preview:ParseDocument": {
|
2018-07-30 08:05:14 +03:00
|
|
|
this.parseDocument(
|
|
|
|
data.URL,
|
|
|
|
Services.wm.getOuterWindowWithId(data.windowID)
|
|
|
|
);
|
2018-05-26 04:22:09 +03:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
2018-07-30 08:05:14 +03:00
|
|
|
}
|
2018-05-26 04:22:09 +03:00
|
|
|
|
2020-05-29 20:37:01 +03:00
|
|
|
getPrintSettings(lastUsedPrinterName) {
|
2018-05-26 04:22:09 +03:00
|
|
|
try {
|
|
|
|
let PSSVC = Cc["@mozilla.org/gfx/printsettings-service;1"].getService(
|
|
|
|
Ci.nsIPrintSettingsService
|
|
|
|
);
|
|
|
|
|
|
|
|
let printSettings = PSSVC.globalPrintSettings;
|
|
|
|
if (!printSettings.printerName) {
|
2020-05-29 20:37:01 +03:00
|
|
|
printSettings.printerName = lastUsedPrinterName;
|
2018-05-26 04:22:09 +03:00
|
|
|
}
|
|
|
|
// First get any defaults from the printer
|
|
|
|
PSSVC.initPrintSettingsFromPrinter(
|
|
|
|
printSettings.printerName,
|
|
|
|
printSettings
|
|
|
|
);
|
|
|
|
// now augment them with any values from last time
|
|
|
|
PSSVC.initPrintSettingsFromPrefs(
|
|
|
|
printSettings,
|
|
|
|
true,
|
|
|
|
printSettings.kInitSaveAll
|
|
|
|
);
|
|
|
|
|
|
|
|
return printSettings;
|
|
|
|
} catch (e) {
|
|
|
|
Cu.reportError(e);
|
|
|
|
}
|
|
|
|
|
|
|
|
return null;
|
2018-07-30 08:05:14 +03:00
|
|
|
}
|
2018-05-26 04:22:09 +03:00
|
|
|
|
2018-07-30 08:05:14 +03:00
|
|
|
parseDocument(URL, contentWindow) {
|
2018-05-26 04:22:09 +03:00
|
|
|
// By using ReaderMode primitives, we parse given document and place the
|
|
|
|
// resulting JS object into the DOM of current browser.
|
|
|
|
let articlePromise = ReaderMode.parseDocument(contentWindow.document).catch(
|
|
|
|
Cu.reportError
|
|
|
|
);
|
2018-07-30 08:05:14 +03:00
|
|
|
articlePromise.then(article => {
|
2018-05-26 04:22:09 +03:00
|
|
|
// We make use of a web progress listener in order to know when the content we inject
|
|
|
|
// into the DOM has finished rendering. If our layout engine is still painting, we
|
|
|
|
// will wait for MozAfterPaint event to be fired.
|
2018-07-30 08:05:14 +03:00
|
|
|
let { mm } = this;
|
2018-05-26 04:22:09 +03:00
|
|
|
let webProgressListener = {
|
|
|
|
onStateChange(webProgress, req, flags, status) {
|
|
|
|
if (flags & Ci.nsIWebProgressListener.STATE_STOP) {
|
|
|
|
webProgress.removeProgressListener(webProgressListener);
|
2018-07-25 02:47:42 +03:00
|
|
|
let domUtils = contentWindow.windowUtils;
|
2018-05-26 04:22:09 +03:00
|
|
|
// Here we tell the parent that we have parsed the document successfully
|
|
|
|
// using ReaderMode primitives and we are able to enter on preview mode.
|
|
|
|
if (domUtils.isMozAfterPaintPending) {
|
|
|
|
let onPaint = function() {
|
2018-07-30 08:05:14 +03:00
|
|
|
mm.removeEventListener("MozAfterPaint", onPaint);
|
|
|
|
mm.sendAsyncMessage("Printing:Preview:ReaderModeReady");
|
2018-05-26 04:22:09 +03:00
|
|
|
};
|
|
|
|
contentWindow.addEventListener("MozAfterPaint", onPaint);
|
|
|
|
// This timer need when display list invalidation doesn't invalidate.
|
2019-12-11 16:37:51 +03:00
|
|
|
setTimeout(() => {
|
2018-07-30 08:05:14 +03:00
|
|
|
mm.removeEventListener("MozAfterPaint", onPaint);
|
|
|
|
mm.sendAsyncMessage("Printing:Preview:ReaderModeReady");
|
2018-05-26 04:22:09 +03:00
|
|
|
}, 100);
|
|
|
|
} else {
|
2018-07-30 08:05:14 +03:00
|
|
|
mm.sendAsyncMessage("Printing:Preview:ReaderModeReady");
|
2018-05-26 04:22:09 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
QueryInterface: ChromeUtils.generateQI([
|
|
|
|
Ci.nsIWebProgressListener,
|
|
|
|
Ci.nsISupportsWeakReference,
|
|
|
|
Ci.nsIObserver,
|
|
|
|
]),
|
|
|
|
};
|
|
|
|
|
2018-07-30 08:05:14 +03:00
|
|
|
const { content, docShell } = this.mm;
|
2018-05-26 04:22:09 +03:00
|
|
|
|
|
|
|
// Here we QI the docShell into a nsIWebProgress passing our web progress listener in.
|
|
|
|
let webProgress = docShell
|
|
|
|
.QueryInterface(Ci.nsIInterfaceRequestor)
|
|
|
|
.getInterface(Ci.nsIWebProgress);
|
|
|
|
webProgress.addProgressListener(
|
|
|
|
webProgressListener,
|
|
|
|
Ci.nsIWebProgress.NOTIFY_STATE_REQUEST
|
|
|
|
);
|
|
|
|
|
|
|
|
content.document.head.innerHTML = "";
|
|
|
|
|
|
|
|
// Set base URI of document. Print preview code will read this value to
|
|
|
|
// populate the URL field in print settings so that it doesn't show
|
|
|
|
// "about:blank" as its URI.
|
|
|
|
let headBaseElement = content.document.createElement("base");
|
|
|
|
headBaseElement.setAttribute("href", URL);
|
|
|
|
content.document.head.appendChild(headBaseElement);
|
|
|
|
|
|
|
|
// Create link element referencing aboutReader.css and append it to head
|
|
|
|
let headStyleElement = content.document.createElement("link");
|
|
|
|
headStyleElement.setAttribute("rel", "stylesheet");
|
|
|
|
headStyleElement.setAttribute(
|
|
|
|
"href",
|
|
|
|
"chrome://global/skin/aboutReader.css"
|
|
|
|
);
|
|
|
|
headStyleElement.setAttribute("type", "text/css");
|
|
|
|
content.document.head.appendChild(headStyleElement);
|
|
|
|
|
|
|
|
// Create link element referencing simplifyMode.css and append it to head
|
|
|
|
headStyleElement = content.document.createElement("link");
|
|
|
|
headStyleElement.setAttribute("rel", "stylesheet");
|
|
|
|
headStyleElement.setAttribute(
|
|
|
|
"href",
|
|
|
|
"chrome://global/content/simplifyMode.css"
|
|
|
|
);
|
|
|
|
headStyleElement.setAttribute("type", "text/css");
|
|
|
|
content.document.head.appendChild(headStyleElement);
|
|
|
|
|
|
|
|
content.document.body.innerHTML = "";
|
|
|
|
|
|
|
|
// Create container div (main element) and append it to body
|
|
|
|
let containerElement = content.document.createElement("div");
|
|
|
|
containerElement.setAttribute("id", "container");
|
|
|
|
content.document.body.appendChild(containerElement);
|
|
|
|
|
|
|
|
// Reader Mode might return null if there's a failure when parsing the document.
|
|
|
|
// We'll render the error message for the Simplify Page document when that happens.
|
|
|
|
if (article) {
|
|
|
|
// Set title of document
|
|
|
|
content.document.title = article.title;
|
|
|
|
|
|
|
|
// Create header div and append it to container
|
|
|
|
let headerElement = content.document.createElement("div");
|
|
|
|
headerElement.setAttribute("id", "reader-header");
|
|
|
|
headerElement.setAttribute("class", "header");
|
|
|
|
containerElement.appendChild(headerElement);
|
|
|
|
|
|
|
|
// Jam the article's title and byline into header div
|
|
|
|
let titleElement = content.document.createElement("h1");
|
|
|
|
titleElement.setAttribute("id", "reader-title");
|
|
|
|
titleElement.textContent = article.title;
|
|
|
|
headerElement.appendChild(titleElement);
|
|
|
|
|
|
|
|
let bylineElement = content.document.createElement("div");
|
|
|
|
bylineElement.setAttribute("id", "reader-credits");
|
|
|
|
bylineElement.setAttribute("class", "credits");
|
|
|
|
bylineElement.textContent = article.byline;
|
|
|
|
headerElement.appendChild(bylineElement);
|
|
|
|
|
|
|
|
// Display header element
|
|
|
|
headerElement.style.display = "block";
|
|
|
|
|
|
|
|
// Create content div and append it to container
|
|
|
|
let contentElement = content.document.createElement("div");
|
|
|
|
contentElement.setAttribute("class", "content");
|
|
|
|
containerElement.appendChild(contentElement);
|
|
|
|
|
|
|
|
// Jam the article's content into content div
|
|
|
|
let readerContent = content.document.createElement("div");
|
|
|
|
readerContent.setAttribute("id", "moz-reader-content");
|
|
|
|
contentElement.appendChild(readerContent);
|
|
|
|
|
|
|
|
let articleUri = Services.io.newURI(article.url);
|
|
|
|
let parserUtils = Cc["@mozilla.org/parserutils;1"].getService(
|
|
|
|
Ci.nsIParserUtils
|
|
|
|
);
|
|
|
|
let contentFragment = parserUtils.parseFragment(
|
|
|
|
article.content,
|
|
|
|
Ci.nsIParserUtils.SanitizerDropForms |
|
|
|
|
Ci.nsIParserUtils.SanitizerAllowStyle,
|
|
|
|
false,
|
|
|
|
articleUri,
|
|
|
|
readerContent
|
|
|
|
);
|
|
|
|
|
|
|
|
readerContent.appendChild(contentFragment);
|
|
|
|
|
|
|
|
// Display reader content element
|
|
|
|
readerContent.style.display = "block";
|
|
|
|
} else {
|
|
|
|
let aboutReaderStrings = Services.strings.createBundle(
|
|
|
|
"chrome://global/locale/aboutReader.properties"
|
|
|
|
);
|
|
|
|
let errorMessage = aboutReaderStrings.GetStringFromName(
|
|
|
|
"aboutReader.loadError"
|
|
|
|
);
|
|
|
|
|
|
|
|
content.document.title = errorMessage;
|
|
|
|
|
|
|
|
// Create reader message div and append it to body
|
|
|
|
let readerMessageElement = content.document.createElement("div");
|
|
|
|
readerMessageElement.setAttribute("class", "reader-message");
|
|
|
|
readerMessageElement.textContent = errorMessage;
|
|
|
|
containerElement.appendChild(readerMessageElement);
|
|
|
|
|
|
|
|
// Display reader message element
|
|
|
|
readerMessageElement.style.display = "block";
|
|
|
|
}
|
|
|
|
});
|
2018-07-30 08:05:14 +03:00
|
|
|
}
|
2018-05-26 04:22:09 +03:00
|
|
|
|
2018-07-30 08:05:14 +03:00
|
|
|
enterPrintPreview(
|
|
|
|
contentWindow,
|
|
|
|
simplifiedMode,
|
|
|
|
changingBrowsers,
|
2020-05-29 20:37:01 +03:00
|
|
|
lastUsedPrinterName
|
2018-07-30 08:05:14 +03:00
|
|
|
) {
|
|
|
|
const { docShell } = this;
|
2018-05-26 04:22:09 +03:00
|
|
|
try {
|
2020-05-29 20:37:01 +03:00
|
|
|
let printSettings = this.getPrintSettings(lastUsedPrinterName);
|
2018-05-26 04:22:09 +03:00
|
|
|
|
|
|
|
// If we happen to be on simplified mode, we need to set docURL in order
|
|
|
|
// to generate header/footer content correctly, since simplified tab has
|
|
|
|
// "about:blank" as its URI.
|
|
|
|
if (printSettings && simplifiedMode) {
|
|
|
|
printSettings.docURL = contentWindow.document.baseURI;
|
2019-07-05 12:04:56 +03:00
|
|
|
}
|
2018-05-26 04:22:09 +03:00
|
|
|
|
|
|
|
// The print preview docshell will be in a different TabGroup, so
|
|
|
|
// printPreviewInitialize must be run in a separate runnable to avoid
|
|
|
|
// touching a different TabGroup in our own runnable.
|
|
|
|
let printPreviewInitialize = () => {
|
|
|
|
try {
|
2018-07-30 08:05:14 +03:00
|
|
|
let listener = new PrintingListener(this.mm);
|
2018-05-26 04:22:09 +03:00
|
|
|
|
|
|
|
this.printPreviewInitializingInfo = { changingBrowsers };
|
2019-05-07 16:12:44 +03:00
|
|
|
docShell
|
|
|
|
.initOrReusePrintPreviewViewer()
|
|
|
|
.printPreview(printSettings, contentWindow, listener);
|
2018-05-26 04:22:09 +03:00
|
|
|
} catch (error) {
|
|
|
|
// This might fail if we, for example, attempt to print a XUL document.
|
|
|
|
// In that case, we inform the parent to bail out of print preview.
|
|
|
|
Cu.reportError(error);
|
|
|
|
this.printPreviewInitializingInfo = null;
|
2018-07-30 08:05:14 +03:00
|
|
|
this.mm.sendAsyncMessage("Printing:Preview:Entered", {
|
|
|
|
failed: true,
|
|
|
|
});
|
2018-05-26 04:22:09 +03:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
// If printPreviewInitializingInfo.entered is not set we are still in the
|
|
|
|
// initial setup of a previous preview request. We delay this one until
|
|
|
|
// that has finished because running them at the same time will almost
|
|
|
|
// certainly cause failures.
|
|
|
|
if (
|
|
|
|
this.printPreviewInitializingInfo &&
|
|
|
|
!this.printPreviewInitializingInfo.entered
|
|
|
|
) {
|
|
|
|
this.printPreviewInitializingInfo.nextRequest = printPreviewInitialize;
|
|
|
|
} else {
|
|
|
|
Services.tm.dispatchToMainThread(printPreviewInitialize);
|
|
|
|
}
|
|
|
|
} catch (error) {
|
|
|
|
// This might fail if we, for example, attempt to print a XUL document.
|
|
|
|
// In that case, we inform the parent to bail out of print preview.
|
|
|
|
Cu.reportError(error);
|
2018-07-30 08:05:14 +03:00
|
|
|
this.mm.sendAsyncMessage("Printing:Preview:Entered", { failed: true });
|
2018-05-26 04:22:09 +03:00
|
|
|
}
|
2018-07-30 08:05:14 +03:00
|
|
|
}
|
2018-05-26 04:22:09 +03:00
|
|
|
|
2018-07-30 08:05:14 +03:00
|
|
|
exitPrintPreview(glo) {
|
2018-05-26 04:22:09 +03:00
|
|
|
this.printPreviewInitializingInfo = null;
|
2019-05-07 16:12:44 +03:00
|
|
|
this.docShell.initOrReusePrintPreviewViewer().exitPrintPreview();
|
2018-07-30 08:05:14 +03:00
|
|
|
}
|
2018-05-26 04:22:09 +03:00
|
|
|
|
2018-07-30 08:05:14 +03:00
|
|
|
updatePageCount() {
|
2019-05-07 16:12:44 +03:00
|
|
|
let numPages = this.docShell.initOrReusePrintPreviewViewer()
|
|
|
|
.printPreviewNumPages;
|
2018-07-30 08:05:14 +03:00
|
|
|
this.mm.sendAsyncMessage("Printing:Preview:UpdatePageCount", {
|
2018-05-26 04:22:09 +03:00
|
|
|
numPages,
|
|
|
|
});
|
2018-07-30 08:05:14 +03:00
|
|
|
}
|
2018-05-26 04:22:09 +03:00
|
|
|
|
2018-07-30 08:05:14 +03:00
|
|
|
navigate(navType, pageNum) {
|
2019-06-03 14:48:21 +03:00
|
|
|
this.docShell
|
|
|
|
.initOrReusePrintPreviewViewer()
|
|
|
|
.printPreviewScrollToPage(navType, pageNum);
|
2018-07-30 08:05:14 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
PrintingChild.prototype.QueryInterface = ChromeUtils.generateQI([
|
|
|
|
Ci.nsIPrintingPromptService,
|
|
|
|
]);
|
2018-05-26 04:22:09 +03:00
|
|
|
|
|
|
|
function PrintingListener(global) {
|
|
|
|
this.global = global;
|
|
|
|
}
|
|
|
|
PrintingListener.prototype = {
|
|
|
|
QueryInterface: ChromeUtils.generateQI([Ci.nsIWebProgressListener]),
|
|
|
|
|
|
|
|
onStateChange(aWebProgress, aRequest, aStateFlags, aStatus) {
|
|
|
|
this.global.sendAsyncMessage("Printing:Preview:StateChange", {
|
|
|
|
stateFlags: aStateFlags,
|
|
|
|
status: aStatus,
|
|
|
|
});
|
|
|
|
},
|
|
|
|
|
|
|
|
onProgressChange(
|
|
|
|
aWebProgress,
|
|
|
|
aRequest,
|
|
|
|
aCurSelfProgress,
|
|
|
|
aMaxSelfProgress,
|
|
|
|
aCurTotalProgress,
|
|
|
|
aMaxTotalProgress
|
|
|
|
) {
|
|
|
|
this.global.sendAsyncMessage("Printing:Preview:ProgressChange", {
|
|
|
|
curSelfProgress: aCurSelfProgress,
|
|
|
|
maxSelfProgress: aMaxSelfProgress,
|
|
|
|
curTotalProgress: aCurTotalProgress,
|
|
|
|
maxTotalProgress: aMaxTotalProgress,
|
|
|
|
});
|
|
|
|
},
|
|
|
|
|
|
|
|
onLocationChange(aWebProgress, aRequest, aLocation, aFlags) {},
|
|
|
|
onStatusChange(aWebProgress, aRequest, aStatus, aMessage) {},
|
2018-11-29 18:46:08 +03:00
|
|
|
onSecurityChange(aWebProgress, aRequest, aState) {},
|
2019-01-07 01:45:57 +03:00
|
|
|
onContentBlockingEvent(aWebProgress, aRequest, aEvent) {},
|
2018-05-26 04:22:09 +03:00
|
|
|
};
|