Ensure we can do a full flush of all windows during shutdown due to WM_ENDSESSION message from Windows

NEW
Unassigned

Status

()

Firefox
Session Restore
2 years ago
2 years ago

People

(Reporter: mconley, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

See bug 1260461 for greater context, but the TL;DR is that when a user has Firefox open, and they log out of / shut down Windows without quitting the browser, then Firefox receives a message that causes it to try to quit. We added stuff in bug 1177310 to block the quit-application-granted observer notification while we wait for the async messages to come up from each browser with session updates.

Unfortunately, in bug 1260461, we noticed that Windows was killing our process before we could complete shutdown properly. We created a band-aid fix in bug 1260461 which causes us to write the cached snapshot of our most recent session updates to disk and do an immediate shutdown. This has the (small but very real) potential for dataloss, since the session might have changed since the last snapshot.

We should try to figure out why Windows is killing our process before we can shut down properly, and fix it.
You need to log in before you can comment on or make changes to this bug.