servo/components
Delan Azabani 30b712aaf9
devtools: Fix id collisions by using incrementing counters (#35971)
Devtools clients need a `browserId`, `browsingContextID`, and
`outerWindowID`, which correspond to WebViewId, BrowsingContextId, and
PipelineId in Servo. These u32 values were previously derived from our
sharded (u32,u32) id values by taking only the `index` (second u32) and
ignoring the `namespace_id` (first u32), leading to collisions.

This patch fixes that by mapping those Servo ids to sequential u32
values.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by
`[X]` when the step is complete, and replace `___` with appropriate
data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #35954

<!-- Either: -->
- [x] There are tests for these changes OR
- [ ] These changes do not require tests because ___

<!-- Also, please make sure that "Allow edits from maintainers" checkbox
is checked, so that we can help you if you get stuck somewhere along the
way.-->

<!-- Pull requests that do not address these steps are welcome, but they
will require additional verification as part of the review process. -->

---------

Signed-off-by: Delan Azabani <dazabani@igalia.com>
2025-04-01 09:00:40 +00:00
..
allocator Organize component Cargo.toml dependencies (#36224) 2025-03-30 19:03:54 +00:00
background_hang_monitor Organize component Cargo.toml dependencies (#36224) 2025-03-30 19:03:54 +00:00
bluetooth Organize component Cargo.toml dependencies (#36224) 2025-03-30 19:03:54 +00:00
canvas Add Path2D (#35783) 2025-03-26 12:12:44 +00:00
compositing Fixed the crash issue when the openharmony web component is adapted. (#36229) 2025-03-31 09:46:49 +00:00
config Start implementing the URLPattern API (#36144) 2025-03-27 10:39:57 +00:00
constellation Organize component Cargo.toml dependencies (#36224) 2025-03-30 19:03:54 +00:00
deny_public_fields Add rust-version to all Cargo.toml files (#33483) 2024-09-17 16:39:07 +00:00
devtools devtools: Fix id collisions by using incrementing counters (#35971) 2025-04-01 09:00:40 +00:00
dom_struct script: Feature-gate all crown support. (#35055) 2025-01-18 21:36:15 +00:00
domobject_derive Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
fonts Organize component Cargo.toml dependencies (#36224) 2025-03-30 19:03:54 +00:00
geometry servoshell: Allow overriding screen resolution with a command-line argument (#34038) 2024-10-30 11:54:13 +00:00
hyper_serde Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
jstraceable_derive Add rust-version to all Cargo.toml files (#33483) 2024-09-17 16:39:07 +00:00
layout_2020 layout: Implement support for image-set() notation (#36210) 2025-03-29 13:20:16 +00:00
layout_thread_2020 Organize component Cargo.toml dependencies (#36224) 2025-03-30 19:03:54 +00:00
malloc_size_of Cleanup Stylo dependencies (#36046) 2025-03-19 08:53:26 +00:00
media Organize component Cargo.toml dependencies (#36224) 2025-03-30 19:03:54 +00:00
metrics Made MAX_TASK_NS u128. Also removed a superfluous into(). Both were required to fix #36122 with nightly 1.85.0 (4d91de4e4 2025-02-17). (#36169) 2025-03-27 10:02:53 +00:00
net Refuse to provide partial response from earlier ranged request to API that did not make a range request (#36227) 2025-03-31 10:34:32 +00:00
pixels Organize component Cargo.toml dependencies (#36224) 2025-03-30 19:03:54 +00:00
profile Organize component Cargo.toml dependencies (#36224) 2025-03-30 19:03:54 +00:00
rand Migrate to the 2024 edition (#35755) 2025-03-13 10:28:11 +00:00
range Add rust-version to all Cargo.toml files (#33483) 2024-09-17 16:39:07 +00:00
script Fix null realm assertion when activating a service worker (#36256) 2025-04-01 08:13:02 +00:00
script_bindings Organize component Cargo.toml dependencies (#36224) 2025-03-30 19:03:54 +00:00
servo Organize component Cargo.toml dependencies (#36224) 2025-03-30 19:03:54 +00:00
shared Add SimulateColorScheme command and script thread handling (#36253) 2025-04-01 02:08:27 +00:00
timers Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
url Eliminate to_shmem dependency from servo_url (#35897) 2025-03-11 00:33:39 +00:00
webdriver_server Create a constellation_traits crate (#36088) 2025-03-22 15:49:08 +00:00
webgpu webgpu: leverage routed_promise in calls returning promises (#35859) 2025-03-23 18:52:46 +00:00
webxr Organize component Cargo.toml dependencies (#36224) 2025-03-30 19:03:54 +00:00