Open Bug 1868573 Opened 2 years ago Updated 2 years ago

Restored overlapped windows might not run their _delayedStartup routines until foregrounded.

Categories

(Firefox :: Session Restore, defect, P3)

defect

Tracking

()

People

(Reporter: mconley, Unassigned)

References

Details

(Whiteboard: [fidefe-session-restore])

In https://bugzilla.mozilla.org/show_bug.cgi?id=1783521#c13, I noticed that if many windows are restored simultaneously such that they overlap, then (at least on my Windows 10 system), some of those windows never fire the MozAfterPaint event, which is what's used to kick off _delayedStartup.

We might want to go through _delayedStartup to make sure there's nothing critical that needs to have executed, even if the window has never come to the foreground. If it turns out that there is a need for those things, we might want to have the MozAfterPaint event handler race with an idle callback to give background windows a chance to run this routine too.

I'm only putting this in Session Restore because Session Restore is really the only place I can think of where a user might cause several windows to all open at the same time, overlapping one another. This might also make sense placed in Firefox :: General.

Severity: -- → S3
Priority: -- → P3
Whiteboard: [fidefe-session-restore]
You need to log in before you can comment on or make changes to this bug.