commit | f1f62c835b736af66e3886b1a02f1ac484adc30c | [log] [tgz] |
---|---|---|
author | Devlin Cronin <rdevlin.cronin@chromium.org> | Thu Sep 09 20:02:16 2021 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Sep 09 20:02:16 2021 |
tree | 57a23da5eb63852d02d7e23fc5e54fa91e82b025 | |
parent | 84dbd4d42cd318fc48ce16ebfb32f481d78987fb [diff] |
[Blink] Introduce a public constant for the main world ID The main execution world for a document has a reserved ID of `0`. This was only defined in blink, but was also used (at least) in extensions code. Introduce a new constant, blink::kMainDOMWorldId, for embedders to use, and static_assert() that it's the same value as DOMWrapperWorld::kMainWorldId. Bug: None Change-Id: Ie02c11997dac5b16972c0a2c3240fbfac09e8253 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3150537 Commit-Queue: Devlin <rdevlin.cronin@chromium.org> Reviewed-by: Kentaro Hara <haraken@chromium.org> Reviewed-by: Kouhei Ueno <kouhei@chromium.org> Reviewed-by: Jeremy Roman <jbroman@chromium.org> Cr-Commit-Position: refs/heads/main@{#919931}
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.