mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-04-19 02:10:26 +00: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:
parent
7fed3f9801
commit
994f794487
Notes:
github-actions[bot]
2026-03-21 13:43:02 +00:00
Author: https://github.com/awesomekling
Commit: 994f794487
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/8546
Reviewed-by: https://github.com/tcl3
1 changed files with 1 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue