mirror of
https://github.com/servo/servo
synced 2026-05-11 09:26:59 +02:00
Now `NetworkEventActor`'s methods take a non mutable reference to self (`add_request`, `add_response` and `add_security_info`). This actor now has three different `RefCells` inside (`request`, `response` and `security`), which group pieces of data that are updated separately via the public methods. For the actor functionality itself, it now follows Firefox more closely. In the `resource-available` message it only sends the `*_available` fields (i.e. `response_headers_available`), deferring the actual data to the `get*` messages (i.e `getResponseHeaders`). There were also a few slight changes I noticed along the way that I tried to fix. Simplify some repeated logic calculating header sizes and listing cookies. `resource_updates` is updated to use `Serialize` structs instead of manually adding values to a map. This is more in line with the rest of the DevTools code and probably less prone to future errors. Fix "Resource of network-event is missing a browsingContextID or innerWindowId attribute" error that shows multiple times each time the Network tab is open. Updated all messages to use the correct browsingContextID. Testing: Manually compared all of the Network tab features to avoid regressions. --------- Signed-off-by: eri <eri@igalia.com> Co-authored-by: Martin Robinson <mrobinson@igalia.com>