DescriptionCSP: Change 'self' to ask the policy object whether a URL matches.
Currently, when CSPSourceList encounters "'self'" in a source list, it
creates a CSPSource using the currently available SecurityOrigin. If
we want to be able to create CSP objects before documents are available
(to support `frame-ancestors` for instance), we need to break this
dependency.
This patch adjusts CSPSourceList to ask the policy object whether a URL
matches self, and the policy object to store a replacable CSPSource
object that could be swapped out if the SecurityOrigin changes.
BUG=411889
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181629
Patch Set 1 #
Total comments: 1
Patch Set 2 : httpfamily #
Messages
Total messages: 7 (2 generated)
|