From 7dbfaa7f5d22f88f376b947eb72b27f105f947b2 Mon Sep 17 00:00:00 2001 From: Jonathan Watt Date: Wed, 6 Dec 2023 09:45:36 +0000 Subject: [PATCH] Bug 1868023. Get rid of nsIDocShell.getSameTypeInProcessParentIgnoreBrowserBoundaries. r=aiunusov Differential Revision: https://phabricator.services.mozilla.com/D195361 --- docshell/base/nsDocShell.cpp | 19 ------------------- docshell/base/nsIDocShell.idl | 8 -------- dom/base/nsGlobalWindowOuter.cpp | 19 +++++-------------- .../tests/xpidl/docshell.xpt | 17 ----------------- 4 files changed, 5 insertions(+), 58 deletions(-) diff --git a/docshell/base/nsDocShell.cpp b/docshell/base/nsDocShell.cpp index ad92fa14fff8..f19328ef65bb 100644 --- a/docshell/base/nsDocShell.cpp +++ b/docshell/base/nsDocShell.cpp @@ -2708,25 +2708,6 @@ nsDocShell::GetInProcessSameTypeParent(nsIDocShellTreeItem** aParent) { return NS_OK; } -NS_IMETHODIMP -nsDocShell::GetSameTypeInProcessParentIgnoreBrowserBoundaries( - nsIDocShell** aParent) { - NS_ENSURE_ARG_POINTER(aParent); - *aParent = nullptr; - - nsCOMPtr parent = - do_QueryInterface(GetAsSupports(mParent)); - if (!parent) { - return NS_OK; - } - - if (parent->ItemType() == mItemType) { - nsCOMPtr parentDS = do_QueryInterface(parent); - parentDS.forget(aParent); - } - return NS_OK; -} - NS_IMETHODIMP nsDocShell::GetInProcessRootTreeItem(nsIDocShellTreeItem** aRootTreeItem) { NS_ENSURE_ARG_POINTER(aRootTreeItem); diff --git a/docshell/base/nsIDocShell.idl b/docshell/base/nsIDocShell.idl index d2316b46682b..0b7fac567219 100644 --- a/docshell/base/nsIDocShell.idl +++ b/docshell/base/nsIDocShell.idl @@ -539,14 +539,6 @@ interface nsIDocShell : nsIDocShellTreeItem */ [infallible] readonly attribute boolean isTopLevelContentDocShell; - /** - * Like nsIDocShellTreeItem::GetSameTypeParent, except this ignores