LibWeb: Remove noisy debug log for disconnected script elements

This is another normal spec early return in prepare_script(), not an
error worth logging.
This commit is contained in:
Andreas Kling 2026-03-20 22:41:37 -05:00 committed by Andreas Kling
parent 994f794487
commit b049f44969
Notes: github-actions[bot] 2026-03-21 13:42:53 +00:00

View file

@ -232,10 +232,8 @@ void HTMLScriptElement::prepare_script()
}
// 8. If el is not connected, then return.
if (!is_connected()) {
dbgln("HTMLScriptElement: Refusing to run script because the element is not connected.");
if (!is_connected())
return;
}
// 9. If any of the following are true:
// - el has a type attribute whose value is the empty string;