Bug 1614925 - Set devtools.browsertoolbox.fission before opening the BrowserToolbox in BrowserToolboxTask r=ochameau

Differential Revision: https://phabricator.services.mozilla.com/D62580

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Julian Descottes 2020-02-12 16:45:48 +00:00
parent 6247bebd91
commit f5bedf7f0b

View File

@ -43,6 +43,10 @@ async function initBrowserToolboxTask({
await pushPref("devtools.browsertoolbox.enable-test-server", true);
await pushPref("devtools.debugger.prompt-connection", false);
if (enableBrowserToolboxFission) {
await pushPref("devtools.browsertoolbox.fission", true);
}
// This rejection seems to affect all tests using the browser toolbox.
ChromeUtils.import(
"resource://testing-common/PromiseTestUtils.jsm"
@ -84,10 +88,6 @@ async function initBrowserToolboxTask({
const consoleFront = await target.getFront("console");
const preferenceFront = await client.mainRoot.getFront("preference");
if (enableBrowserToolboxFission) {
await preferenceFront.setBoolPref("devtools.browsertoolbox.fission", true);
}
if (enableContentMessages) {
await preferenceFront.setBoolPref(
"devtools.browserconsole.contentMessages",