Bug 1126311 - Don't show OMTC warning when opening windows on Linux if e10s enabled by default. r=felipe.

--HG--
extra : amend_source : 333c7b92790cd6060eafbd7dfd36ce47b61da636
This commit is contained in:
Mike Conley 2015-01-28 14:15:40 -05:00
Родитель a45b29358d
Коммит 530376c0ff
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -3872,7 +3872,10 @@ function OpenBrowserWindow(options)
} }
if (options && options.remote) { if (options && options.remote) {
let omtcEnabled = gPrefService.getBoolPref("layers.offmainthreadcomposition.enabled"); // If we're using remote tabs by default, then OMTC will be force-enabled,
// despite the preference returning as false.
let omtcEnabled = gPrefService.getBoolPref("layers.offmainthreadcomposition.enabled")
|| Services.appinfo.browserTabsRemoteAutostart;
if (!omtcEnabled) { if (!omtcEnabled) {
alert("To use out-of-process tabs, you must set the layers.offmainthreadcomposition.enabled preference and restart. Opening a normal window instead."); alert("To use out-of-process tabs, you must set the layers.offmainthreadcomposition.enabled preference and restart. Opening a normal window instead.");
} else { } else {