mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
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:
parent
6247bebd91
commit
f5bedf7f0b
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user