Summary: | REGRESSION (r196012): Subresource may be blocked by Content Security Policy if it only matches 'self' | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Daniel Bates <dbates> | ||||
Component: | WebCore Misc. | Assignee: | Daniel Bates <dbates> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | aestes, bfulgham, bugzilla, commit-queue, darin, mkwst, webkit-bug-importer, wilander | ||||
Priority: | P2 | Keywords: | InRadar, Regression | ||||
Version: | WebKit Local Build | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
See Also: | https://bugs.webkit.org/show_bug.cgi?id=157472 | ||||||
Bug Depends on: | 153748 | ||||||
Bug Blocks: | |||||||
Attachments: |
|
Description
Daniel Bates
2016-04-22 16:09:39 PDT
Created attachment 277113 [details]
Patch and Layout Tests
Even though it is not strictly necessary to call ContentSecurityPolicy::updateSourceSelf() from ContentSecurityPolicy(ScriptExecutionContext&) because we will call this function when we apply the policy to the script execution context in ContentSecurityPolicy::applyPolicyToScriptExecutionContext() I thought to do so to keep symmetry with the ContentSecurityPolicy(const SecurityOrigin&, const Frame*) constructor and this code is unlikely to be sufficiently hot in a profile. Let me know if it is preferred to omit the call to ContentSecurityPolicy::updateSourceSelf() from ContentSecurityPolicy(ScriptExecutionContext&).
Committed r200030: <http://trac.webkit.org/changeset/200030> *** Bug 157472 has been marked as a duplicate of this bug. *** |