Bug 1552186 - Remove windowGlobalParents getter from nsIRemoteTab. r=nika

This method wasn't correct for what mconley needed and is no longer needed.

Differential Revision: https://phabricator.services.mozilla.com/D31506

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Ryan Hunt 2019-05-29 16:48:37 +00:00
parent af6ca83271
commit 2e7b8a7ab6
2 changed files with 0 additions and 24 deletions

View File

@ -71,11 +71,6 @@ interface nsIRemoteTab : nsISupports
*/
readonly attribute boolean hasPresented;
/**
* Gets all of the WindowGlobalParent actors for this remote tab.
*/
readonly attribute Array<WindowGlobalParent> windowGlobalParents;
/**
* Ensures that the content process which has this remote tab has all of the
* permissions required to load a document with the given principal.

View File

@ -227,25 +227,6 @@ BrowserHost::GetHasPresented(bool* aHasPresented) {
return NS_OK;
}
NS_IMETHODIMP
BrowserHost::GetWindowGlobalParents(
nsTArray<RefPtr<WindowGlobalParent>>& aWindowGlobalParents) {
if (!mRoot) {
aWindowGlobalParents = nsTArray<RefPtr<WindowGlobalParent>>();
return NS_OK;
}
VisitAll([&](BrowserParent* aBrowser) {
const auto& windowGlobalParents = aBrowser->ManagedPWindowGlobalParent();
for (auto iter = windowGlobalParents.ConstIter(); !iter.Done();
iter.Next()) {
WindowGlobalParent* windowGlobalParent =
static_cast<WindowGlobalParent*>(iter.Get()->GetKey());
aWindowGlobalParents.AppendElement(windowGlobalParent);
}
});
return NS_OK;
}
/* void transmitPermissionsForPrincipal (in nsIPrincipal aPrincipal); */
NS_IMETHODIMP
BrowserHost::TransmitPermissionsForPrincipal(nsIPrincipal* aPrincipal) {