mirror of
https://github.com/servo/servo
synced 2026-04-25 17:15:48 +02:00
This introduces a mechanism that let script threads register and unregister themselves from receiving messages from the constellation. This is useful when only globals with event listeners or callbacks will process some message types. The first migrated API is the webstorage 'storage' event. This patch ensures that we only send IPC to same origin globals that have an event handler set. While we use it for an event here, this is also usable for DOM callbacks such as the ones used in the Geolocation API. Testing: optimization with no tests regression: https://github.com/webbeef/servo/actions/runs/22880845745 --------- Signed-off-by: webbeef <me@webbeef.org>