diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js index 49e067e83329..959be301d5b4 100644 --- a/browser/base/content/browser.js +++ b/browser/base/content/browser.js @@ -9518,6 +9518,14 @@ if (AppConstants.NIGHTLY_BUILD) { return; } + const openNonFissionWindowOption = Services.prefs.getBoolPref( + "fission.openNonFissionWindowOption", + false + ); + if (!openNonFissionWindowOption) { + return; + } + let newFissionWindow = document.getElementById("Tools:FissionWindow"); let newNonFissionWindow = document.getElementById( "Tools:NonFissionWindow" diff --git a/modules/libpref/init/StaticPrefList.yaml b/modules/libpref/init/StaticPrefList.yaml index 8d8627401089..8c4146ef1b88 100644 --- a/modules/libpref/init/StaticPrefList.yaml +++ b/modules/libpref/init/StaticPrefList.yaml @@ -3612,6 +3612,13 @@ value: true mirror: always +# If true, show option for opening a non-Fission window in a menu, when Fission +# is enabled. +- name: fission.openNonFissionWindowOption + type: bool + value: false + mirror: always + #--------------------------------------------------------------------------- # Prefs starting with "font." #---------------------------------------------------------------------------