LibWeb: Mark HTMLObjectElement as potentially delaying the load event

This commit is contained in:
Andreas Kling 2024-11-26 15:27:38 +01:00 committed by Andreas Kling
parent b859a6f2e0
commit e88286b337
Notes: github-actions[bot] 2024-11-26 17:59:08 +00:00

View file

@ -33,6 +33,9 @@ GC_DEFINE_ALLOCATOR(HTMLObjectElement);
HTMLObjectElement::HTMLObjectElement(DOM::Document& document, DOM::QualifiedName qualified_name)
: NavigableContainer(document, move(qualified_name))
{
// https://html.spec.whatwg.org/multipage/iframe-embed-object.html#the-object-element:potentially-delays-the-load-event
set_potentially_delays_the_load_event(true);
// https://html.spec.whatwg.org/multipage/iframe-embed-object.html#the-object-element
// Whenever one of the following conditions occur:
// - the element is created,