mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-04 02:08:53 +00:00
LibWeb: Don't delay document "load" event for unclosed script tags
We previously had a bug where markup with unclosed script tags caused the document load event to be delayed indefinitely. Fix this by only marking script elements as delaying the load event once we encounter the script end tag.
This commit is contained in:
parent
462618b68c
commit
2c9dfadb21
Notes:
sideshowbarker
2024-07-17 17:07:15 +09:00
Author: https://github.com/awesomekling
Commit: 2c9dfadb21
3 changed files with 10 additions and 0 deletions
|
@ -42,6 +42,8 @@ public:
|
|||
|
||||
void set_source_line_number(Badge<HTMLParser>, size_t source_line_number) { m_source_line_number = source_line_number; }
|
||||
|
||||
void begin_delaying_document_load_event(Badge<HTMLParser>, DOM::Document&);
|
||||
|
||||
private:
|
||||
void prepare_script();
|
||||
void script_became_ready();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue