mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 12:07:14 +02:00
LibWeb: Log URL when loading <script> with src attribute
This makes it easier to debug failing scripts as most websites don't inline huge amounts of JavaScript.
This commit is contained in:
committed by
Andreas Kling
parent
ad3871b64e
commit
91f70a9258
Notes:
sideshowbarker
2024-07-19 06:36:06 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/91f70a92588 Pull-request: https://github.com/SerenityOS/serenity/pull/2253 Issue: https://github.com/SerenityOS/serenity/issues/2250
@@ -95,6 +95,7 @@ void HTMLScriptElement::inserted_into(Node& new_parent)
|
||||
return;
|
||||
}
|
||||
|
||||
dbg() << "Parsing and running script from " << src_url;
|
||||
auto parser = JS::Parser(JS::Lexer(source));
|
||||
auto program = parser.parse_program();
|
||||
if (parser.has_errors()) {
|
||||
|
||||
Reference in New Issue
Block a user