mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-24 11:27:49 +00:00
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:
parent
af6ca83271
commit
2e7b8a7ab6
@ -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.
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user