mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-05 09:06:08 +00:00
LibWeb: Replace check for BrowsingContext's about blank state with false
This check has been if (false && stuff) for quite a while, since the transition to Navigables. No one updates the BrowsingContext's session history, so the check for it having an about blank document and only an about blank document is always false.
This commit is contained in:
parent
b6fc29ca21
commit
5d9d0aa267
Notes:
sideshowbarker
2024-07-16 19:42:24 +09:00
Author: https://github.com/ADKaster
Commit: 5d9d0aa267
Pull-request: https://github.com/SerenityOS/serenity/pull/23063
1 changed files with 5 additions and 1 deletions
|
@ -181,7 +181,11 @@ WebIDL::ExceptionOr<JS::NonnullGCPtr<Document>> Document::create_and_initialize(
|
|||
// 7. If browsingContext's active document's is initial about:blank is true,
|
||||
// and browsingContext's active document's origin is same origin-domain with navigationParams's origin,
|
||||
// then set window to browsingContext's active window.
|
||||
if (browsing_context->still_on_its_initial_about_blank_document()
|
||||
// FIXME: still_on_its_initial_about_blank_document() is not in the spec anymore.
|
||||
// However, replacing this with the spec-mandated is_initial_about_blank() results in the browsing context
|
||||
// holding an incorrect active document for the replace from initial about:blank to the real document.
|
||||
// See #22293 for more details.
|
||||
if (false
|
||||
&& (browsing_context->active_document() && browsing_context->active_document()->origin().is_same_origin(navigation_params.origin))) {
|
||||
window = browsing_context->active_window();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue