Bug 1362103 - Suppress animation on first window opening. r=florian

Enabled by default behind the browser.suppress_first_window_animation pref.

MozReview-Commit-ID: 4mzy4Qif0LX

--HG--
extra : rebase_source : 926dd03514dd1792ee1c9d9a662a4a3657bc6796
This commit is contained in:
Mike Conley 2017-05-04 12:42:27 -04:00
Родитель b912f951ac
Коммит 0582261474
2 изменённых файлов: 8 добавлений и 1 удалений

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

@ -1651,3 +1651,5 @@ pref("browser.sessionstore.restore_tabs_lazily", true);
pref("urlclassifier.malwareTable", "goog-malware-shavar,goog-unwanted-shavar,goog-malware-proto,goog-unwanted-proto,test-malware-simple,test-unwanted-simple");
pref("urlclassifier.phishTable", "goog-phish-shavar,goog-phish-proto,test-phish-simple");
#endif
pref("browser.suppress_first_window_animation", true);

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

@ -576,7 +576,12 @@ nsBrowserContentHandler.prototype = {
// The global PB Service consumes this flag, so only eat it in per-window
// PB builds.
if (PrivateBrowsingUtils.isInTemporaryAutoStartMode) {
this.mFeatures = ",private";
this.mFeatures += ",private";
}
if (Services.prefs.getBoolPref("browser.suppress_first_window_animation") &&
!Services.wm.getMostRecentWindow("navigator:browser")) {
this.mFeatures += ",suppressanimation";
}
}