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:
@@ -91,6 +91,9 @@ nsGenericHTMLFrameElement::GetContentDocument()
|
||||
}
|
||||
|
||||
nsIDocument *doc = win->GetDoc();
|
||||
if (!doc) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
// Return null for cross-origin contentDocument.
|
||||
if (!nsContentUtils::SubjectPrincipal()->
|
||||
|
||||
Reference in New Issue
Block a user