commit | 2b80fa7d815200d210189eb9eb123597f5e3925c | [log] [tgz] |
---|---|---|
author | Antonio Sartori <antoniosartori@chromium.org> | Mon Dec 14 10:11:46 2020 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Dec 14 10:11:46 2020 |
tree | 6634df319d30424f1846dabe422e0b03753c146b | |
parent | a9bc4573704c6718e5117502603144dc11187d90 [diff] |
CSP: Fix WPT tests for CSP inheritance of dedicated/shared workers Some Web Platform Test was expecting that dedicated workers served with Content-Security-Policy: script-src 'none' would block importScripts and setTimeout because of that CSP. However, according to the spec, dedicated workers inherit their CSP from the creator document and disregard the CSPs they are served with. We rewrite those tests with two different cases. For dedicated workers, we expect the inherited CSPs to be applied. For shared workers, we expect the CSP delivered with the worker to be applied. Bug: 1021462,1149272 Change-Id: I64469b2c9017b1d41a65abd4305d2440250b64d5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2578837 Commit-Queue: Antonio Sartori <antoniosartori@chromium.org> Reviewed-by: Mike West <mkwst@chromium.org> Cr-Commit-Position: refs/heads/master@{#836564}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.