ported from UXP: Issue #2653 - Part 1: Initial cleanup of AppId and isolated mozbrowser. (7b6e3a2d)

most of them are removed from tree already.
This commit is contained in:
2024-11-21 22:55:00 +08:00
parent b74870c6b4
commit e019ce41d2
5 changed files with 3 additions and 37 deletions
-5
View File
@@ -2200,11 +2200,6 @@ nsFrameLoader::OwnerIsIsolatedMozBrowserFrame()
return false;
}
bool isolated = browserFrame->GetIsolated();
if (isolated) {
return true;
}
return false;
}
-1
View File
@@ -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")
-14
View File
@@ -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()
{
@@ -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.
+3 -3
View File
@@ -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,