commit | 39292c4da979d32e84591768c02ee60e90ff3150 | [log] [tgz] |
---|---|---|
author | Devlin Cronin <rdevlin.cronin@chromium.org> | Wed Dec 28 22:02:39 2022 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Dec 28 22:02:39 2022 |
tree | d1c3f601333cc20548fff0dff2259c089f26cbf9 | |
parent | 6205d8a0eb0f45ca4a9557f5fa6a305d17bc255b [diff] |
[Extensions] Don't have object-src fall back to default-src in CSP validation Currently, if an object-src is specified in a Manifest V3 extension, it is required to be a local resource. Since object-src falls back to default-src if no object-src is specified, we also currently validate that the default-src is a local resource if no object-src is specified. Stop doing this, so that developers can specify a non-local default-src without needing to specify a separate object-src. This has no security implications because: - The minimum CSP (which includes `object-src self`) will still be appended in all cases. - Other directives (like script-src) that fall back to default-src if unspecified will still require a local default-src. Update tests for the same. Bug: 1320785 Change-Id: I014dd8e2967484e2086bf0ea0c603be4c2e8119c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4127606 Reviewed-by: David Bertoni <dbertoni@chromium.org> Commit-Queue: Devlin Cronin <rdevlin.cronin@chromium.org> Cr-Commit-Position: refs/heads/main@{#1087425}
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.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
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.
If you found a bug, please file it at https://crbug.com/new.