mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:28:10 +00:00
LibWeb: Call Document::set_window() from Document::make_active()
This commit is contained in:
parent
24b3e315a0
commit
3171abe92a
2 changed files with 2 additions and 2 deletions
|
@ -207,7 +207,6 @@ JS::NonnullGCPtr<BrowsingContext> BrowsingContext::create_a_new_browsing_context
|
|||
auto document = HTML::HTMLDocument::create(window->realm());
|
||||
|
||||
// Non-standard
|
||||
document->set_window(*window);
|
||||
window->set_associated_document(*document);
|
||||
|
||||
document->set_quirks_mode(DOM::QuirksMode::Yes);
|
||||
|
@ -365,7 +364,6 @@ WebIDL::ExceptionOr<BrowsingContext::BrowsingContextAndDocument> BrowsingContext
|
|||
auto document = HTML::HTMLDocument::create(window->realm());
|
||||
|
||||
// Non-standard
|
||||
document->set_window(*window);
|
||||
window->set_associated_document(*document);
|
||||
|
||||
// type: "html"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue