зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1485629 - Disable the early blank window when using a non-default theme. r=florian
This commit is contained in:
Родитель
3768f3cde9
Коммит
7f7823a6d9
|
@ -121,7 +121,9 @@ const startupPhases = {
|
|||
}},
|
||||
};
|
||||
|
||||
if (Services.prefs.getBoolPref("browser.startup.blankWindow")) {
|
||||
if (Services.prefs.getBoolPref("browser.startup.blankWindow") &&
|
||||
Services.prefs.getCharPref("lightweightThemes.selectedThemeID") ==
|
||||
"default-theme@mozilla.org") {
|
||||
startupPhases["before profile selection"].whitelist.components.add("XULStore.js");
|
||||
}
|
||||
|
||||
|
|
|
@ -308,6 +308,12 @@ let ACTORS = {
|
|||
if (!Services.prefs.getBoolPref("browser.startup.blankWindow", false))
|
||||
return;
|
||||
|
||||
// Until bug 1450626 and bug 1488384 are fixed, skip the blank window when
|
||||
// using a non-default theme.
|
||||
if (Services.prefs.getCharPref("lightweightThemes.selectedThemeID", "") !=
|
||||
"default-theme@mozilla.org")
|
||||
return;
|
||||
|
||||
let store = Services.xulStore;
|
||||
let getValue = attr =>
|
||||
store.getValue(AppConstants.BROWSER_CHROME_URL, "main-window", attr);
|
||||
|
|
Загрузка…
Ссылка в новой задаче