diff --git a/accessible/src/base/nsAccessibilityService.cpp b/accessible/src/base/nsAccessibilityService.cpp index 33b3ab3f3ac..3de20984510 100644 --- a/accessible/src/base/nsAccessibilityService.cpp +++ b/accessible/src/base/nsAccessibilityService.cpp @@ -161,7 +161,9 @@ NS_IMETHODIMP nsAccessibilityService::OnStateChange(nsIWebProgress *aWebProgress nsCOMPtr 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 domDoc; domWindow->GetDocument(getter_AddRefs(domDoc));