diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-03-01 07:17:50 +0100 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-03-01 07:17:50 +0100 |
commit | e59c00a5c59aefe2a408eb78509ef3afaf3658f8 (patch) | |
tree | 40b8c8bd311ff17abb81edd6f24bb6ad3ce9b9b8 /toolkit/components/webextensions | |
parent | abf60058584772437a317fbc27ea32cbda4a07cb (diff) | |
download | UXP-e59c00a5c59aefe2a408eb78509ef3afaf3658f8.tar UXP-e59c00a5c59aefe2a408eb78509ef3afaf3658f8.tar.gz UXP-e59c00a5c59aefe2a408eb78509ef3afaf3658f8.tar.lz UXP-e59c00a5c59aefe2a408eb78509ef3afaf3658f8.tar.xz UXP-e59c00a5c59aefe2a408eb78509ef3afaf3658f8.zip |
DevTools - Browser Console - restore sessions
https://github.com/MoonchildProductions/moebius/pull/112
Diffstat (limited to 'toolkit/components/webextensions')
-rw-r--r-- | toolkit/components/webextensions/ext-c-backgroundPage.js | 4 | ||||
-rw-r--r-- | toolkit/components/webextensions/test/mochitest/test_chrome_ext_background_page.html | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/toolkit/components/webextensions/ext-c-backgroundPage.js b/toolkit/components/webextensions/ext-c-backgroundPage.js index b5074dd9a..ca446ce79 100644 --- a/toolkit/components/webextensions/ext-c-backgroundPage.js +++ b/toolkit/components/webextensions/ext-c-backgroundPage.js @@ -9,8 +9,8 @@ global.initializeBackgroundPage = (contentWindow) => { if (!alertDisplayedWarning) { require("devtools/client/framework/devtools-browser"); - let hudservice = require("devtools/client/webconsole/hudservice"); - hudservice.openBrowserConsoleOrFocus(); + let {HUDService} = require("devtools/client/webconsole/hudservice"); + HUDService.openBrowserConsoleOrFocus(); contentWindow.console.warn("alert() is not supported in background windows; please use console.log instead."); diff --git a/toolkit/components/webextensions/test/mochitest/test_chrome_ext_background_page.html b/toolkit/components/webextensions/test/mochitest/test_chrome_ext_background_page.html index 3c4774652..471c5339d 100644 --- a/toolkit/components/webextensions/test/mochitest/test_chrome_ext_background_page.html +++ b/toolkit/components/webextensions/test/mochitest/test_chrome_ext_background_page.html @@ -66,14 +66,14 @@ add_task(function* testAlertNotShownInBackgroundWindow() { let {require} = Cu.import("resource://devtools/shared/Loader.jsm", {}); require("devtools/client/framework/devtools-browser"); - let hudservice = require("devtools/client/webconsole/hudservice"); + let {HUDService} = require("devtools/client/webconsole/hudservice"); // And then double check that we have an actual browser console. - let haveConsole = !!hudservice.getBrowserConsole(); + let haveConsole = !!HUDService.getBrowserConsole(); ok(haveConsole, "Expected browser console to be open"); if (haveConsole) { - yield hudservice.toggleBrowserConsole(); + yield HUDService.toggleBrowserConsole(); } yield extension.unload(); |