mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:18:13 +00:00
LibWeb: Ensure that load events are fired for window.open('about:blank')
This commit is contained in:
parent
888e67992a
commit
d508a02f25
1 changed files with 3 additions and 1 deletions
|
@ -395,7 +395,9 @@ WebIDL::ExceptionOr<JS::GCPtr<WindowProxy>> Window::open_impl(StringView url, St
|
|||
}
|
||||
|
||||
// 6. If urlRecord matches about:blank, then perform the URL and history update steps given targetNavigable's active document and urlRecord.
|
||||
if (url_matches_about_blank(url_record)) {
|
||||
// FIXME: If we only perform the URL and history update steps here, we never fire the load event for the new window/tab.
|
||||
// This breaks WPT. See #23067
|
||||
if (false && url_matches_about_blank(url_record)) {
|
||||
perform_url_and_history_update_steps(*target_navigable->active_document(), url_record);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue