LibWeb+WebContent: Initialise JS console from Document::initialize()

Before this change JS console was initialise from
activate_history_entry() which is too late for about:blank documents
that are ready to run scripts immediately after creation.
This commit is contained in:
Aliaksandr Kalenik 2024-04-11 17:21:09 +02:00 committed by Andreas Kling
commit 649f70db65
Notes: sideshowbarker 2024-07-17 07:08:37 +09:00
5 changed files with 14 additions and 9 deletions

View file

@ -197,10 +197,6 @@ void Navigable::activate_history_entry(JS::GCPtr<SessionHistoryEntry> entry)
// 5. Make active newDocument.
new_document->make_active();
// Not in the spec:
VERIFY(active_browsing_context());
active_browsing_context()->page().client().page_did_create_new_document(*new_document);
}
// https://html.spec.whatwg.org/multipage/document-sequences.html#nav-document