зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1228655 - Remove ifdefs for e10s testing UI. r=Gijs
This commit is contained in:
Родитель
88aa469ec2
Коммит
9017921f59
|
@ -1217,9 +1217,10 @@ var gBrowserInit = {
|
|||
BrowserOffline.init();
|
||||
OfflineApps.init();
|
||||
IndexedDBPromptHelper.init();
|
||||
#ifdef E10S_TESTING_ONLY
|
||||
gRemoteTabsUI.init();
|
||||
#endif
|
||||
|
||||
if (AppConstants.E10S_TESTING_ONLY)
|
||||
gRemoteTabsUI.init();
|
||||
|
||||
// Initialize the full zoom setting.
|
||||
// We do this before the session restore service gets initialized so we can
|
||||
// apply full zoom settings to tabs restored by the session restore service.
|
||||
|
@ -1624,9 +1625,9 @@ if (AppConstants.platform == "macosx") {
|
|||
// initialize the sync UI
|
||||
gSyncUI.init();
|
||||
|
||||
#ifdef E10S_TESTING_ONLY
|
||||
gRemoteTabsUI.init();
|
||||
#endif
|
||||
if (AppConstants.E10S_TESTING_ONLY) {
|
||||
gRemoteTabsUI.init();
|
||||
}
|
||||
};
|
||||
|
||||
gBrowserInit.nonBrowserWindowShutdown = function() {
|
||||
|
@ -7635,13 +7636,12 @@ var gRemoteTabsUI = {
|
|||
return;
|
||||
}
|
||||
|
||||
#ifdef XP_MACOSX
|
||||
if (Services.prefs.getBoolPref("layers.acceleration.disabled")) {
|
||||
if (AppConstants.platform == "macosx" &&
|
||||
Services.prefs.getBoolPref("layers.acceleration.disabled")) {
|
||||
// On OS X, "Disable Hardware Acceleration" also disables OMTC and forces
|
||||
// a fallback to Basic Layers. This is incompatible with e10s.
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
let newNonRemoteWindow = document.getElementById("menu_newNonRemoteWindow");
|
||||
let autostart = Services.appinfo.browserTabsRemoteAutostart;
|
||||
|
@ -7808,11 +7808,11 @@ var TabContextMenu = {
|
|||
for (let menuItem of menuItems)
|
||||
menuItem.disabled = disabled;
|
||||
|
||||
#ifdef E10S_TESTING_ONLY
|
||||
menuItems = aPopupMenu.getElementsByAttribute("tbattr", "tabbrowser-remote");
|
||||
for (let menuItem of menuItems)
|
||||
menuItem.hidden = !gMultiProcessBrowser;
|
||||
#endif
|
||||
if (AppConstants.E10S_TESTING_ONLY) {
|
||||
menuItems = aPopupMenu.getElementsByAttribute("tbattr", "tabbrowser-remote");
|
||||
for (let menuItem of menuItems)
|
||||
menuItem.hidden = !gMultiProcessBrowser;
|
||||
}
|
||||
|
||||
disabled = gBrowser.visibleTabs.length == 1;
|
||||
menuItems = aPopupMenu.getElementsByAttribute("tbattr", "tabbrowser-multiple-visible");
|
||||
|
|
Загрузка…
Ссылка в новой задаче