Comment 17 for bug 212092

Revision history for this message
In , Ginn-chen (ginn-chen) wrote :

1506 NS_IMETHODIMP nsDocAccessible::FlushPendingEvents()
1507 {
1508 PRUint32 length = mEventsToFire.Count();
1509 NS_ASSERTION(length, "How did we get here without events to fire?");
1510 nsCOMPtr<nsIPresShell> presShell = GetPresShell();
1511 if (!presShell)
1512 length = 0; // The doc is now shut down, don't fire events in it anymore

Calling GetPresShell() may cause the doc be shut down.
See comment #4.