servo/components/devtools/actors
Usman Yahaya Baba 253fb247f5
Add common resourceId to network events (#37707)
- Add a `resource_id` field to `EventActor` and `NetworkEventActor`
- Store a `next_resource_id` field in DevtoolsInstance
- Add `resource_id` parameter to `NetworkEventActor::new`
- Increment `next_resource_id` when
`DevtoolsInstance::find_network_event_actor` is called so each network
event has a unique id

Testing: Ran servo in devtools mode and can see the data showing in
`status`,`type`, `transferred` ,`size` and `timeline` columns of each
request, also logged the devtools instance and can see unique
`resourceId` for each request.
Fixes: https://github.com/servo/servo/issues/37661

Signed-off-by: Uthman Yahaya Baba <uthmanyahayababa@gmail.com>
2025-06-26 07:08:16 +00:00
..
inspector devtools: Allow highlighting elements from the inspector (#35822) 2025-05-05 10:10:25 +00:00
watcher Process colorSchemeSimulation in TargetConfigurationActor (#36297) 2025-04-06 14:19:42 +00:00
breakpoint.rs DevTools: Fix empty debugger > source panel (#37197) 2025-05-31 06:51:03 +00:00
browsing_context.rs devtools: Fix inspector on Firefox 139 (#37247) 2025-06-04 12:11:53 +00:00
console.rs Fix network event update Message (#37543) 2025-06-19 16:00:37 +00:00
device.rs devtools: update targeted firefox version. (#35792) 2025-03-05 06:08:40 +00:00
framerate.rs devtools: improve ID Naming for better readability and context (#35942) 2025-03-13 07:36:54 +00:00
inspector.rs devtools: Allow highlighting elements from the inspector (#35822) 2025-05-05 10:10:25 +00:00
memory.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
network_event.rs Add common resourceId to network events (#37707) 2025-06-26 07:08:16 +00:00
object.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
performance.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
preference.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
process.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
reflow.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
root.rs Update handle_network_event to use BrowsingContextActor for HttpRequest (#37263) 2025-06-10 14:11:39 +00:00
source.rs DevTools: sources for HTML files should be the whole HTML file (#37456) 2025-06-21 18:46:35 +00:00
stylesheets.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
tab.rs devtools: Fix id collisions by using incrementing counters (#35971) 2025-04-01 09:00:40 +00:00
thread.rs Devtools: refactor source actor state (#37528) 2025-06-18 11:11:46 +00:00
timeline.rs devtools: improve ID Naming for better readability and context (#35942) 2025-03-13 07:36:54 +00:00
watcher.rs Fix network event update Message (#37543) 2025-06-19 16:00:37 +00:00
worker.rs DevTools: Improve resource_available to handle multiple connections (#36933) 2025-05-09 12:06:33 +00:00