commit | 5289a5d4c98681e9a0f2d28da0c7aa35e282db57 | [log] [tgz] |
---|---|---|
author | estark <estark@chromium.org> | Thu Apr 07 16:14:40 2016 |
committer | Commit bot <commit-bot@chromium.org> | Thu Apr 07 16:16:45 2016 |
tree | 6318ef749a4f8f35a035f1f1aded035e4a3dbb24 | |
parent | e8c18394d174db7d105416a87115131a13e1bbb1 [diff] |
Check CSP before registering ServiceWorkers Service Worker registrations should be subject to the same CSP checks as other workers. The spec doesn't say this explicitly (https://www.w3.org/TR/CSP2/#directive-child-src-workers says "Worker or SharedWorker constructors"), but it seems to be in the spirit of things, and it matches Firefox's behavior. BUG=579801 Review URL: https://codereview.chromium.org/1861253004 Cr-Commit-Position: refs/heads/master@{#385775}