Name Description Size Coverage
BasePrincipal.cpp 45709 92 %
BasePrincipal.h 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. 18323 96 %
ContentPrincipal.cpp static 24019 87 %
ContentPrincipal.h 3054 100 %
ContentPrincipalJSONHandler.h 2424 31 %
DomainPolicy.cpp 6142 99 %
DomainPolicy.h namespace mozilla 1374 67 %
ExpandedPrincipal.cpp = false 13938 69 %
ExpandedPrincipal.h 3370 86 %
ExpandedPrincipalJSONHandler.h 3746 80 %
moz.build 1903 -
nsIAddonPolicyService.idl This interface allows the security manager to query custom per-addon security policy. 3644 -
nsIDomainPolicy.idl When a domain policy is instantiated by invoking activateDomainPolicy() on nsIScriptSecurityManager, these domain sets are consulted when each new global is created (they have no effect on already-created globals). If javascript is globally enabled with |javascript.enabled|, the blocklists are consulted. If globally disabled, the allowlists are consulted. Lookups on blocklist and allowlist happen with contains(), and lookups on superBlocklist and superAllowlist happen with containsSuperDomain(). When deactivate() is invoked, the domain sets are emptied, and the nsIDomainPolicy ceases to have any effect on the system. 2426 -
nsIPrincipal.idl Defines the abstract interface for a principal. 25197 -
nsIScriptSecurityManager.idl For each of these hooks returning NS_OK means 'let the action continue'. Returning an error code means 'veto the action'. XPConnect will return false to the js engine if the action is vetoed. The implementor of this interface is responsible for setting a JS exception into the JSContext if that is appropriate. 14529 -
nsJSPrincipals.cpp static 11222 78 %
nsJSPrincipals.h describes principals by their orginating uris 2801 100 %
nsScriptSecurityManager.cpp 65371 89 %
nsScriptSecurityManager.h Utility method for comparing two URIs. For security purposes, two URIs are equivalent if their schemes, hosts, and ports (if any) match. This method returns true if aSubjectURI and aObjectURI have the same origin, false otherwise. 5017 50 %
NullPrincipal.cpp This is the principal that has no rights and can't be accessed by anything other than itself and chrome; null principals are not same-origin with anything but themselves. 11627 83 %
NullPrincipal.h This is the principal that has no rights and can't be accessed by anything other than itself and chrome; null principals are not same-origin with anything but themselves. 4284 89 %
NullPrincipalJSONHandler.h 2360 31 %
OriginAttributes.cpp 17160 87 %
OriginAttributes.h 10516 75 %
OriginAttributesHashKey.h 1555 100 %
PrincipalHashKey.h 1529 100 %
PrincipalJSONHandler.h 3602 29 %
SharedJSONHandler.h 3294 24 %
SubsumedPrincipalJSONHandler.h 3044 50 %
SystemPrincipal.cpp The privileged system principal. 3253 87 %
SystemPrincipal.h The privileged system principal. 2249 100 %
tests 0 %