Revert of Accept invalid chrome-extension:// and chrome:// CSP tokens (patchset ...
commitcbc409a84a88dd002c37f113eabb74468448d00d
authorrob <rob@robwu.nl>
Wed, 19 Nov 2014 17:39:56 +0000 (19 09:39 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 19 Nov 2014 17:40:20 +0000 (19 17:40 +0000)
tree71efa809c6a7ca8e10ad964577c478f0ae8848af
parent14875e499f956ee6e761d3c896a7664af85801e8
Revert of Accept invalid chrome-extension:// and chrome:// CSP tokens (patchset #3 id:80001 of https://codereview.chromium.org/722233004/)

Reason for revert:
Need some extra comments before relanding

Original issue's description:
> Accept invalid chrome-extension:// and chrome:// CSP tokens
>
> Do not refuse to load the extension when the CSP contains
> "chrome-extension://", because there are some extensions in the wild
> that contains this token in the CSP. It is safe to accept this token
> because the invalid CSP token is ignored by Blink (together with an
> error message in the console, so the developer can fix the problem if
> they bother to look at the console).
>
> BUG=432227
> TBR=kalman@chromium.org
>
> Committed: https://crrev.com/67244e678279741947c09ba2ab18fbfec1707a97
> Cr-Commit-Position: refs/heads/master@{#304799}

TBR=kalman@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=432227

Review URL: https://codereview.chromium.org/739133003

Cr-Commit-Position: refs/heads/master@{#304832}
extensions/common/csp_validator.cc
extensions/common/csp_validator_unittest.cc