diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js index 8e90240cf2de..8e244036fc05 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 5795580176eb..675e428d02d9 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 +