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:
Andreas Kling 2026-03-20 22:40:21 -05:00 committed by Andreas Kling
parent 7fed3f9801
commit 994f794487
Notes: github-actions[bot] 2026-03-21 13:43:02 +00:00

View file

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