DescriptionTrim leading and trailing whitespace from stored CSP headers.
mikispag@ noticed in [1] that we're adding whitespace to the original
policy when processing multiple headers. This patch strips whitespace,
which means we're storing less data, and sending what developers
expect to see in the violation reports.
[1]: https://github.com/w3c/web-platform-tests/pull/4020
R=jochen@chromium.org
Committed: https://crrev.com/797cafaafd05de0ad7baeef814214fecb11d13d7
Cr-Commit-Position: refs/heads/master@{#427657}
Patch Set 1 #Patch Set 2 : ASAN #
Messages
Total messages: 12 (7 generated)
|