diff --git a/browser/base/content/browser-menubar.inc b/browser/base/content/browser-menubar.inc
index 30b09d456d6..18b37e636d0 100644
--- a/browser/base/content/browser-menubar.inc
+++ b/browser/base/content/browser-menubar.inc
@@ -28,10 +28,6 @@
command="Tools:PrivateBrowsing"
key="key_privatebrowsing"/>
#ifdef E10S_TESTING_ONLY
-
#ifdef E10S_TESTING_ONLY
-
#endif
diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js
index 92c8b04cfcc..671a719f454 100644
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -7230,10 +7230,8 @@ let gRemoteTabsUI = {
}
#endif
- let newRemoteWindow = document.getElementById("menu_newRemoteWindow");
let newNonRemoteWindow = document.getElementById("menu_newNonRemoteWindow");
let autostart = Services.appinfo.browserTabsRemoteAutostart;
- newRemoteWindow.hidden = autostart;
newNonRemoteWindow.hidden = !autostart;
}
};
diff --git a/browser/components/customizableui/CustomizableWidgets.jsm b/browser/components/customizableui/CustomizableWidgets.jsm
index bc5b05e2730..2e38c5ca981 100644
--- a/browser/components/customizableui/CustomizableWidgets.jsm
+++ b/browser/components/customizableui/CustomizableWidgets.jsm
@@ -1217,27 +1217,6 @@ if (Services.prefs.getBoolPref("browser.pocket.enabled")) {
}
#ifdef E10S_TESTING_ONLY
-/**
- * The e10s button's purpose is to lower the barrier of entry
- * for our Nightly testers to use e10s windows. We'll be removing it
- * once remote tabs are enabled. This button should never ever make it
- * to production. If it does, that'd be bad, and we should all feel bad.
- */
-let getCommandFunction = function(aOpenRemote) {
- return function(aEvent) {
- let win = aEvent.view;
- if (win && typeof win.OpenBrowserWindow == "function") {
- win.OpenBrowserWindow({remote: aOpenRemote});
- }
- };
-}
-
-let openRemote = !Services.appinfo.browserTabsRemoteAutostart;
-// Like the XUL menuitem counterparts, we hard-code these strings in because
-// this button should never roll into production.
-let buttonLabel = openRemote ? "New e10s Window"
- : "New Non-e10s Window";
-
let e10sDisabled = Services.appinfo.inSafeMode;
#ifdef XP_MACOSX
// On OS X, "Disable Hardware Acceleration" also disables OMTC and forces
@@ -1245,12 +1224,19 @@ let e10sDisabled = Services.appinfo.inSafeMode;
e10sDisabled |= Services.prefs.getBoolPref("layers.acceleration.disabled");
#endif
-CustomizableWidgets.push({
- id: "e10s-button",
- label: buttonLabel,
- tooltiptext: buttonLabel,
- disabled: e10sDisabled,
- defaultArea: CustomizableUI.AREA_PANEL,
- onCommand: getCommandFunction(openRemote),
-});
+if (Services.appinfo.browserTabsRemoteAutostart) {
+ CustomizableWidgets.push({
+ id: "e10s-button",
+ label: "New Non-e10s Window",
+ tooltiptext: "New Non-e10s Window",
+ disabled: e10sDisabled,
+ defaultArea: CustomizableUI.AREA_PANEL,
+ onCommand: function(aEvent) {
+ let win = aEvent.view;
+ if (win && typeof win.OpenBrowserWindow == "function") {
+ win.OpenBrowserWindow({remote: false});
+ }
+ },
+ });
+}
#endif