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 44bd6bc1ac
commit 3ecd4eb3a8
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),
});