mirror of
https://github.com/servo/servo
synced 2026-05-11 17:37:21 +02: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>