servo/components/devtools
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
..
actors Fix network event update Message (#37543) 2025-06-19 16:00:37 +00:00
actor.rs devtools: improve ID Naming for better readability and context (#35942) 2025-03-13 07:36:54 +00:00
build.rs Devtools device description: improve how Servo is advertised in Firefox's about:debugging (fixes #27528) (#32227) 2024-05-08 04:12:18 +00:00
Cargo.toml Organize component Cargo.toml dependencies (#36224) 2025-03-30 19:03:54 +00:00
id.rs devtools: Fix id collisions by using incrementing counters (#35971) 2025-04-01 09:00:40 +00:00
lib.rs Fix network event update Message (#37543) 2025-06-19 16:00:37 +00:00
network_handler.rs Fix network event update Message (#37543) 2025-06-19 16:00:37 +00:00
protocol.rs Replace NetworkEventUpdateMsg with ResourcesUpdatedArray (#37384) 2025-06-11 22:07:57 +00:00
resource.rs Fix network event update Message (#37543) 2025-06-19 16:00:37 +00:00