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
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
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
SystemPrincipal.h
moz.build Bug 1725942 - Part 1: Add ContentPrincipalInfoHashKey r=bholley 2021-10-19 12:01:49 +00:00
nsIAddonPolicyService.idl
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
nsJSPrincipals.cpp Bug 1731645 - Fix non-unified build errors in caps/. r=ckerschb 2021-09-21 15:42:01 +00:00
nsJSPrincipals.h
nsScriptSecurityManager.cpp Bug 1731645 - Fix non-unified build errors in caps/. r=ckerschb 2021-09-21 15:42:01 +00:00
nsScriptSecurityManager.h