1
Fork 0
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:
Andrew Kaster 2024-02-04 07:48:25 -07:00 committed by Andrew Kaster
parent 888e67992a
commit d508a02f25

View file

@ -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);
}