commit | 0d2f7d8d41ac2bc092cd21174236cfa4be96f0ae | [log] [tgz] |
---|---|---|
author | Jack Hsieh <chengweih@chromium.org> | Fri Mar 03 00:35:32 2023 |
committer | Jack Hsieh <chengweih@chromium.org> | Fri Mar 03 00:35:32 2023 |
tree | 4a407e2011a7740bea0de449f565c7161ef3908e | |
parent | 63530bf3e5b5592eaa64d55c8e21a3492ba00a7e [diff] |
Reject Web Serial requests with an opaque origin The Web Serial API tracks permissions using the origin of the top-level document in the frame tree. If this document has an opaque origin then there is no way to format the origin for display to the user in permission prompts or to write their decision in the preferences file. Access to the Web Serial API from such contexts should therefore be blocked. Bug: 1375133 Change-Id: I4552ae74d480aa8df9ff93527fc85618bc03b947 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4112689 Reviewed-by: Reilly Grant <reillyg@chromium.org> Cr-Commit-Position: refs/heads/main@{#1112561}
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.