Bug 1542787 - Support getting contentWindow on out-of-process frames, r=peterv

Differential Revision: https://phabricator.services.mozilla.com/D26556
This commit is contained in:
Nika Layzell
2019-04-11 18:56:48 +00:00
parent 7919fc0ad9
commit 15f9d16b35

View File

@@ -109,12 +109,8 @@ BrowsingContext* nsGenericHTMLFrameElement::GetContentWindowInternal() {
return nullptr;
}
RefPtr<nsDocShell> doc_shell = mFrameLoader->GetDocShell(IgnoreErrors());
if (!doc_shell) {
return nullptr;
}
return doc_shell->GetBrowsingContext();
RefPtr<BrowsingContext> bc = mFrameLoader->GetBrowsingContext();
return bc;
}
Nullable<WindowProxyHolder> nsGenericHTMLFrameElement::GetContentWindow() {