Struct xpcom::interfaces::nsIExpandedPrincipal [] [src]

#[repr(C)]
pub struct nsIExpandedPrincipal { /* fields omitted */ }

interface nsIExpandedPrincipal : nsISupports

/**
 * If SystemPrincipal is too risky to use, but we want a principal to access
 * more than one origin, ExpandedPrincipals letting us define an array of
 * principals it subsumes. So script with an ExpandedPrincipals will gain
 * same origin access when at least one of its principals it contains gained
 * sameorigin acccess. An ExpandedPrincipal will be subsumed by the system
 * principal, and by another ExpandedPrincipal that has all its principals.
 * It is added for jetpack content-scripts to let them interact with the
 * content and a well defined set of other domains, without the risk of
 * leaking out a system principal to the content. See: Bug 734891
 */

Methods

impl nsIExpandedPrincipal
[src]

[src]

Cast this nsIExpandedPrincipal to one of its base interfaces.

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIExpandedPrincipal
[src]

IID: nsIID = nsID(4091639775, 27230, 18591, [128, 167, 45, 209, 72, 20, 113, 216])

[src]

Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more

impl RefCounted for nsIExpandedPrincipal
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIExpandedPrincipal
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.