2001-09-25 05:03:58 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
1999-09-01 04:54:35 +04:00
|
|
|
|
|
|
|
/* Defines the abstract interface for a principal. */
|
|
|
|
|
2001-07-31 23:05:34 +04:00
|
|
|
#include "nsISerializable.idl"
|
1999-09-01 04:54:35 +04:00
|
|
|
|
1999-08-20 13:51:02 +04:00
|
|
|
%{C++
|
|
|
|
struct JSPrincipals;
|
2012-06-11 03:44:50 +04:00
|
|
|
#include "nsCOMPtr.h"
|
|
|
|
#include "nsTArray.h"
|
2017-02-22 14:19:03 +03:00
|
|
|
#include "mozilla/DebugOnly.h"
|
2016-12-19 13:30:06 +03:00
|
|
|
namespace mozilla {
|
2017-01-12 19:38:48 +03:00
|
|
|
class OriginAttributes;
|
2016-12-19 13:30:06 +03:00
|
|
|
}
|
2017-02-22 14:19:03 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Some methods have a fast path for the case when we're comparing a principal
|
|
|
|
* to itself. The situation may happen for example with about:blank documents.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define DECL_FAST_INLINE_HELPER(method_) \
|
|
|
|
inline bool method_(nsIPrincipal* aOther) \
|
|
|
|
{ \
|
|
|
|
mozilla::DebugOnly<bool> val = false; \
|
|
|
|
MOZ_ASSERT_IF(this == aOther, \
|
|
|
|
NS_SUCCEEDED(method_(aOther, &val)) && val); \
|
|
|
|
\
|
|
|
|
bool retVal = false; \
|
|
|
|
return \
|
|
|
|
this == aOther || \
|
|
|
|
(NS_SUCCEEDED(method_(aOther, &retVal)) && retVal); \
|
|
|
|
}
|
|
|
|
|
1999-08-20 13:51:02 +04:00
|
|
|
%}
|
|
|
|
|
2003-10-22 02:11:49 +04:00
|
|
|
interface nsIURI;
|
2010-01-23 00:38:21 +03:00
|
|
|
interface nsIContentSecurityPolicy;
|
2016-01-15 00:21:31 +03:00
|
|
|
interface nsIDOMDocument;
|
2003-10-22 02:11:49 +04:00
|
|
|
|
2003-11-03 07:26:55 +03:00
|
|
|
[ptr] native JSContext(JSContext);
|
1999-08-20 13:51:02 +04:00
|
|
|
[ptr] native JSPrincipals(JSPrincipals);
|
2012-06-11 03:44:50 +04:00
|
|
|
[ptr] native PrincipalArray(nsTArray<nsCOMPtr<nsIPrincipal> >);
|
2017-01-12 19:38:48 +03:00
|
|
|
[ref] native const_OriginAttributes(const mozilla::OriginAttributes);
|
1999-07-24 07:58:23 +04:00
|
|
|
|
2017-02-04 01:56:13 +03:00
|
|
|
[scriptable, builtinclass, uuid(f75f502d-79fd-48be-a079-e5a7b8f80c8b)]
|
2003-07-24 09:15:20 +04:00
|
|
|
interface nsIPrincipal : nsISerializable
|
|
|
|
{
|
2003-10-22 02:11:49 +04:00
|
|
|
/**
|
|
|
|
* Returns whether the other principal is equivalent to this principal.
|
2012-10-22 10:29:56 +04:00
|
|
|
* Principals are considered equal if they are the same principal, or
|
|
|
|
* they have the same origin.
|
2003-10-22 02:11:49 +04:00
|
|
|
*/
|
|
|
|
boolean equals(in nsIPrincipal other);
|
|
|
|
|
2014-02-14 06:57:34 +04:00
|
|
|
/**
|
2014-02-14 06:57:36 +04:00
|
|
|
* Like equals, but takes document.domain changes into account.
|
2014-02-14 06:57:34 +04:00
|
|
|
*/
|
|
|
|
boolean equalsConsideringDomain(in nsIPrincipal other);
|
|
|
|
|
2013-05-04 01:47:09 +04:00
|
|
|
%{C++
|
2017-02-22 14:19:03 +03:00
|
|
|
DECL_FAST_INLINE_HELPER(Equals)
|
|
|
|
DECL_FAST_INLINE_HELPER(EqualsConsideringDomain)
|
2013-05-04 01:47:09 +04:00
|
|
|
%}
|
|
|
|
|
2003-10-22 02:11:49 +04:00
|
|
|
/**
|
|
|
|
* Returns a hash value for the principal.
|
|
|
|
*/
|
2006-02-17 19:12:17 +03:00
|
|
|
[noscript] readonly attribute unsigned long hashValue;
|
2003-10-22 02:11:49 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The codebase URI to which this principal pertains. This is
|
|
|
|
* generally the document URI.
|
|
|
|
*/
|
2010-12-22 16:58:22 +03:00
|
|
|
readonly attribute nsIURI URI;
|
2003-10-22 02:11:49 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The domain URI to which this principal pertains.
|
2015-09-24 02:36:04 +03:00
|
|
|
* This is null unless script successfully sets document.domain to our URI
|
|
|
|
* or a superdomain of our URI.
|
2003-10-22 02:11:49 +04:00
|
|
|
* Setting this has no effect on the URI.
|
2015-09-24 02:36:04 +03:00
|
|
|
* See https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy#Changing_origin
|
2003-10-22 02:11:49 +04:00
|
|
|
*/
|
2006-02-17 19:12:17 +03:00
|
|
|
[noscript] attribute nsIURI domain;
|
2003-10-22 02:11:49 +04:00
|
|
|
|
2005-07-09 03:26:36 +04:00
|
|
|
/**
|
|
|
|
* Returns whether the other principal is equal to or weaker than this
|
2012-10-22 10:29:56 +04:00
|
|
|
* principal. Principals are equal if they are the same object or they
|
|
|
|
* have the same origin.
|
2005-07-09 03:26:36 +04:00
|
|
|
*
|
2006-04-03 02:00:08 +04:00
|
|
|
* Thus a principal always subsumes itself.
|
2005-07-09 03:26:36 +04:00
|
|
|
*
|
2006-04-03 02:00:08 +04:00
|
|
|
* The system principal subsumes itself and all other principals.
|
2005-07-09 03:26:36 +04:00
|
|
|
*
|
2006-04-03 02:00:08 +04:00
|
|
|
* A null principal (corresponding to an unknown, hence assumed minimally
|
|
|
|
* privileged, security context) is not equal to any other principal
|
|
|
|
* (including other null principals), and therefore does not subsume
|
|
|
|
* anything but itself.
|
2005-07-09 03:26:36 +04:00
|
|
|
*/
|
2010-12-22 16:58:22 +03:00
|
|
|
boolean subsumes(in nsIPrincipal other);
|
2005-07-22 23:05:42 +04:00
|
|
|
|
2014-02-14 06:57:34 +04:00
|
|
|
/**
|
2014-02-14 06:57:36 +04:00
|
|
|
* Same as the previous method, subsumes(), but takes document.domain into
|
|
|
|
* account.
|
2014-02-14 06:57:34 +04:00
|
|
|
*/
|
|
|
|
boolean subsumesConsideringDomain(in nsIPrincipal other);
|
|
|
|
|
2017-01-18 15:17:19 +03:00
|
|
|
/**
|
|
|
|
* Same as the subsumesConsideringDomain(), but ignores the first party
|
|
|
|
* domain in its originAttributes.
|
|
|
|
*/
|
|
|
|
boolean subsumesConsideringDomainIgnoringFPD(in nsIPrincipal other);
|
|
|
|
|
2013-05-04 01:47:09 +04:00
|
|
|
%{C++
|
2017-02-22 14:19:03 +03:00
|
|
|
DECL_FAST_INLINE_HELPER(Subsumes)
|
|
|
|
DECL_FAST_INLINE_HELPER(SubsumesConsideringDomain)
|
|
|
|
DECL_FAST_INLINE_HELPER(SubsumesConsideringDomainIgnoringFPD)
|
|
|
|
#undef DECL_FAST_INLINE_HELPER
|
2013-05-04 01:47:09 +04:00
|
|
|
%}
|
|
|
|
|
2008-02-27 06:45:29 +03:00
|
|
|
/**
|
|
|
|
* Checks whether this principal is allowed to load the network resource
|
|
|
|
* located at the given URI under the same-origin policy. This means that
|
|
|
|
* codebase principals are only allowed to load resources from the same
|
|
|
|
* domain, the system principal is allowed to load anything, and null
|
2014-09-30 12:09:36 +04:00
|
|
|
* principals can only load URIs where they are the principal. This is
|
|
|
|
* changed by the optional flag allowIfInheritsPrincipal (which defaults to
|
|
|
|
* false) which allows URIs that inherit their loader's principal.
|
2008-02-27 06:45:29 +03:00
|
|
|
*
|
|
|
|
* If the load is allowed this function does nothing. If the load is not
|
|
|
|
* allowed the function throws NS_ERROR_DOM_BAD_URI.
|
|
|
|
*
|
|
|
|
* NOTE: Other policies might override this, such as the Access-Control
|
|
|
|
* specification.
|
|
|
|
* NOTE: The 'domain' attribute has no effect on the behaviour of this
|
|
|
|
* function.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @param uri The URI about to be loaded.
|
|
|
|
* @param report If true, will report a warning to the console service
|
|
|
|
* if the load is not allowed.
|
2012-08-20 22:34:33 +04:00
|
|
|
* @param allowIfInheritsPrincipal If true, the load is allowed if the
|
|
|
|
* loadee inherits the principal of the
|
|
|
|
* loader.
|
2008-02-27 06:45:29 +03:00
|
|
|
* @throws NS_ERROR_DOM_BAD_URI if the load is not allowed.
|
|
|
|
*/
|
2012-08-20 22:34:33 +04:00
|
|
|
void checkMayLoad(in nsIURI uri, in boolean report,
|
|
|
|
in boolean allowIfInheritsPrincipal);
|
2008-02-27 06:45:29 +03:00
|
|
|
|
2010-01-23 00:38:21 +03:00
|
|
|
/**
|
|
|
|
* A Content Security Policy associated with this principal.
|
2016-01-15 00:21:31 +03:00
|
|
|
* Use this function to query the associated CSP with this principal.
|
2017-01-30 16:09:37 +03:00
|
|
|
* Please *only* use this function to *set* a CSP when you know exactly what you are doing.
|
|
|
|
* Most likely you want to call ensureCSP instead of setCSP.
|
2010-01-23 00:38:21 +03:00
|
|
|
*/
|
2017-01-30 16:09:37 +03:00
|
|
|
[noscript] attribute nsIContentSecurityPolicy csp;
|
2016-01-15 00:21:31 +03:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Use this function to query a CSP associated with this principal.
|
|
|
|
* If no CSP is associated with this principal then one is created
|
|
|
|
* internally and setRequestContext is called on the CSP using aDocument.
|
|
|
|
*
|
|
|
|
* Please note if aDocument is null, then setRequestContext on the
|
|
|
|
* CSP object is called using the current principal.
|
|
|
|
*/
|
|
|
|
[noscript] nsIContentSecurityPolicy ensureCSP(in nsIDOMDocument aDocument);
|
2012-07-20 09:44:03 +04:00
|
|
|
|
2015-11-15 06:28:23 +03:00
|
|
|
/**
|
|
|
|
* A speculative Content Security Policy associated with this
|
|
|
|
* principal. Set during speculative loading (preloading) and
|
|
|
|
* used *only* for preloads.
|
|
|
|
*
|
|
|
|
* If you want to query the CSP associated with that principal,
|
|
|
|
* then this is *not* what you want. Instead query 'csp'.
|
|
|
|
*/
|
2016-01-15 00:21:31 +03:00
|
|
|
[noscript] readonly attribute nsIContentSecurityPolicy preloadCsp;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Use this function to query a speculative CSP associated with this
|
|
|
|
* principal. If no speculative CSP is associated with this principal
|
|
|
|
* then one is created internally and setRequestContext is called on
|
|
|
|
* the CSP using aDocument.
|
|
|
|
*
|
|
|
|
* Please note if aDocument is null, then setRequestContext on the
|
|
|
|
* speculative CSP object is called using the current principal.
|
|
|
|
*/
|
|
|
|
[noscript] nsIContentSecurityPolicy ensurePreloadCSP(in nsIDOMDocument aDocument);
|
2015-11-15 06:28:23 +03:00
|
|
|
|
2015-05-21 21:16:04 +03:00
|
|
|
/**
|
|
|
|
* The CSP of the principal in JSON notation.
|
|
|
|
* Note, that the CSP itself is not exposed to JS, but script
|
|
|
|
* should be able to obtain a JSON representation of the CSP.
|
|
|
|
*/
|
|
|
|
readonly attribute AString cspJSON;
|
|
|
|
|
2015-05-15 02:24:25 +03:00
|
|
|
/**
|
|
|
|
* A dictionary of the non-default origin attributes associated with this
|
|
|
|
* nsIPrincipal.
|
|
|
|
*
|
|
|
|
* Attributes are tokens that are taken into account when determining whether
|
|
|
|
* two principals are same-origin - if any attributes differ, the principals
|
|
|
|
* are cross-origin, even if the scheme, host, and port are the same.
|
|
|
|
* Attributes should also be considered for all security and bucketing decisions,
|
|
|
|
* even those which make non-standard comparisons (like cookies, which ignore
|
|
|
|
* scheme, or quotas, which ignore subdomains).
|
|
|
|
*
|
|
|
|
* If you're looking for an easy-to-use canonical stringification of the origin
|
|
|
|
* attributes, see |originSuffix| below.
|
|
|
|
*/
|
|
|
|
[implicit_jscontext]
|
|
|
|
readonly attribute jsval originAttributes;
|
|
|
|
|
2016-12-19 13:30:06 +03:00
|
|
|
[noscript, notxpcom, nostdcall, binaryname(OriginAttributesRef)]
|
2017-01-12 19:38:48 +03:00
|
|
|
const_OriginAttributes OriginAttributesRef();
|
2016-12-19 13:30:06 +03:00
|
|
|
|
2015-05-15 02:55:52 +03:00
|
|
|
/**
|
|
|
|
* A canonical representation of the origin for this principal. This
|
|
|
|
* consists of a base string (which, for codebase principals, is of the
|
|
|
|
* format scheme://host:port), concatenated with |originAttributes| (see
|
|
|
|
* below).
|
|
|
|
*
|
|
|
|
* We maintain the invariant that principalA.equals(principalB) if and only
|
|
|
|
* if principalA.origin == principalB.origin.
|
|
|
|
*/
|
|
|
|
readonly attribute ACString origin;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The base part of |origin| without the concatenation with |originSuffix|.
|
|
|
|
* This doesn't have the important invariants described above with |origin|,
|
|
|
|
* and as such should only be used for legacy situations.
|
|
|
|
*/
|
|
|
|
readonly attribute ACString originNoSuffix;
|
|
|
|
|
2015-05-15 02:24:25 +03:00
|
|
|
/**
|
|
|
|
* A string of the form !key1=value1&key2=value2, where each pair represents
|
|
|
|
* an attribute with a non-default value. If all attributes have default
|
|
|
|
* values, this is the empty string.
|
|
|
|
*
|
|
|
|
* The value of .originSuffix is automatically serialized into .origin, so any
|
|
|
|
* consumers using that are automatically origin-attribute-aware. Consumers with
|
|
|
|
* special requirements must inspect and compare .originSuffix manually.
|
|
|
|
*/
|
|
|
|
readonly attribute AUTF8String originSuffix;
|
|
|
|
|
2013-01-09 01:53:29 +04:00
|
|
|
/**
|
|
|
|
* The base domain of the codebase URI to which this principal pertains
|
|
|
|
* (generally the document URI), handling null principals and
|
|
|
|
* non-hierarchical schemes correctly.
|
|
|
|
*/
|
|
|
|
readonly attribute ACString baseDomain;
|
2013-01-26 21:56:23 +04:00
|
|
|
|
2012-07-20 09:44:03 +04:00
|
|
|
const short APP_STATUS_NOT_INSTALLED = 0;
|
|
|
|
const short APP_STATUS_INSTALLED = 1;
|
2012-08-08 21:21:54 +04:00
|
|
|
const short APP_STATUS_PRIVILEGED = 2;
|
2012-07-20 09:44:03 +04:00
|
|
|
const short APP_STATUS_CERTIFIED = 3;
|
|
|
|
|
|
|
|
/**
|
2012-11-10 22:32:36 +04:00
|
|
|
* Gets the principal's app status, which indicates whether the principal
|
|
|
|
* corresponds to "app code", and if it does, how privileged that code is.
|
|
|
|
* This method returns one of the APP_STATUS constants above.
|
|
|
|
*
|
|
|
|
* Note that a principal may have
|
|
|
|
*
|
|
|
|
* appId != nsIScriptSecurityManager::NO_APP_ID &&
|
|
|
|
* appId != nsIScriptSecurityManager::UNKNOWN_APP_ID
|
|
|
|
*
|
|
|
|
* and still have appStatus == APP_STATUS_NOT_INSTALLED. That's because
|
|
|
|
* appId identifies the app that contains this principal, but a window
|
|
|
|
* might be contained in an app and not be running code that the app has
|
|
|
|
* vouched for. For example, the window might be inside an <iframe
|
|
|
|
* mozbrowser>, or the window's origin might not match the app's origin.
|
|
|
|
*
|
|
|
|
* If you're doing a check to determine "does this principal correspond to
|
|
|
|
* app code?", you must check appStatus; checking appId != NO_APP_ID is not
|
|
|
|
* sufficient.
|
2012-07-20 09:44:03 +04:00
|
|
|
*/
|
2012-11-10 22:32:36 +04:00
|
|
|
[infallible] readonly attribute unsigned short appStatus;
|
2012-08-13 20:58:38 +04:00
|
|
|
|
2012-07-20 09:44:03 +04:00
|
|
|
/**
|
2012-11-10 22:32:36 +04:00
|
|
|
* Gets the id of the app this principal is inside. If this principal is
|
|
|
|
* not inside an app, returns nsIScriptSecurityManager::NO_APP_ID.
|
|
|
|
*
|
|
|
|
* Note that this principal does not necessarily have the permissions of
|
|
|
|
* the app identified by appId. For example, this principal might
|
|
|
|
* correspond to an iframe whose origin differs from that of the app frame
|
|
|
|
* containing it. In this case, the iframe will have the appId of its
|
|
|
|
* containing app frame, but the iframe must not run with the app's
|
|
|
|
* permissions.
|
|
|
|
*
|
|
|
|
* Similarly, this principal might correspond to an <iframe mozbrowser>
|
|
|
|
* inside an app frame; in this case, the content inside the iframe should
|
|
|
|
* not have any of the app's permissions, even if the iframe is at the same
|
|
|
|
* origin as the app.
|
|
|
|
*
|
|
|
|
* If you're doing a security check based on appId, you must check
|
|
|
|
* appStatus as well.
|
2012-07-20 09:44:03 +04:00
|
|
|
*/
|
2012-11-10 22:32:36 +04:00
|
|
|
[infallible] readonly attribute unsigned long appId;
|
2012-10-24 21:50:25 +04:00
|
|
|
|
2016-04-24 06:56:56 +03:00
|
|
|
/**
|
|
|
|
* Gets the ID of the add-on this principal belongs to.
|
|
|
|
*/
|
|
|
|
readonly attribute AString addonId;
|
|
|
|
|
2015-07-30 21:15:00 +03:00
|
|
|
/**
|
|
|
|
* Gets the id of the user context this principal is inside. If this
|
|
|
|
* principal is inside the default userContext, this returns
|
|
|
|
* nsIScriptSecurityManager::DEFAULT_USER_CONTEXT_ID.
|
|
|
|
*/
|
|
|
|
[infallible] readonly attribute unsigned long userContextId;
|
|
|
|
|
2016-06-29 15:01:00 +03:00
|
|
|
/**
|
|
|
|
* Gets the id of the private browsing state of the context containing
|
|
|
|
* this principal. If the principal has a private browsing value of 0, it
|
|
|
|
* is not in private browsing.
|
|
|
|
*/
|
|
|
|
[infallible] readonly attribute unsigned long privateBrowsingId;
|
|
|
|
|
2012-07-31 19:47:20 +04:00
|
|
|
/**
|
2016-02-05 04:42:44 +03:00
|
|
|
* Returns true iff the principal is inside an isolated mozbrowser element.
|
2016-10-15 04:46:26 +03:00
|
|
|
* <xul:browser> is not considered to be a mozbrowser element.
|
|
|
|
* <iframe mozbrowser noisolation> does not count as isolated since
|
|
|
|
* isolation is disabled. Isolation can only be disabled if the
|
|
|
|
* containing document is chrome.
|
2012-07-31 19:47:20 +04:00
|
|
|
*/
|
2016-02-05 04:42:44 +03:00
|
|
|
[infallible] readonly attribute boolean isInIsolatedMozBrowserElement;
|
2012-10-24 21:50:25 +04:00
|
|
|
|
2012-09-26 03:28:17 +04:00
|
|
|
/**
|
|
|
|
* Returns true if this principal has an unknown appId. This shouldn't
|
|
|
|
* generally be used. We only expose it due to not providing the correct
|
|
|
|
* appId everywhere where we construct principals.
|
|
|
|
*/
|
2012-11-10 22:32:36 +04:00
|
|
|
[infallible] readonly attribute boolean unknownAppId;
|
2012-10-24 21:50:25 +04:00
|
|
|
|
2012-10-23 20:31:19 +04:00
|
|
|
/**
|
2015-10-24 03:58:21 +03:00
|
|
|
* Returns true iff this is a null principal (corresponding to an
|
2012-10-23 20:31:19 +04:00
|
|
|
* unknown, hence assumed minimally privileged, security context).
|
|
|
|
*/
|
2012-11-10 22:32:36 +04:00
|
|
|
[infallible] readonly attribute boolean isNullPrincipal;
|
2015-03-13 23:15:09 +03:00
|
|
|
|
2015-10-24 03:58:21 +03:00
|
|
|
/**
|
|
|
|
* Returns true iff this principal corresponds to a codebase origin.
|
|
|
|
*/
|
|
|
|
[infallible] readonly attribute boolean isCodebasePrincipal;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns true iff this is an expanded principal.
|
|
|
|
*/
|
|
|
|
[infallible] readonly attribute boolean isExpandedPrincipal;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns true iff this is the system principal.
|
|
|
|
*/
|
|
|
|
[infallible] readonly attribute boolean isSystemPrincipal;
|
1999-07-24 07:58:23 +04:00
|
|
|
};
|
2012-06-11 03:44:50 +04:00
|
|
|
|
|
|
|
/**
|
2017-03-22 13:39:08 +03:00
|
|
|
* If SystemPrincipal is too risky to use, but we want a principal to access
|
2017-03-22 13:38:17 +03:00
|
|
|
* more than one origin, ExpandedPrincipals letting us define an array of
|
|
|
|
* principals it subsumes. So script with an ExpandedPrincipals will gain
|
2013-01-26 21:56:23 +04:00
|
|
|
* same origin access when at least one of its principals it contains gained
|
2017-03-22 13:38:17 +03:00
|
|
|
* sameorigin acccess. An ExpandedPrincipal will be subsumed by the system
|
|
|
|
* principal, and by another ExpandedPrincipal that has all its principals.
|
2012-06-11 03:44:50 +04:00
|
|
|
* It is added for jetpack content-scripts to let them interact with the
|
2013-01-26 21:56:23 +04:00
|
|
|
* content and a well defined set of other domains, without the risk of
|
2012-06-11 03:44:50 +04:00
|
|
|
* leaking out a system principal to the content. See: Bug 734891
|
|
|
|
*/
|
|
|
|
[uuid(f3e177Df-6a5e-489f-80a7-2dd1481471d8)]
|
|
|
|
interface nsIExpandedPrincipal : nsISupports
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* An array of principals that the expanded principal subsumes.
|
2013-01-26 21:56:23 +04:00
|
|
|
* Note: this list is not reference counted, it is shared, so
|
2012-06-11 03:44:50 +04:00
|
|
|
* should not be changed and should only be used ephemerally.
|
|
|
|
*/
|
2012-08-09 12:31:14 +04:00
|
|
|
[noscript] readonly attribute PrincipalArray whiteList;
|
2012-10-24 21:50:25 +04:00
|
|
|
};
|