mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-25 03:36:36 +00:00
LibWeb: Execute the correct script in XMLDocumentBuilder::element_end()
We were mistakenly executing the current node's script instead of the document's pending parsing-blocking script. This caused ~1000 WPT tests to time out, since we never ended up firing a load event for XHTML pages that load multiple external scripts.
This commit is contained in:
parent
b011d47b86
commit
007c292af3
Notes:
github-actions[bot]
2024-07-25 13:06:19 +00:00
Author: https://github.com/awesomekling
Commit: 007c292af3
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/828
7 changed files with 26 additions and 13 deletions
|
@ -1724,7 +1724,7 @@ WebIDL::ExceptionOr<JS::NonnullGCPtr<Event>> Document::create_event(StringView i
|
|||
return JS::NonnullGCPtr(*event);
|
||||
}
|
||||
|
||||
void Document::set_pending_parsing_blocking_script(Badge<HTML::HTMLScriptElement>, HTML::HTMLScriptElement* script)
|
||||
void Document::set_pending_parsing_blocking_script(HTML::HTMLScriptElement* script)
|
||||
{
|
||||
m_pending_parsing_blocking_script = script;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue