mirror of
https://github.com/roytam1/basilisk55.git
synced 2026-05-26 15:02:46 +00:00
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:
@@ -2200,11 +2200,6 @@ nsFrameLoader::OwnerIsIsolatedMozBrowserFrame()
|
||||
return false;
|
||||
}
|
||||
|
||||
bool isolated = browserFrame->GetIsolated();
|
||||
if (isolated) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user