mirror of
https://github.com/servo/servo.git
synced 2025-10-17 08:49:21 +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> |
||
---|---|---|
.. | ||
inspector | ||
watcher | ||
breakpoint.rs | ||
browsing_context.rs | ||
console.rs | ||
device.rs | ||
framerate.rs | ||
inspector.rs | ||
memory.rs | ||
network_event.rs | ||
object.rs | ||
performance.rs | ||
preference.rs | ||
process.rs | ||
reflow.rs | ||
root.rs | ||
source.rs | ||
stylesheets.rs | ||
tab.rs | ||
thread.rs | ||
timeline.rs | ||
watcher.rs | ||
worker.rs |