Bug 1304178 - Always use the 'old' frontend for tests that rely on it;r=linclark draft
authorBrian Grinstead <bgrinstead@mozilla.com>
Wed, 28 Sep 2016 13:55:56 -0700
changeset 418629 c55ba350815074185c24fb0b1fc88fbc13de7d5a
parent 418628 78947ac75a44735b4189c0555c65cf297b1ecbcb
child 418630 c74ae3c3af64f0093e5f4291a3dd8dcb0c685a8c
push id30735
push userbgrinstead@mozilla.com
push dateWed, 28 Sep 2016 20:56:13 +0000
reviewerslinclark
bugs1304178
milestone52.0a1
Bug 1304178 - Always use the 'old' frontend for tests that rely on it;r=linclark MozReview-Commit-ID: FxZaufg1GGb
devtools/client/webconsole/test/head.js
--- a/devtools/client/webconsole/test/head.js
+++ b/devtools/client/webconsole/test/head.js
@@ -316,16 +316,22 @@ var finishTest = Task.async(function* ()
   }
 
   let target = TargetFactory.forTab(gBrowser.selectedTab);
   yield gDevTools.closeToolbox(target);
 
   finish();
 });
 
+// Always use the 'old' frontend for tests that rely on it
+Services.prefs.setBoolPref("devtools.webconsole.new-frontend-enabled", false);
+registerCleanupFunction(function* () {
+  Services.prefs.clearUserPref("devtools.webconsole.new-frontend-enabled");
+});
+
 registerCleanupFunction(function* () {
   flags.testing = false;
 
   // Remove stored console commands in between tests
   yield asyncStorage.removeItem("webConsoleHistory");
 
   dumpConsoles();