gecko-dev/caps
Luca Greco 635e7a7358 Bug 1741600 - Fix ExpandedPrincipal and nsCSPContext leaks triggered by ApplyAddonContentScriptCSP. r=ckerschb,robwu
This patch is meant to be a proposed short run fix to prevent ApplyAddonContentScriptCSP
from leaking the ExpandedPrincipal and nsCSPContext instance because they keep a reference
to each other.
This patch prevent that leak by creating a clone of the ExpandedPrincipal and then use
that cloned instance in the call to nsCSPContext::SetRequestContextWithPrincipal.

Once Bug 1548468 will move the CSP off the ExpandedPrincipal class, cloning the expanded
principal to prevent that leak should not be necessary anymore.

Differential Revision: https://phabricator.services.mozilla.com/D132144
2021-11-26 15:51:13 +00:00
..
tests Bug 1576768 - Automatically format .sjs files using prettier. r=Standard8,agi,zombie,extension-reviewers 2021-10-18 09:26:33 +00:00
BasePrincipal.cpp Bug 1724376 - Part 2: Add a RejectForeignAllowList::Check() for principal. r=dimi,pbz,ckerschb 2021-10-05 15:16:19 +00:00
BasePrincipal.h Bug 1724376 - Part 2: Add a RejectForeignAllowList::Check() for principal. r=dimi,pbz,ckerschb 2021-10-05 15:16:19 +00:00
ContentPrincipal.cpp Bug 1726123 - Part 5: Add missing "js/" includes outside of SM. r=arai 2021-08-17 15:45:39 +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
ContentPrincipalInfoHashKey.h Bug 1725942 - Part 1: Add ContentPrincipalInfoHashKey r=bholley 2021-10-19 12:01:49 +00:00
DomainPolicy.cpp Bug 1731645 - Fix non-unified build errors in caps/. r=ckerschb 2021-09-21 15:42:01 +00:00
DomainPolicy.h Bug 708901 - Migrate to nsTHashSet in caps. r=ckerschb 2021-03-24 17:56:45 +00:00
ExpandedPrincipal.cpp Bug 1741600 - Fix ExpandedPrincipal and nsCSPContext leaks triggered by ApplyAddonContentScriptCSP. r=ckerschb,robwu 2021-11-26 15:51:13 +00:00
ExpandedPrincipal.h Bug 1741600 - Fix ExpandedPrincipal and nsCSPContext leaks triggered by ApplyAddonContentScriptCSP. r=ckerschb,robwu 2021-11-26 15:51:13 +00:00
NullPrincipal.cpp Bug 1724152: Replace GkRustUtils::GenerateUUID with nsID::GenerateUUID. r=ckerschb 2021-11-04 08:55:46 +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 1742598 - Part 1: Add an parameter to URLParams::Serialize() to indicate if the encoding is needed for the serialization result. r=smaug,necko-reviewers,dragana 2021-11-25 12:13:48 +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 1725942 - Part 1: Add ContentPrincipalInfoHashKey r=bholley 2021-10-19 12:01:49 +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 1724376 - Part 2: Add a RejectForeignAllowList::Check() for principal. r=dimi,pbz,ckerschb 2021-10-05 15:16:19 +00:00
nsIScriptSecurityManager.idl Bug 1685801: Part 12 - Remove BrowserUtils.urlSecurityCheck. r=mccr8 2021-01-28 20:58:48 +00:00
nsJSPrincipals.cpp Bug 1731645 - Fix non-unified build errors in caps/. r=ckerschb 2021-09-21 15:42:01 +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 1731645 - Fix non-unified build errors in caps/. r=ckerschb 2021-09-21 15:42:01 +00:00
nsScriptSecurityManager.h