diff --git a/docshell/base/nsDocShell.cpp b/docshell/base/nsDocShell.cpp index 0dbe5e0c0cde..dd7c9b10c07f 100644 --- a/docshell/base/nsDocShell.cpp +++ b/docshell/base/nsDocShell.cpp @@ -2815,7 +2815,7 @@ nsDocShell::GetSameTypeParent(nsIDocShellTreeItem ** aParent) } NS_IMETHODIMP -nsDocShell::GetParentIgnoreBrowserFrame(nsIDocShell** aParent) +nsDocShell::GetSameTypeParentIgnoreBrowserAndAppBoundaries(nsIDocShell** aParent) { NS_ENSURE_ARG_POINTER(aParent); *aParent = nullptr; @@ -12421,7 +12421,7 @@ nsDocShell::GetAppId(uint32_t* aAppId) MOZ_ASSERT(GetFrameType() != eFrameTypeApp); nsCOMPtr parent; - GetParentIgnoreBrowserFrame(getter_AddRefs(parent)); + GetSameTypeParentIgnoreBrowserAndAppBoundaries(getter_AddRefs(parent)); if (!parent) { *aAppId = nsIScriptSecurityManager::NO_APP_ID; diff --git a/docshell/base/nsIDocShell.idl b/docshell/base/nsIDocShell.idl index 7d73aea5005b..a09f87c5e6a7 100644 --- a/docshell/base/nsIDocShell.idl +++ b/docshell/base/nsIDocShell.idl @@ -39,7 +39,7 @@ interface nsIWebBrowserPrint; interface nsIVariant; interface nsIPrivacyTransitionObserver; -[scriptable, builtinclass, uuid(e93b2f6a-c543-448b-9239-55c96e31672e)] +[scriptable, builtinclass, uuid(0132C0BE-ACB5-4D61-9B19-01C005E030DA)] interface nsIDocShell : nsISupports { /** @@ -647,10 +647,10 @@ interface nsIDocShell : nsISupports [noscript] void setAppId(in unsigned long appId); /** - * Returns the app id of the app the docshell is in. Returns - * nsIScriptSecurityManager::NO_APP_ID if the docshell is not in an app. + * Like nsIDocShellTreeItem::GetSameTypeParent, except this ignores