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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user