mirror of
https://github.com/servo/servo
synced 2026-05-09 16:42:16 +02:00
DomRefCell::borrow inside of layout code is risky because it leads to memory races if the code is ever called from layout worker threads. This can be caught via TSAN, but we can also catch it deterministically in CI by using our existing thread state debug assertions correctly. Testing: Existing WPT test coverage is sufficient. Fixes: #42962 --------- Signed-off-by: Josh Matthews <josh@joshmatthews.net>