Bug 783134: Work around crashing on startup with fullscreen widgets. r=roc

This commit is contained in:
Chris Jones 2012-08-15 17:54:18 -07:00
Родитель 43fcde48eb
Коммит 4e42d87be2
1 изменённых файлов: 3 добавлений и 1 удалений

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

@ -252,7 +252,9 @@ nsWebShellWindow::WindowResized(nsIWidget* aWidget, PRInt32 aWidth, PRInt32 aHei
}
nsCOMPtr<nsIBaseWindow> shellAsWin(do_QueryInterface(mDocShell));
if (shellAsWin) {
shellAsWin->SetPositionAndSize(0, 0, aWidth, aHeight, false);
}
// Persist size, but not immediately, in case this OS is firing
// repeated size events as the user drags the sizing handle
if (!IsLocked())