зеркало из https://github.com/mozilla/gecko-dev.git
Bug 635952 - crash [@ notificationController::IsTreeConstructed() ] on shutdown, r=surkov, fer, a=blocking2.x+
This commit is contained in:
Родитель
0ba17ebe91
Коммит
5825c4795d
|
@ -650,6 +650,11 @@ nsDocAccessible::Shutdown()
|
|||
|
||||
RemoveEventListeners();
|
||||
|
||||
// Mark the document as shutdown before AT is notified about the document
|
||||
// removal from its container (valid for root documents on ATK).
|
||||
nsCOMPtr<nsIDocument> kungFuDeathGripDoc = mDocument;
|
||||
mDocument = nsnull;
|
||||
|
||||
if (mParent) {
|
||||
nsDocAccessible* parentDocument = mParent->GetDocAccessible();
|
||||
if (parentDocument)
|
||||
|
@ -672,9 +677,6 @@ nsDocAccessible::Shutdown()
|
|||
mNodeToAccessibleMap.Clear();
|
||||
ClearCache(mAccessibleCache);
|
||||
|
||||
nsCOMPtr<nsIDocument> kungFuDeathGripDoc = mDocument;
|
||||
mDocument = nsnull;
|
||||
|
||||
nsHyperTextAccessibleWrap::Shutdown();
|
||||
|
||||
GetAccService()->NotifyOfDocumentShutdown(kungFuDeathGripDoc);
|
||||
|
|
Загрузка…
Ссылка в новой задаче