From 72d422fb86978f28f0354ad1c67d47d47a47f7a7 Mon Sep 17 00:00:00 2001 From: Lin Clark Date: Thu, 7 Jul 2016 16:08:12 -0400 Subject: [PATCH] Bug 1285348 - New console frontend: disable in browser toolbox. r=bgrins --HG-- extra : rebase_source : cff98e95cd5b21480990f849569e7fbd2c63b329 --- devtools/client/webconsole/webconsole.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/devtools/client/webconsole/webconsole.js b/devtools/client/webconsole/webconsole.js index c8406964a2eb..5918a2b1dabf 100644 --- a/devtools/client/webconsole/webconsole.js +++ b/devtools/client/webconsole/webconsole.js @@ -501,8 +501,9 @@ WebConsoleFrame.prototype = { _initUI: function () { this.document = this.window.document; this.rootElement = this.document.documentElement; - this.NEW_CONSOLE_OUTPUT_ENABLED = !this.owner._browserConsole && - Services.prefs.getBoolPref(PREF_NEW_FRONTEND_ENABLED); + this.NEW_CONSOLE_OUTPUT_ENABLED = !this.owner._browserConsole + && !this.owner.target.chrome + && Services.prefs.getBoolPref(PREF_NEW_FRONTEND_ENABLED); this._initDefaultFilterPrefs();