mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1173379 - Lazy-init console in browser-content.js; r=Mossop
This commit is contained in:
parent
93e1c902b5
commit
29a6e5e809
@ -354,9 +354,11 @@ let PopupBlocking = {
|
||||
};
|
||||
PopupBlocking.init();
|
||||
|
||||
// Set up console.* for frame scripts.
|
||||
let Console = Components.utils.import("resource://gre/modules/devtools/Console.jsm", {});
|
||||
this.console = new Console.ConsoleAPI();
|
||||
XPCOMUtils.defineLazyGetter(this, "console", () => {
|
||||
// Set up console.* for frame scripts.
|
||||
let Console = Components.utils.import("resource://gre/modules/devtools/Console.jsm", {});
|
||||
return new Console.ConsoleAPI();
|
||||
});
|
||||
|
||||
let Printing = {
|
||||
// Bug 1088061: nsPrintEngine's DoCommonPrint currently expects the
|
||||
|
Loading…
Reference in New Issue
Block a user