Bug 597311 - crash in nsWindow::ProcessMessage(WM_GETOBJECT), r=davidb, sr=roc, a=davidb

This commit is contained in:
Alexander Surkov 2010-09-16 22:16:50 -07:00
parent 16a2846c1a
commit a0db2c941e

View File

@ -7621,6 +7621,8 @@ nsWindow::GetRootAccessible()
NS_LOG_WMGETOBJECT_WND("This Window", mWnd);
nsAccessible* docAcc = DispatchAccessibleEvent(NS_GETACCESSIBLE);
if (!docAcc)
return nsnull;
nsCOMPtr<nsIAccessibleDocument> rootDocAcc;
docAcc->GetRootDocument(getter_AddRefs(rootDocAcc));