mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
parent
a0b44ff5e7
commit
85b424464a
Notes:
github-actions[bot]
2025-01-21 16:49:39 +00:00
Author: https://github.com/trflynn89
Commit: 85b424464a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3335
191 changed files with 574 additions and 574 deletions
|
@ -331,7 +331,7 @@ GC::Ptr<TraversableNavigable> Navigable::top_level_traversable()
|
|||
navigable = navigable->parent();
|
||||
|
||||
// 3. Return navigable.
|
||||
return verify_cast<TraversableNavigable>(navigable);
|
||||
return as<TraversableNavigable>(navigable);
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/browsing-the-web.html#set-the-ongoing-navigation
|
||||
|
@ -2044,7 +2044,7 @@ void perform_url_and_history_update_steps(DOM::Document& document, URL::URL new_
|
|||
navigable->set_active_session_history_entry(new_entry);
|
||||
|
||||
// 11. Update the navigation API entries for a same-document navigation given document's relevant global object's navigation API, newEntry, and historyHandling.
|
||||
auto& relevant_global_object = verify_cast<Window>(HTML::relevant_global_object(document));
|
||||
auto& relevant_global_object = as<Window>(HTML::relevant_global_object(document));
|
||||
auto navigation_type = history_handling == HistoryHandlingBehavior::Push ? Bindings::NavigationType::Push : Bindings::NavigationType::Replace;
|
||||
relevant_global_object.navigation()->update_the_navigation_api_entries_for_a_same_document_navigation(new_entry, navigation_type);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue