Files
servo/components/script
Martin Robinson 8fe9c2dd49 script: Gracefully handle lack of threadpool in ElementStylesheetLoader (#42685)
If the number of layout threads is set to 1, then there sometimes is no
style thread pool. Instead of panicking in this case, we should just run
the code in question on the main thread with no thread pool. This fixes
a crash when `-y 1` is passed to servoshell.

Testing: This fixes a crash, but we currently do not run any automated
tests
with a single layout thread.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Co-authored-by: Oriol Brufau <obrufau@igalia.com>
Co-authored-by: Luke Warlow <lwarlow@igalia.com>
2026-02-18 09:02:08 +00:00
..
2025-10-02 07:51:19 +00:00