Bug 245504

Summary: Improve PolicyContainer implementation
Product: WebKit Reporter: Ryan Reno <rreno>
Component: Page LoadingAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: beidson, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Ryan Reno 2022-09-21 14:25:57 PDT
We use the PolicyContainer to hold and inherit CSP, COOP, COEP, and ReferrerPolicy. Our integration with storage in history could be improved - we presently check for a history navigation type in DocumentWriter::begin and either use the history policy container from that or store the policy container. It would be nice to have an API for that. Additionally, we pass around a ContentSecurityPolicyResponseHeaders object which stores a CSP List as a vector of strings. That implementation can probably be improved to a more memory efficient representation for storing and parsing a CSPList on inheritance.
Comment 1 Radar WebKit Bug Importer 2022-09-21 14:26:21 PDT
<rdar://problem/100240355>