From e019ce41d24a1484ecf2435cab993b2fc62ce64e Mon Sep 17 00:00:00 2001 From: roytam1 Date: Thu, 21 Nov 2024 22:55:00 +0800 Subject: [PATCH] ported from UXP: Issue #2653 - Part 1: Initial cleanup of AppId and isolated mozbrowser. (7b6e3a2d) most of them are removed from tree already. --- dom/base/nsFrameLoader.cpp | 5 ----- dom/base/nsGkAtomList.h | 1 - dom/html/nsGenericHTMLFrameElement.cpp | 14 -------------- dom/interfaces/html/nsIMozBrowserFrame.idl | 14 -------------- uriloader/prefetch/nsIOfflineCacheUpdate.idl | 6 +++--- 5 files changed, 3 insertions(+), 37 deletions(-) diff --git a/dom/base/nsFrameLoader.cpp b/dom/base/nsFrameLoader.cpp index 594b39e77..5f83bb72c 100644 --- a/dom/base/nsFrameLoader.cpp +++ b/dom/base/nsFrameLoader.cpp @@ -2200,11 +2200,6 @@ nsFrameLoader::OwnerIsIsolatedMozBrowserFrame() return false; } - bool isolated = browserFrame->GetIsolated(); - if (isolated) { - return true; - } - return false; } diff --git a/dom/base/nsGkAtomList.h b/dom/base/nsGkAtomList.h index c53bac388..49cda0674 100644 --- a/dom/base/nsGkAtomList.h +++ b/dom/base/nsGkAtomList.h @@ -667,7 +667,6 @@ GK_ATOM(nodeSet, "node-set") GK_ATOM(noembed, "noembed") GK_ATOM(noframes, "noframes") GK_ATOM(nohref, "nohref") -GK_ATOM(noisolation, "noisolation") GK_ATOM(nomodule, "nomodule") GK_ATOM(nonce, "nonce") GK_ATOM(none, "none") diff --git a/dom/html/nsGenericHTMLFrameElement.cpp b/dom/html/nsGenericHTMLFrameElement.cpp index 9a5db6089..4f694af7e 100644 --- a/dom/html/nsGenericHTMLFrameElement.cpp +++ b/dom/html/nsGenericHTMLFrameElement.cpp @@ -497,20 +497,6 @@ nsGenericHTMLFrameElement::GetReallyIsBrowser(bool *aOut) return NS_OK; } -/* [infallible] */ NS_IMETHODIMP -nsGenericHTMLFrameElement::GetIsolated(bool *aOut) -{ - *aOut = true; - - if (!nsContentUtils::IsSystemPrincipal(NodePrincipal())) { - return NS_OK; - } - - // Isolation is only disabled if the attribute is present - *aOut = !HasAttr(kNameSpaceID_None, nsGkAtoms::noisolation); - return NS_OK; -} - NS_IMETHODIMP nsGenericHTMLFrameElement::DisallowCreateFrameLoader() { diff --git a/dom/interfaces/html/nsIMozBrowserFrame.idl b/dom/interfaces/html/nsIMozBrowserFrame.idl index 77001ceec..175f72e98 100644 --- a/dom/interfaces/html/nsIMozBrowserFrame.idl +++ b/dom/interfaces/html/nsIMozBrowserFrame.idl @@ -20,20 +20,6 @@ interface nsIMozBrowserFrame : nsIDOMMozBrowserFrame */ [infallible] readonly attribute boolean reallyIsBrowser; - /** - * Gets whether this frame is an isolated frame. - * - * By default, browser frames are isolated, meaning they have a principal - * where OriginAttributes.mIsInIsolatedMozBrowser == true. This isolates - * storage and other origin related items from non-browser apps, xul:browsers, - * etc. - * - * Isolation can be disabled by setting the frame's isolated attribute to - * false. Disabling isolation is only allowed if the containing document has - * browser permission (or equivalent access). - */ - [infallible] readonly attribute boolean isolated; - /** * Normally, a frame tries to create its frame loader when its src is * modified, or its contentWindow is accessed. diff --git a/uriloader/prefetch/nsIOfflineCacheUpdate.idl b/uriloader/prefetch/nsIOfflineCacheUpdate.idl index 1308a8de2..87ec120bc 100644 --- a/uriloader/prefetch/nsIOfflineCacheUpdate.idl +++ b/uriloader/prefetch/nsIOfflineCacheUpdate.idl @@ -224,9 +224,9 @@ interface nsIOfflineCacheUpdateService : nsISupports { /** * Schedule a cache update for a given offline manifest using app cache - * bound to the given appID+inIsolatedMozBrowser flag. If an existing update - * is scheduled or running, that update will be returned. Otherwise a new - * update will be scheduled. + * bound to the given appID flag. If an existing update is scheduled or + * running, that update will be returned. Otherwise a new update will be + * scheduled. */ nsIOfflineCacheUpdate scheduleAppUpdate(in nsIURI aManifestURI, in nsIURI aDocumentURI,