From 0a31074f7789db45de5d4dd31638643df3e1c11d Mon Sep 17 00:00:00 2001 From: "timeless%mozdev.org" Date: Fri, 1 Aug 2003 14:37:03 +0000 Subject: [PATCH] Bug 214049 null domwindow [@ nsAccessibilityService::OnStateChange] r=aaronl sr=bz --- accessible/src/base/nsAccessibilityService.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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));