Bug 1353867 - Change WindowProxyHolder's native type to BrowsingContext. r=bzbarsky

Make the WindowProxyHolder hold a strong reference to a BrowsingContext, as in the future
we might not have a nsPIDOMWindowOuter (if the document is loaded in a different process).

Differential Revision: https://phabricator.services.mozilla.com/D12651
This commit is contained in:
Peter Van der Beken
2019-01-02 13:27:05 +00:00
parent 0792b09f79
commit 955ad9221e
43 changed files with 276 additions and 187 deletions

View File

@@ -380,7 +380,7 @@ Nullable<WindowProxyHolder> HTMLObjectElement::GetContentWindow(
if (doc) {
nsPIDOMWindowOuter* win = doc->GetWindow();
if (win) {
return WindowProxyHolder(win);
return WindowProxyHolder(win->GetBrowsingContext());
}
}