Bug 1772019 - Wait for PresShell to be initialized before doing WillRefresh tick. r=morgan

Differential Revision: https://phabricator.services.mozilla.com/D147812
This commit is contained in:
Eitan Isaacson 2022-05-31 22:56:32 +00:00
Родитель 64e35e6e1a
Коммит 766f8978fc
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -636,10 +636,10 @@ void NotificationController::WillRefresh(mozilla::TimeStamp aTime) {
if (!mDocument) return;
// Wait until an update, we have started, or an interruptible reflow is
// finished.
// finished, and the PresShell has initialized.
if (mObservingState == eRefreshProcessing ||
mObservingState == eRefreshProcessingForUpdate ||
mPresShell->IsReflowInterrupted()) {
mPresShell->IsReflowInterrupted() || !mPresShell->DidInitialize()) {
return;
}