servo/components/devtools
shuppy 0896341285
Devtools: refactor source actor state (#37528)
We currently store the source contents in both the SourceActor and the
ThreadActor’s SourceManager, which is redundant. We also currently send
the source contents in thread `sources` responses and watcher
`resources-available-array` messages, but in both cases this is
unnecessary (and ignored by the client).

This patch merges SourceData into SourceActor, making the latter the
single source of truth for source-related state. We also create a
SourceForm type, which represents the subset of source-related state
that gets sent in thread `sources` responses (and for now, watcher
`resources-available-array` messages).

Finally we rename `source_urls` → `source_actor_names` and `new_source`
→ `new_registered` for clarity.

Testing: no changes to client-facing behaviour, and this is covered by
tests

Signed-off-by: Delan Azabani <dazabani@igalia.com>
Co-authored-by: atbrakhi <atbrakhi@igalia.com>
2025-06-18 11:11:46 +00:00
..
actors Devtools: refactor source actor state (#37528) 2025-06-18 11:11:46 +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 Devtools: refactor source actor state (#37528) 2025-06-18 11:11:46 +00:00
network_handler.rs Replace NetworkEventUpdateMsg with ResourcesUpdatedArray (#37384) 2025-06-11 22:07:57 +00:00
protocol.rs Replace NetworkEventUpdateMsg with ResourcesUpdatedArray (#37384) 2025-06-11 22:07:57 +00:00
resource.rs DevTools: Improve resource_available to handle multiple connections (#36933) 2025-05-09 12:06:33 +00:00