Backed out changeset 491ac50c7721 (bug 1795804) for causing mochitest failures on test_maximized_persist.xhtml. CLOSED TREE

This commit is contained in:
Marian Laza 2022-10-19 19:37:39 +03:00
Родитель 268ec9a223
Коммит b55f521867
1 изменённых файлов: 4 добавлений и 1 удалений

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

@ -2803,7 +2803,10 @@ void AppWindow::SizeModeChanged(nsSizeMode aSizeMode) {
RecomputeBrowsingContextVisibility();
PersistentAttributesDirty(PersistentAttribute::Misc, Sync);
// Persist mode, but not immediately, because in many (all?)
// cases this will merge with the similar call in NS_SIZE and
// write the attribute values only once.
PersistentAttributesDirty(PersistentAttribute::Misc, Async);
nsCOMPtr<nsPIDOMWindowOuter> ourWindow =
mDocShell ? mDocShell->GetWindow() : nullptr;
if (ourWindow) {