From 789a23c6360da57ebcf467ba624bb277f08c381a Mon Sep 17 00:00:00 2001 From: Ryosuke Asano Date: Sat, 16 Mar 2024 22:06:12 +0900 Subject: [PATCH] [FB] Core | Rename config name --- browser/base/content/browser.js | 2 +- browser/base/content/browser.xhtml | 8 ++++++-- browser/base/content/tabbrowser.js | 6 +++--- browser/components/preferences/preferences.js | 2 +- browser/components/preferences/preferences.xhtml | 6 +++--- browser/components/sessionstore/SessionStore.sys.mjs | 4 ++-- browser/components/sessionstore/TabState.sys.mjs | 2 +- floorp | 2 +- 8 files changed, 18 insertions(+), 14 deletions(-) diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js index 8e90240cf2de6..8e244036fc058 100644 --- a/browser/base/content/browser.js +++ b/browser/base/content/browser.js @@ -2387,7 +2387,7 @@ var gBrowserInit = { "resource:///modules/FloorpAppConstants.sys.mjs" ); - if (FloorpAppConstants.FLOORP_PRIVATE_COMPONENTS_ENABLED) { + if (FloorpAppConstants.FLOORP_OFFICIAL_COMPONENTS_ENABLED) { if (uri) { try { // If the URI has "?FloorpEnableSSBWindow=true" at the end, The window will be opened as a SSB window. diff --git a/browser/base/content/browser.xhtml b/browser/base/content/browser.xhtml index 5795580176eb6..675e428d02d91 100644 --- a/browser/base/content/browser.xhtml +++ b/browser/base/content/browser.xhtml @@ -149,8 +149,12 @@ #include unified-extensions-viewcache.inc.xhtml #include ../../../floorp/browser/base/content/browser-manager-sidebar-context.inc.xhtml -#include ../../../floorp/browser/base/content/browser-ssb-context.inc.xhtml -#include ../../../floorp/browser/base/content/browser-workspaces-context-menu.xhtml + +#ifdef FLOORP_OFFICIAL_COMPONENTS_ENABLED +#include ../../../floorp/Floorp-private-components/browser/base/content/browser-ssb-context.inc.xhtml +#include ../../../floorp/Floorp-private-components/browser/base/content/browser-workspaces-context-menu.xhtml +#endif +