mirror of
https://github.com/servo/servo
synced 2026-05-08 16:12:15 +02:00
We construct `ScriptThread` in an `Rc` which itself has the given `Weak` for it. It then can give it to `Window` and other elements in the future. We currently only use this for the microtask checkpoint function in `Window`. This is the first step toward eliminating the usage of thread local storage to access the `ScriptThread`. Testing: This should not change behavior so is covered by existing tests. Fixes: Part of addressing: https://github.com/servo/servo/issues/37969#issuecomment-3520463442 --------- Signed-off-by: Narfinger <Narfinger@users.noreply.github.com> Co-authored-by: Martin Robinson <mrobinson@igalia.com>