servo/components/devtools/actors
Usman Yahaya Baba 7d2c9ec19c
Fix network event update Message (#37543)
- Add `ResourceArrayType` with `Available` and `Updated` variants
- Rename `resources-available` and `resource-available` to
`resources-array` ,`resource-array`
- Add `ResourceArrayType` as an argument to decide the type of resources
- Add `Option<ResponseContentMsg>`,`Option<ResponseStartMsg>`,
`Option<ResponseCookiesMsg>`,
`Option<ResponseHeadersMsg>`,`Option<RequestCookiesMsg>`,
`Option<RequestHeadersMsg>`, `total_time`, `security_state` to
`NetworkEventActor` struct , and serialize the data in each to
`resource_updates` , flattening the nested arrays into a single JSON
- Refactor the following methods `request_headers`,`response_start` ,
`response_content`,`response_cookies`,`response_headers`,
`request_cookies`,`total_time` to associated functions passing
`HttpRequest` and `HttpResponse` as parameters .

Testing: Ran servo with devtools flag to see the logs corresponding to
the changes
Fixes: https://github.com/servo/servo/issues/37479

This PR Builds on https://github.com/servo/servo/pull/37517 and was
opened due to merge conflicts and branch issues

---------

Signed-off-by: Uthman Yahaya Baba <uthmanyahayababa@gmail.com>
2025-06-19 16:00:37 +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 Fix network event update Message (#37543) 2025-06-19 16:00:37 +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: refactor source actor state (#37528) 2025-06-18 11:11:46 +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