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 Bug 1570786 - Avoid ContentPrincipal::GetURI null deref r=necko-reviewers,kershaw 2021-06-21 12:03:46 +00:00
ContentPrincipal.h Bug 1711078 - Part 2: Mark immutable fields in principal types as const, r=ckerschb 2021-05-17 20:50:09 +00:00
DomainPolicy.cpp Bug 708901 - Migrate to nsTHashSet in caps. r=ckerschb 2021-03-24 17:56:45 +00:00
DomainPolicy.h Bug 708901 - Migrate to nsTHashSet in caps. r=ckerschb 2021-03-24 17:56:45 +00:00
ExpandedPrincipal.cpp Bug 1711078 - Part 2: Mark immutable fields in principal types as const, r=ckerschb 2021-05-17 20:50:09 +00:00
ExpandedPrincipal.h Bug 1711078 - Part 2: Mark immutable fields in principal types as const, r=ckerschb 2021-05-17 20:50:09 +00:00
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 Bug 1714065 - Allow matching partition key fields via OriginAttributesPattern. r=timhuang,ckerschb 2021-06-24 09:13:30 +00:00
PrincipalHashKey.h
SystemPrincipal.cpp Bug 1711078 - Part 2: Mark immutable fields in principal types as const, r=ckerschb 2021-05-17 20:50:09 +00:00
SystemPrincipal.h Bug 1711078 - Part 2: Mark immutable fields in principal types as const, r=ckerschb 2021-05-17 20:50:09 +00:00
moz.build Bug 1714645: Remove NullPrincipalURI. r=ckerschb,nika 2021-07-06 08:23:12 +00:00
nsIAddonPolicyService.idl Bug 1697334 implement matches property in web_accessible_resources r=zombie,ckerschb,necko-reviewers,smaug 2021-05-14 03:15:15 +00:00
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 Bug 1685801: Part 12 - Remove BrowserUtils.urlSecurityCheck. r=mccr8 2021-01-28 20:58:48 +00:00
nsJSPrincipals.cpp Bug 1650145 - Replace all value uses of Empty[C]String by 0-length _ns literals. r=froydnj,geckoview-reviewers,agi 2020-09-23 15:17:15 +00:00
nsJSPrincipals.h Bug 1676362 - Removed unused includes from nsJSPrincipals.h. r=tjr 2020-11-23 16:09:37 +00:00
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