mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-23 09:48:56 +00:00
LibWeb: Ensure that load events are fired for window.open('about:blank')
This commit is contained in:
parent
888e67992a
commit
d508a02f25
Notes:
sideshowbarker
2024-07-17 06:40:21 +09:00
Author: https://github.com/ADKaster
Commit: d508a02f25
Pull-request: https://github.com/SerenityOS/serenity/pull/23063
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