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:
Andreas Kling 2020-06-15 18:37:48 +02:00
parent 84f8c91a6f
commit 17d26b92f8
Notes: sideshowbarker 2024-07-19 05:38:22 +09:00
3 changed files with 18 additions and 8 deletions

View file

@ -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)