2015-05-12 00:25:59 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
|
|
|
/* 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/. */
|
|
|
|
|
|
|
|
#ifndef mozilla_BasePrincipal_h
|
|
|
|
#define mozilla_BasePrincipal_h
|
|
|
|
|
|
|
|
#include "nsJSPrincipals.h"
|
|
|
|
|
2016-08-15 13:22:44 +03:00
|
|
|
#include "mozilla/Attributes.h"
|
2015-06-03 09:35:09 +03:00
|
|
|
#include "mozilla/dom/ChromeUtilsBinding.h"
|
2015-05-15 02:24:25 +03:00
|
|
|
|
2015-06-04 21:51:57 +03:00
|
|
|
class nsIContentSecurityPolicy;
|
2015-05-14 23:56:37 +03:00
|
|
|
class nsIObjectOutputStream;
|
|
|
|
class nsIObjectInputStream;
|
2015-11-03 04:50:54 +03:00
|
|
|
class nsIURI;
|
2015-05-14 23:56:37 +03:00
|
|
|
|
2015-10-01 06:03:36 +03:00
|
|
|
class nsExpandedPrincipal;
|
|
|
|
|
2015-05-12 00:25:59 +03:00
|
|
|
namespace mozilla {
|
|
|
|
|
2016-07-06 07:06:25 +03:00
|
|
|
class GenericOriginAttributes;
|
|
|
|
|
2015-11-03 04:50:54 +03:00
|
|
|
// Base OriginAttributes class. This has several subclass flavors, and is not
|
|
|
|
// directly constructable itself.
|
2015-05-15 23:43:11 +03:00
|
|
|
class OriginAttributes : public dom::OriginAttributesDictionary
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
bool operator==(const OriginAttributes& aOther) const
|
|
|
|
{
|
|
|
|
return mAppId == aOther.mAppId &&
|
2016-02-05 04:42:44 +03:00
|
|
|
mInIsolatedMozBrowser == aOther.mInIsolatedMozBrowser &&
|
2015-07-29 00:32:00 +03:00
|
|
|
mAddonId == aOther.mAddonId &&
|
2015-09-18 10:11:58 +03:00
|
|
|
mUserContextId == aOther.mUserContextId &&
|
2016-08-09 11:34:53 +03:00
|
|
|
mPrivateBrowsingId == aOther.mPrivateBrowsingId &&
|
|
|
|
mFirstPartyDomain == aOther.mFirstPartyDomain;
|
2015-05-15 23:43:11 +03:00
|
|
|
}
|
|
|
|
bool operator!=(const OriginAttributes& aOther) const
|
|
|
|
{
|
|
|
|
return !(*this == aOther);
|
|
|
|
}
|
|
|
|
|
2015-06-04 21:51:57 +03:00
|
|
|
// Serializes/Deserializes non-default values into the suffix format, i.e.
|
2015-05-15 23:43:11 +03:00
|
|
|
// |!key1=value1&key2=value2|. If there are no non-default attributes, this
|
|
|
|
// returns an empty string.
|
2015-06-03 11:43:43 +03:00
|
|
|
void CreateSuffix(nsACString& aStr) const;
|
2016-11-17 16:52:16 +03:00
|
|
|
|
|
|
|
// Don't use this method for anything else than debugging!
|
|
|
|
void CreateAnonymizedSuffix(nsACString& aStr) const;
|
|
|
|
|
2016-08-15 13:22:44 +03:00
|
|
|
MOZ_MUST_USE bool PopulateFromSuffix(const nsACString& aStr);
|
2015-06-03 09:38:55 +03:00
|
|
|
|
2015-06-05 07:39:34 +03:00
|
|
|
// Populates the attributes from a string like
|
|
|
|
// |uri!key1=value1&key2=value2| and returns the uri without the suffix.
|
2016-08-15 13:22:44 +03:00
|
|
|
MOZ_MUST_USE bool PopulateFromOrigin(const nsACString& aOrigin,
|
2016-11-17 16:52:16 +03:00
|
|
|
nsACString& aOriginNoSuffix);
|
2015-11-03 04:50:54 +03:00
|
|
|
|
2016-06-03 00:02:29 +03:00
|
|
|
// Helper function to match mIsPrivateBrowsing to existing private browsing
|
|
|
|
// flags. Once all other flags are removed, this can be removed too.
|
|
|
|
void SyncAttributesWithPrivateBrowsing(bool aInPrivateBrowsing);
|
|
|
|
|
2016-07-06 07:06:25 +03:00
|
|
|
void SetFromGenericAttributes(const GenericOriginAttributes& aAttrs);
|
|
|
|
|
2016-11-10 09:20:38 +03:00
|
|
|
// check if "privacy.firstparty.isolate" is enabled.
|
|
|
|
static bool IsFirstPartyEnabled();
|
|
|
|
|
2016-12-07 20:07:09 +03:00
|
|
|
// returns true if the originAttributes suffix has mPrivateBrowsingId value
|
|
|
|
// different than 0.
|
|
|
|
static bool IsPrivateBrowsing(const nsACString& aOrigin);
|
|
|
|
|
2015-11-03 04:50:54 +03:00
|
|
|
protected:
|
|
|
|
OriginAttributes() {}
|
|
|
|
explicit OriginAttributes(const OriginAttributesDictionary& aOther)
|
|
|
|
: OriginAttributesDictionary(aOther) {}
|
|
|
|
};
|
|
|
|
|
|
|
|
class PrincipalOriginAttributes;
|
|
|
|
class DocShellOriginAttributes;
|
|
|
|
class NeckoOriginAttributes;
|
|
|
|
|
|
|
|
// Various classes in Gecko contain OriginAttributes members, and those
|
|
|
|
// OriginAttributes get propagated to other classes according to certain rules.
|
|
|
|
// For example, the OriginAttributes on the docshell affect the OriginAttributes
|
|
|
|
// for the principal of a document loaded inside it, whose OriginAttributes in
|
|
|
|
// turn affect those of network loads and child docshells. To codify and
|
|
|
|
// centralize these rules, we introduce separate subclasses for the different
|
|
|
|
// flavors, and a variety of InheritFrom* methods to implement the transfer
|
|
|
|
// behavior.
|
|
|
|
|
|
|
|
// For OriginAttributes stored on principals.
|
|
|
|
class PrincipalOriginAttributes : public OriginAttributes
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
PrincipalOriginAttributes() {}
|
2016-02-05 04:42:44 +03:00
|
|
|
PrincipalOriginAttributes(uint32_t aAppId, bool aInIsolatedMozBrowser)
|
2015-11-03 04:50:54 +03:00
|
|
|
{
|
|
|
|
mAppId = aAppId;
|
2016-02-05 04:42:44 +03:00
|
|
|
mInIsolatedMozBrowser = aInIsolatedMozBrowser;
|
2015-11-03 04:50:54 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
// Inheriting OriginAttributes from docshell to document when user navigates.
|
|
|
|
//
|
|
|
|
// @param aAttrs Origin Attributes of the docshell.
|
|
|
|
// @param aURI The URI of the document.
|
|
|
|
void InheritFromDocShellToDoc(const DocShellOriginAttributes& aAttrs,
|
|
|
|
const nsIURI* aURI);
|
|
|
|
|
|
|
|
// Inherit OriginAttributes from Necko.
|
|
|
|
void InheritFromNecko(const NeckoOriginAttributes& aAttrs);
|
2016-09-20 11:35:21 +03:00
|
|
|
|
|
|
|
void StripUserContextIdAndFirstPartyDomain();
|
2015-11-03 04:50:54 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
// For OriginAttributes stored on docshells / loadcontexts / browsing contexts.
|
|
|
|
class DocShellOriginAttributes : public OriginAttributes
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
DocShellOriginAttributes() {}
|
2016-02-05 04:42:44 +03:00
|
|
|
DocShellOriginAttributes(uint32_t aAppId, bool aInIsolatedMozBrowser)
|
2015-11-03 04:50:54 +03:00
|
|
|
{
|
|
|
|
mAppId = aAppId;
|
2016-02-05 04:42:44 +03:00
|
|
|
mInIsolatedMozBrowser = aInIsolatedMozBrowser;
|
2015-11-03 04:50:54 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
// Inheriting OriginAttributes from document to child docshell when an
|
|
|
|
// <iframe> is created.
|
|
|
|
//
|
|
|
|
// @param aAttrs Origin Attributes of the document.
|
|
|
|
void
|
|
|
|
InheritFromDocToChildDocShell(const PrincipalOriginAttributes& aAttrs);
|
|
|
|
};
|
|
|
|
|
|
|
|
// For OriginAttributes stored on Necko.
|
|
|
|
class NeckoOriginAttributes : public OriginAttributes
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
NeckoOriginAttributes() {}
|
2017-01-03 09:21:58 +03:00
|
|
|
explicit NeckoOriginAttributes(bool aInIsolatedMozBrowser)
|
2015-11-03 04:50:54 +03:00
|
|
|
{
|
2016-02-05 04:42:44 +03:00
|
|
|
mInIsolatedMozBrowser = aInIsolatedMozBrowser;
|
2015-11-03 04:50:54 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
// Inheriting OriginAttributes from document to necko when a network request
|
|
|
|
// is made.
|
|
|
|
void InheritFromDocToNecko(const PrincipalOriginAttributes& aAttrs);
|
|
|
|
|
2016-08-26 07:41:37 +03:00
|
|
|
// Inheriting OriginAttributes from a docshell when loading a top-level
|
|
|
|
// document.
|
|
|
|
void InheritFromDocShellToNecko(const DocShellOriginAttributes& aAttrs,
|
|
|
|
const bool aIsTopLevelDocument = false,
|
|
|
|
nsIURI* aURI = nullptr);
|
2015-11-03 04:50:54 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
// For operating on OriginAttributes not associated with any data structure.
|
|
|
|
class GenericOriginAttributes : public OriginAttributes
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
GenericOriginAttributes() {}
|
|
|
|
explicit GenericOriginAttributes(const OriginAttributesDictionary& aOther)
|
|
|
|
: OriginAttributes(aOther) {}
|
2015-05-15 23:43:11 +03:00
|
|
|
};
|
|
|
|
|
2015-07-09 21:36:35 +03:00
|
|
|
class OriginAttributesPattern : public dom::OriginAttributesPatternDictionary
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
// To convert a JSON string to an OriginAttributesPattern, do the following:
|
|
|
|
//
|
|
|
|
// OriginAttributesPattern pattern;
|
|
|
|
// if (!pattern.Init(aJSONString)) {
|
|
|
|
// ... // handle failure.
|
|
|
|
// }
|
|
|
|
OriginAttributesPattern() {}
|
|
|
|
|
|
|
|
explicit OriginAttributesPattern(const OriginAttributesPatternDictionary& aOther)
|
|
|
|
: OriginAttributesPatternDictionary(aOther) {}
|
|
|
|
|
|
|
|
// Performs a match of |aAttrs| against this pattern.
|
|
|
|
bool Matches(const OriginAttributes& aAttrs) const
|
|
|
|
{
|
|
|
|
if (mAppId.WasPassed() && mAppId.Value() != aAttrs.mAppId) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-02-05 04:42:44 +03:00
|
|
|
if (mInIsolatedMozBrowser.WasPassed() && mInIsolatedMozBrowser.Value() != aAttrs.mInIsolatedMozBrowser) {
|
2015-07-09 21:36:35 +03:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (mAddonId.WasPassed() && mAddonId.Value() != aAttrs.mAddonId) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2015-07-29 00:32:00 +03:00
|
|
|
if (mUserContextId.WasPassed() && mUserContextId.Value() != aAttrs.mUserContextId) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-06-03 00:02:29 +03:00
|
|
|
if (mPrivateBrowsingId.WasPassed() && mPrivateBrowsingId.Value() != aAttrs.mPrivateBrowsingId) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-08-09 11:34:53 +03:00
|
|
|
if (mFirstPartyDomain.WasPassed() && mFirstPartyDomain.Value() != aAttrs.mFirstPartyDomain) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2015-07-09 21:36:35 +03:00
|
|
|
return true;
|
|
|
|
}
|
2016-06-05 22:42:48 +03:00
|
|
|
|
|
|
|
bool Overlaps(const OriginAttributesPattern& aOther) const
|
|
|
|
{
|
|
|
|
if (mAppId.WasPassed() && aOther.mAppId.WasPassed() &&
|
|
|
|
mAppId.Value() != aOther.mAppId.Value()) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (mInIsolatedMozBrowser.WasPassed() &&
|
|
|
|
aOther.mInIsolatedMozBrowser.WasPassed() &&
|
|
|
|
mInIsolatedMozBrowser.Value() != aOther.mInIsolatedMozBrowser.Value()) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (mAddonId.WasPassed() && aOther.mAddonId.WasPassed() &&
|
|
|
|
mAddonId.Value() != aOther.mAddonId.Value()) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (mUserContextId.WasPassed() && aOther.mUserContextId.WasPassed() &&
|
|
|
|
mUserContextId.Value() != aOther.mUserContextId.Value()) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (mPrivateBrowsingId.WasPassed() && aOther.mPrivateBrowsingId.WasPassed() &&
|
|
|
|
mPrivateBrowsingId.Value() != aOther.mPrivateBrowsingId.Value()) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-08-09 11:34:53 +03:00
|
|
|
if (mFirstPartyDomain.WasPassed() && aOther.mFirstPartyDomain.WasPassed() &&
|
|
|
|
mFirstPartyDomain.Value() != aOther.mFirstPartyDomain.Value()) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-06-05 22:42:48 +03:00
|
|
|
return true;
|
|
|
|
}
|
2015-07-09 21:36:35 +03:00
|
|
|
};
|
|
|
|
|
2015-05-12 00:25:59 +03:00
|
|
|
/*
|
|
|
|
* Base class from which all nsIPrincipal implementations inherit. Use this for
|
|
|
|
* default implementations and other commonalities between principal
|
|
|
|
* implementations.
|
|
|
|
*
|
|
|
|
* We should merge nsJSPrincipals into this class at some point.
|
|
|
|
*/
|
|
|
|
class BasePrincipal : public nsJSPrincipals
|
|
|
|
{
|
|
|
|
public:
|
2015-06-04 21:51:57 +03:00
|
|
|
BasePrincipal();
|
2015-05-14 04:25:40 +03:00
|
|
|
|
2015-05-14 21:15:56 +03:00
|
|
|
enum DocumentDomainConsideration { DontConsiderDocumentDomain, ConsiderDocumentDomain};
|
|
|
|
bool Subsumes(nsIPrincipal* aOther, DocumentDomainConsideration aConsideration);
|
|
|
|
|
2015-05-15 02:50:44 +03:00
|
|
|
NS_IMETHOD GetOrigin(nsACString& aOrigin) final;
|
2015-05-15 02:55:52 +03:00
|
|
|
NS_IMETHOD GetOriginNoSuffix(nsACString& aOrigin) final;
|
2015-05-14 21:15:56 +03:00
|
|
|
NS_IMETHOD Equals(nsIPrincipal* other, bool* _retval) final;
|
|
|
|
NS_IMETHOD EqualsConsideringDomain(nsIPrincipal* other, bool* _retval) final;
|
|
|
|
NS_IMETHOD Subsumes(nsIPrincipal* other, bool* _retval) final;
|
|
|
|
NS_IMETHOD SubsumesConsideringDomain(nsIPrincipal* other, bool* _retval) final;
|
2015-10-01 06:03:36 +03:00
|
|
|
NS_IMETHOD CheckMayLoad(nsIURI* uri, bool report, bool allowIfInheritsPrincipal) final;
|
2015-05-16 00:54:21 +03:00
|
|
|
NS_IMETHOD GetCsp(nsIContentSecurityPolicy** aCsp) override;
|
2016-01-15 00:21:31 +03:00
|
|
|
NS_IMETHOD EnsureCSP(nsIDOMDocument* aDocument, nsIContentSecurityPolicy** aCSP) override;
|
2015-11-15 06:28:23 +03:00
|
|
|
NS_IMETHOD GetPreloadCsp(nsIContentSecurityPolicy** aPreloadCSP) override;
|
2016-01-15 00:21:31 +03:00
|
|
|
NS_IMETHOD EnsurePreloadCSP(nsIDOMDocument* aDocument, nsIContentSecurityPolicy** aCSP) override;
|
2015-05-21 21:16:04 +03:00
|
|
|
NS_IMETHOD GetCspJSON(nsAString& outCSPinJSON) override;
|
2015-10-24 03:58:21 +03:00
|
|
|
NS_IMETHOD GetIsNullPrincipal(bool* aResult) override;
|
|
|
|
NS_IMETHOD GetIsCodebasePrincipal(bool* aResult) override;
|
|
|
|
NS_IMETHOD GetIsExpandedPrincipal(bool* aResult) override;
|
|
|
|
NS_IMETHOD GetIsSystemPrincipal(bool* aResult) override;
|
2015-05-15 02:24:25 +03:00
|
|
|
NS_IMETHOD GetOriginAttributes(JSContext* aCx, JS::MutableHandle<JS::Value> aVal) final;
|
|
|
|
NS_IMETHOD GetOriginSuffix(nsACString& aOriginSuffix) final;
|
2015-05-14 04:25:40 +03:00
|
|
|
NS_IMETHOD GetAppStatus(uint16_t* aAppStatus) final;
|
|
|
|
NS_IMETHOD GetAppId(uint32_t* aAppStatus) final;
|
2016-04-24 06:56:56 +03:00
|
|
|
NS_IMETHOD GetAddonId(nsAString& aAddonId) final;
|
2016-02-05 04:42:44 +03:00
|
|
|
NS_IMETHOD GetIsInIsolatedMozBrowserElement(bool* aIsInIsolatedMozBrowserElement) final;
|
2015-05-14 04:25:40 +03:00
|
|
|
NS_IMETHOD GetUnknownAppId(bool* aUnknownAppId) final;
|
2015-07-30 21:15:00 +03:00
|
|
|
NS_IMETHOD GetUserContextId(uint32_t* aUserContextId) final;
|
2016-06-29 15:01:00 +03:00
|
|
|
NS_IMETHOD GetPrivateBrowsingId(uint32_t* aPrivateBrowsingId) final;
|
2015-05-12 00:36:56 +03:00
|
|
|
|
2016-11-02 20:04:13 +03:00
|
|
|
bool EqualsIgnoringAddonId(nsIPrincipal *aOther);
|
|
|
|
|
2016-07-09 03:19:17 +03:00
|
|
|
virtual bool AddonHasPermission(const nsAString& aPerm);
|
|
|
|
|
2015-05-12 00:36:56 +03:00
|
|
|
virtual bool IsOnCSSUnprefixingWhitelist() override { return false; }
|
2015-05-12 00:25:59 +03:00
|
|
|
|
2015-06-03 23:40:46 +03:00
|
|
|
virtual bool IsCodebasePrincipal() const { return false; };
|
2015-06-03 11:43:43 +03:00
|
|
|
|
2015-05-14 21:15:56 +03:00
|
|
|
static BasePrincipal* Cast(nsIPrincipal* aPrin) { return static_cast<BasePrincipal*>(aPrin); }
|
2015-09-23 13:19:06 +03:00
|
|
|
static already_AddRefed<BasePrincipal>
|
2015-11-03 04:50:54 +03:00
|
|
|
CreateCodebasePrincipal(nsIURI* aURI, const PrincipalOriginAttributes& aAttrs);
|
2015-08-26 14:12:13 +03:00
|
|
|
static already_AddRefed<BasePrincipal> CreateCodebasePrincipal(const nsACString& aOrigin);
|
2015-05-14 22:24:03 +03:00
|
|
|
|
2016-12-19 13:30:06 +03:00
|
|
|
const PrincipalOriginAttributes& OriginAttributesRef() override { return mOriginAttributes; }
|
2015-05-14 22:24:03 +03:00
|
|
|
uint32_t AppId() const { return mOriginAttributes.mAppId; }
|
2015-07-30 21:15:00 +03:00
|
|
|
uint32_t UserContextId() const { return mOriginAttributes.mUserContextId; }
|
2016-06-29 15:01:00 +03:00
|
|
|
uint32_t PrivateBrowsingId() const { return mOriginAttributes.mPrivateBrowsingId; }
|
2016-02-05 04:42:44 +03:00
|
|
|
bool IsInIsolatedMozBrowserElement() const { return mOriginAttributes.mInIsolatedMozBrowser; }
|
2015-05-14 22:24:03 +03:00
|
|
|
|
2015-10-24 03:58:21 +03:00
|
|
|
enum PrincipalKind {
|
|
|
|
eNullPrincipal,
|
|
|
|
eCodebasePrincipal,
|
|
|
|
eExpandedPrincipal,
|
|
|
|
eSystemPrincipal
|
|
|
|
};
|
|
|
|
|
|
|
|
virtual PrincipalKind Kind() = 0;
|
|
|
|
|
2016-09-20 11:35:21 +03:00
|
|
|
already_AddRefed<BasePrincipal> CloneStrippingUserContextIdAndFirstPartyDomain();
|
|
|
|
|
2015-05-12 00:25:59 +03:00
|
|
|
protected:
|
2015-06-04 21:51:57 +03:00
|
|
|
virtual ~BasePrincipal();
|
2015-05-12 00:25:59 +03:00
|
|
|
|
2015-05-15 02:50:44 +03:00
|
|
|
virtual nsresult GetOriginInternal(nsACString& aOrigin) = 0;
|
2016-11-02 20:04:13 +03:00
|
|
|
// Note that this does not check OriginAttributes. Callers that depend on
|
|
|
|
// those must call Subsumes instead.
|
2015-05-14 21:15:56 +03:00
|
|
|
virtual bool SubsumesInternal(nsIPrincipal* aOther, DocumentDomainConsideration aConsider) = 0;
|
|
|
|
|
2015-10-01 06:03:36 +03:00
|
|
|
// Internal, side-effect-free check to determine whether the concrete
|
|
|
|
// principal would allow the load ignoring any common behavior implemented in
|
|
|
|
// BasePrincipal::CheckMayLoad.
|
|
|
|
virtual bool MayLoadInternal(nsIURI* aURI) = 0;
|
|
|
|
friend class ::nsExpandedPrincipal;
|
|
|
|
|
2015-07-08 03:53:15 +03:00
|
|
|
// Helper to check whether this principal is associated with an addon that
|
|
|
|
// allows unprivileged code to load aURI.
|
|
|
|
bool AddonAllowsLoad(nsIURI* aURI);
|
|
|
|
|
2015-05-12 00:25:59 +03:00
|
|
|
nsCOMPtr<nsIContentSecurityPolicy> mCSP;
|
2015-11-15 06:28:23 +03:00
|
|
|
nsCOMPtr<nsIContentSecurityPolicy> mPreloadCSP;
|
2015-11-03 04:50:54 +03:00
|
|
|
PrincipalOriginAttributes mOriginAttributes;
|
2015-05-12 00:25:59 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace mozilla
|
|
|
|
|
|
|
|
#endif /* mozilla_BasePrincipal_h */
|