| commit | ec6cd0c005b91926ac713b80b8faae56ece3cbdd | [log] [tgz] |
|---|---|---|
| author | Devlin Cronin <rdevlin.cronin@chromium.org> | Thu Oct 24 06:10:28 2024 |
| committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Oct 24 06:10:28 2024 |
| tree | fcce1822351486bd76e59eeb2f0553449f413612 | |
| parent | ddce5b0f443f2477b1a7f528218571bc78fbb334 [diff] |
[Extensions] Fix import of dynamic URL resources Extensions have a minimum CSP applied to their isolated worlds. This CSP restricts remotely-hosted code (by design) by limiting script sources to `self`. However, this causes problems when trying to `import()` resources that are exposed in web-accessible resources with `use_dynamic_url` set to true, since those resources will be (initially) served over the extension's dynamic origin. Modify the extension's isolated world CSP to explicitly allow resources from that extension's dynamic origin, and add a browsertest to exercise the same. Fixed: 363027634 Change-Id: I73af26ce15e9164b544e9ee70f7c94ade162d6ef Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5955629 Reviewed-by: Tim <tjudkins@chromium.org> Commit-Queue: Devlin Cronin <rdevlin.cronin@chromium.org> Cr-Commit-Position: refs/heads/main@{#1373148}
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.