Bug 1412049 - Clear filterbar visible prefs between tests; r=Honza.
authorNicolas Chevobbe <nchevobbe@mozilla.com>
Fri, 27 Oct 2017 16:02:49 +0200
changeset 389435 9ae8421bb15bf3f0571d824f1061b2ebf7b14818
parent 389434 31f259ee387b61199ae3ea2f92d68fea45d88db2
child 389436 a6ea37c77fe08a4bfe80abc5ae4725176379f066
push id96855
push userarchaeopteryx@coole-files.de
push dateTue, 31 Oct 2017 23:40:37 +0000
treeherdermozilla-inbound@285362745f60 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersHonza
bugs1412049
milestone58.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1412049 - Clear filterbar visible prefs between tests; r=Honza. This was making browser_webconsole_filters.js fail on verify mode, and could potentially cause other issues in the future. MozReview-Commit-ID: 9syLDYAjm6S
devtools/client/webconsole/new-console-output/test/mochitest/head.js
--- a/devtools/client/webconsole/new-console-output/test/mochitest/head.js
+++ b/devtools/client/webconsole/new-console-output/test/mochitest/head.js
@@ -16,16 +16,17 @@ Services.scriptloader.loadSubScript(
   this);
 
 var {HUDService} = require("devtools/client/webconsole/hudservice");
 var WCUL10n = require("devtools/client/webconsole/webconsole-l10n");
 
 Services.prefs.setBoolPref("devtools.webconsole.new-frontend-enabled", true);
 registerCleanupFunction(function* () {
   Services.prefs.clearUserPref("devtools.webconsole.new-frontend-enabled");
+  Services.prefs.clearUserPref("devtools.webconsole.ui.filterbar");
 
   // Reset all filter prefs between tests. First flushPrefEnv in case one of the
   // filter prefs has been pushed for the test
   yield SpecialPowers.flushPrefEnv();
   Services.prefs.getChildList("devtools.webconsole.filter").forEach(pref => {
     Services.prefs.clearUserPref(pref);
   });
   let browserConsole = HUDService.getBrowserConsole();