mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-04 13:07:52 +00:00
Downgrade this non-fatal assertion to a warning.
This commit is contained in:
parent
54065449c6
commit
4f4b879f4a
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user