mirror of
https://github.com/servo/servo.git
synced 2025-06-28 19:13:41 +01:00
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> |
||
---|---|---|
.. | ||
actors | ||
actor.rs | ||
build.rs | ||
Cargo.toml | ||
id.rs | ||
lib.rs | ||
network_handler.rs | ||
protocol.rs | ||
resource.rs |