зеркало из https://github.com/mozilla/pjs.git
Bug 214049 null domwindow [@ nsAccessibilityService::OnStateChange]
r=aaronl sr=bz
This commit is contained in:
Родитель
f1f9fa6cff
Коммит
0a31074f77
|
@ -161,7 +161,9 @@ NS_IMETHODIMP nsAccessibilityService::OnStateChange(nsIWebProgress *aWebProgress
|
|||
|
||||
nsCOMPtr<nsIDOMWindow> domWindow;
|
||||
aWebProgress->GetDOMWindow(getter_AddRefs(domWindow));
|
||||
NS_ASSERTION(domWindow, "No dom window for nsIWebProgress::OnStateChange");
|
||||
// Bug 214049 OnStateChange can come from non UI threads.
|
||||
if (!domWindow)
|
||||
return NS_OK;
|
||||
|
||||
nsCOMPtr<nsIDOMDocument> domDoc;
|
||||
domWindow->GetDocument(getter_AddRefs(domDoc));
|
||||
|
|
Загрузка…
Ссылка в новой задаче