From 1535cd608a5f688d027510669cd5fcc3c83508e9 Mon Sep 17 00:00:00 2001 From: Julian Descottes Date: Tue, 27 Aug 2019 08:44:42 +0000 Subject: [PATCH] Bug 1576653 - Add nightly-only option to toggle devtools.browsertoolbox.fission in Browser Toolbox r=yulia Differential Revision: https://phabricator.services.mozilla.com/D43473 --HG-- extra : moz-landing-system : lando --- devtools/client/framework/toolbox-options.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/devtools/client/framework/toolbox-options.js b/devtools/client/framework/toolbox-options.js index 05a2680d2ac4..c2f31a378120 100644 --- a/devtools/client/framework/toolbox-options.js +++ b/devtools/client/framework/toolbox-options.js @@ -423,6 +423,17 @@ OptionsPanel.prototype = { }, ]; + // In the Nightly Browser Toolbox, display an option to enable the experimental + // Omniscient Browser Toolbox. + if (this.target.isParentProcess) { + prefDefinitions.push({ + pref: "devtools.browsertoolbox.fission", + label: "Enable Omniscient Browser Toolbox (⚠ WIP ⚠, needs restart)", + id: "devtools-browsertoolbox-fission", + parentId: "context-options", + }); + } + const createPreferenceOption = ({ pref, label, id }) => { const inputLabel = this.panelDoc.createElement("label"); const checkbox = this.panelDoc.createElement("input");