Downgrade this non-fatal assertion to a warning.

This commit is contained in:
bent.mozilla@gmail.com 2008-02-13 17:07:08 -08:00
parent 54065449c6
commit 4f4b879f4a

View File

@ -1057,9 +1057,9 @@ nsXULTemplateBuilder::Observe(nsISupports* aSubject,
if (window) {
nsCOMPtr<nsIDocument> doc =
do_QueryInterface(window->GetExtantDocument());
NS_ASSERTION(doc, "Null document, notification came too late?");
NS_WARN_IF_FALSE(doc, "Null document, notification came too late?");
if (doc == mObservedDocument)
if (doc && doc == mObservedDocument)
NodeWillBeDestroyed(doc);
}
}