mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb: Remove noisy debug log from HTMLScriptElement::prepare_script()
This is a normal spec-mandated early return, not an error condition. The already-started flag exists because prepare_script() is called from multiple paths (attribute changes, child insertions, DOM connection) and only the first call should proceed.
This commit is contained in:
committed by
Andreas Kling
parent
7fed3f9801
commit
994f794487
Notes:
github-actions[bot]
2026-03-21 13:43:02 +00:00
Author: https://github.com/awesomekling Commit: https://github.com/LadybirdBrowser/ladybird/commit/994f7944872 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/8546 Reviewed-by: https://github.com/tcl3
@@ -204,10 +204,8 @@ void HTMLScriptElement::execute_script()
|
||||
void HTMLScriptElement::prepare_script()
|
||||
{
|
||||
// 1. If el's already started is true, then return.
|
||||
if (m_already_started) {
|
||||
dbgln("HTMLScriptElement: Refusing to run script because it has already started.");
|
||||
if (m_already_started)
|
||||
return;
|
||||
}
|
||||
|
||||
// 2. Let parser document be el's parser document.
|
||||
GC::Ptr<DOM::Document> parser_document = m_parser_document;
|
||||
|
||||
Reference in New Issue
Block a user