DescriptionTeach 'LinkRequestBuilder' about the 'nonce' attribute.
Rather than special-casing stylesheet loading, this patch teaches
'LinkRequestBuilder' to grab the nonce when creating requests associated
with '<link>' elements. This ensures that we deal correctly with
stylesheet and HTML imports.
The import tests added in 'http/tests/security/contentSecurityPolicy/nonces/'
verify the expected behavior: a CSP containing "script-src 'nonce-abc'" should
allow '<link rel="import" nonce="abc" href="...">'.
BUG=627762
R=jochen@chromium.org
Committed: https://crrev.com/dd6fbccfc7457596f386d41b822d9e93a22b4cac
Cr-Commit-Position: refs/heads/master@{#405454}
Patch Set 1 #Depends on Patchset: Messages
Total messages: 10 (5 generated)
|