Created attachment 8454650 [details] [diff] [review] Patch, v1 Datastore relies on the "inner-window-destroyed" notification to unregister some message listeners in the parent process. These notifications are generated via an async event, the WindowDestroyedEvent that gets generated in nsGlobalWindow::FreeInnerObjects/NotifyWindowIDDestroyed. This event does not have a chance to run if the TabChild that is being destroyed is the final TabChild for a process. One additional bounce through the event loop of the child is enough to ensure that all async messages like this get delivered.
Attachment #8454650 - Flags: review?(khuey)
Attachment #8454650 - Flags: review?(khuey) → review+
Status: ASSIGNED → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla36
You need to log in before you can comment on or make changes to this bug.