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
+
diff --git a/browser/base/content/tabbrowser.js b/browser/base/content/tabbrowser.js
index da3fec397edc..d261ad609776 100644
--- a/browser/base/content/tabbrowser.js
+++ b/browser/base/content/tabbrowser.js
@@ -3169,7 +3169,7 @@
"resource:///modules/FloorpAppConstants.sys.mjs"
);
- if (FloorpAppConstants.FLOORP_PRIVATE_COMPONENTS_ENABLED) {
+ if (FloorpAppConstants.FLOORP_OFFICIAL_COMPONENTS_ENABLED) {
floorpWorkspaceId = tabData.floorpWorkspaceId;
floorpLastShowWorkspaceId = tabData.floorpLastShowWorkspaceId;
floorpWorkspace = tabData.floorpWorkspace ? tabData.floorpWorkspace : Services.prefs.getStringPref("floorp.browser.workspace.all").split(",")[0];
@@ -3191,7 +3191,7 @@
tab = this.selectedTab;
tab.setAttribute("floorpWorkspace", floorpWorkspace);
- if (FloorpAppConstants.FLOORP_PRIVATE_COMPONENTS_ENABLED) {
+ if (FloorpAppConstants.FLOORP_OFFICIAL_COMPONENTS_ENABLED) {
let { WorkspacesService } = ChromeUtils.importESModule(
"resource:///modules/WorkspacesService.sys.mjs"
);
@@ -3260,7 +3260,7 @@
tab.setAttribute("floorpWorkspace", floorpWorkspace);
- if (FloorpAppConstants.FLOORP_PRIVATE_COMPONENTS_ENABLED) {
+ if (FloorpAppConstants.FLOORP_OFFICIAL_COMPONENTS_ENABLED) {
let { WorkspacesService } = ChromeUtils.importESModule(
"resource:///modules/WorkspacesService.sys.mjs"
);
diff --git a/browser/components/preferences/preferences.js b/browser/components/preferences/preferences.js
index 6ab787de45f6..efaa07636b5c 100644
--- a/browser/components/preferences/preferences.js
+++ b/browser/components/preferences/preferences.js
@@ -230,7 +230,7 @@ function init_all() {
);
- if (FloorpAppConstants.FLOORP_PRIVATE_COMPONENTS_ENABLED) {
+ if (FloorpAppConstants.FLOORP_OFFICIAL_COMPONENTS_ENABLED) {
register_module("paneCSK", gCSKPane)
register_module("paneWorkspaces", gWorkspacesPane);
register_module("paneSsb", gSsbPane);
diff --git a/browser/components/preferences/preferences.xhtml b/browser/components/preferences/preferences.xhtml
index dfa5143031f4..3f0684514723 100644
--- a/browser/components/preferences/preferences.xhtml
+++ b/browser/components/preferences/preferences.xhtml
@@ -115,7 +115,7 @@
-#ifdef FLOORP_PRIVATE_COMPONENTS_ENABLED
+#ifdef FLOORP_OFFICIAL_COMPONENTS_ENABLED
-#ifdef FLOORP_PRIVATE_COMPONENTS_ENABLED
+#ifdef FLOORP_OFFICIAL_COMPONENTS_ENABLED