Bug 1183491. Null-check the document we get from our contentWindow in the contentDocument getter, because apparently it can end up null. r=bkelly

This commit is contained in:
Boris Zbarsky
2015-07-30 13:55:16 -04:00
parent cdc4ad1f23
commit 6804837a6e

View File

@@ -91,6 +91,9 @@ nsGenericHTMLFrameElement::GetContentDocument()
}
nsIDocument *doc = win->GetDoc();
if (!doc) {
return nullptr;
}
// Return null for cross-origin contentDocument.
if (!nsContentUtils::SubjectPrincipal()->