Bug 1026093 - Don't allow the user to open an e10s window in safe mode r=mconley

This commit is contained in:
George Wright 2015-02-19 15:11:24 -05:00
parent a825d10e10
commit 1356d1f25d
2 changed files with 6 additions and 0 deletions

View File

@ -7419,6 +7419,11 @@ let gRemoteTabsUI = {
return;
}
if (Services.appinfo.inSafeMode) {
// e10s isn't supported in safe mode, so don't show the menu items for it
return;
}
let newRemoteWindow = document.getElementById("menu_newRemoteWindow");
let newNonRemoteWindow = document.getElementById("menu_newNonRemoteWindow");
let autostart = Services.appinfo.browserTabsRemoteAutostart;

View File

@ -1076,6 +1076,7 @@ CustomizableWidgets.push({
id: "e10s-button",
label: buttonLabel,
tooltiptext: buttonLabel,
disabled: Services.appinfo.inSafeMode,
defaultArea: CustomizableUI.AREA_PANEL,
onCommand: getCommandFunction(openRemote),
});