mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-06 11:12:54 +00:00
LibWeb: Just ignore <script> elements that failed to load the script
We're never gonna be able to run them if we can't load them so just let it go.
This commit is contained in:
parent
84f8c91a6f
commit
17d26b92f8
Notes:
sideshowbarker
2024-07-19 05:38:22 +09:00
Author: https://github.com/awesomekling
Commit: 17d26b92f8
3 changed files with 18 additions and 8 deletions
|
@ -1476,6 +1476,9 @@ void HTMLDocumentParser::handle_text(HTMLToken& token)
|
|||
// that is blocking scripts and the script's "ready to be parser-executed"
|
||||
// flag is set.
|
||||
|
||||
if (the_script->failed_to_load())
|
||||
return;
|
||||
|
||||
ASSERT(the_script->is_ready_to_be_parser_executed());
|
||||
|
||||
if (m_aborted)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue