mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
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:
parent
939a8e9393
commit
649f70db65
Notes:
sideshowbarker
2024-07-17 07:08:37 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: 649f70db65
Pull-request: https://github.com/SerenityOS/serenity/pull/23931
Issue: https://github.com/SerenityOS/serenity/issues/23892
5 changed files with 14 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue