ladybird/Libraries/LibWeb/HTML/Parser
Aliaksandr Kalenik b1ccab81ad LibWeb: Replace spin_until in HTMLParser::handle_text with async resume
Spinning a nested event loop to wait for a parser-blocking script blocks
the calling thread, can deadlock, and creates reentrancy hazards. Switch
to an event-driven pause/resume model, mirroring the prior
HTMLParserEndState refactor (df96b69e7a).

Three WPT document.write tests flip from Fail to Pass and are
rebaselined: all write an external script via document.write() followed
by inline content. With spin_until, control did not return to the caller
of document.write() between writing the script and observing its effects
so the test's order assertions saw a different sequence than the spec
mandates.
2026-04-26 10:44:45 +02:00
..
Entities.cpp LibWeb/HTML: Improve data structure of named character reference data 2025-07-14 09:43:08 +02:00
Entities.h LibWeb/HTML: Improve data structure of named character reference data 2025-07-14 09:43:08 +02:00
Entities.json LibWeb: Make named character references more spec-compliant & efficient 2025-03-22 16:03:44 +01:00
HTMLEncodingDetection.cpp LibWeb: Extract some CORS and MIME Fetch helpers to their own files 2025-11-27 14:57:29 +01:00
HTMLEncodingDetection.h LibWeb: Extract some CORS and MIME Fetch helpers to their own files 2025-11-27 14:57:29 +01:00
HTMLParser.cpp LibWeb: Replace spin_until in HTMLParser::handle_text with async resume 2026-04-26 10:44:45 +02:00
HTMLParser.h LibWeb: Replace spin_until in HTMLParser::handle_text with async resume 2026-04-26 10:44:45 +02:00
HTMLToken.cpp LibWeb: Track if element was created from token with dupe attributes 2025-07-09 15:52:54 -06:00
HTMLToken.h LibWeb: Reduce size of Optional<HTMLToken> 2026-03-20 12:03:36 +01:00
HTMLTokenizer.cpp LibJS+LibWeb: Add missing GC marking visits 2026-01-07 12:48:58 +01:00
HTMLTokenizer.h LibJS+LibWeb: Add missing GC marking visits 2026-01-07 12:48:58 +01:00
ListOfActiveFormattingElements.cpp LibWeb: Keep the tokens in ListOfActiveFormattingElements 2025-10-21 23:36:07 +02:00
ListOfActiveFormattingElements.h LibWeb: Keep the tokens in ListOfActiveFormattingElements 2025-10-21 23:36:07 +02:00
ParserScriptingMode.h LibWeb: Set fragment scripting mode from the context document 2026-04-14 23:01:36 +02:00
StackOfOpenElements.cpp LibWeb: Add HTMLSelectedContentElement for customizable select 2025-12-12 12:06:24 +00:00
StackOfOpenElements.h LibWeb: Add HTMLSelectedContentElement for customizable select 2025-12-12 12:06:24 +00:00