mirror of
https://github.com/RGBCube/serenity
synced 2025-05-15 04:14:58 +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
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