gecko-dev/caps
Paul Zuehlcke e5b57b5d4c Bug 1706292 - Do not clone principal for CookieJarSettings cookie permission check. r=timhuang,ckerschb
For every cookie permission check CookieJarSettings::CookiePermission has to create a new principal.
This is slow. It uses a cloned principal so it can strip the origin attributes which should not be
used for the permission check.
With this patch we no longer need to clone the principal. We pass in the original principal and perform
the OA stripping on an OA copy in BasePrincipal::EqualsForPermission.
Before, EqualsForPermission was guaranteed to get a content principal, because ClonePrincipalForPermission
enforced it. BasePrincipal::EqualsForPermission was refactored to account for non content principals.

Differential Revision: https://phabricator.services.mozilla.com/D120834
2021-07-30 15:01:07 +00:00
..
tests Bug 1715167 - Part 7: Add tests for precursor principals, r=ckerschb,ngogge 2021-07-15 21:09:16 +00:00
BasePrincipal.cpp Bug 1706292 - Do not clone principal for CookieJarSettings cookie permission check. r=timhuang,ckerschb 2021-07-30 15:01:07 +00:00
BasePrincipal.h Bug 1715167 - Part 5: Add a precursorPrincipal attribute to nsIPrincipal, r=ckerschb,ngogge 2021-07-15 21:09:15 +00:00
ContentPrincipal.cpp
ContentPrincipal.h
DomainPolicy.cpp
DomainPolicy.h
ExpandedPrincipal.cpp
ExpandedPrincipal.h
moz.build Bug 1714645: Remove NullPrincipalURI. r=ckerschb,nika 2021-07-06 08:23:12 +00:00
nsIAddonPolicyService.idl
nsIDomainPolicy.idl
nsIPrincipal.idl Bug 1715167 - Part 5: Add a precursorPrincipal attribute to nsIPrincipal, r=ckerschb,ngogge 2021-07-15 21:09:15 +00:00
nsIScriptSecurityManager.idl
nsJSPrincipals.cpp
nsJSPrincipals.h
nsScriptSecurityManager.cpp Bug 1715167 - Part 6: Use the unsandboxed result principal as precursor for sandbox principals, r=ckerschb,ngogge 2021-07-15 21:09:15 +00:00
nsScriptSecurityManager.h
NullPrincipal.cpp Bug 1715167 - Part 6: Use the unsandboxed result principal as precursor for sandbox principals, r=ckerschb,ngogge 2021-07-15 21:09:15 +00:00
NullPrincipal.h Bug 1715167 - Part 6: Use the unsandboxed result principal as precursor for sandbox principals, r=ckerschb,ngogge 2021-07-15 21:09:15 +00:00
OriginAttributes.cpp Bug 1719838 - Assert that OriginAttributes are pristine in PopulateFromSuffix. r=ckerschb 2021-07-21 12:10:58 +00:00
OriginAttributes.h
PrincipalHashKey.h
SystemPrincipal.cpp
SystemPrincipal.h