mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
LibWeb/HTML: Implement NavigationTransition.to
Corresponds to:
f19930f98a
This commit is contained in:
parent
43bd5342c5
commit
945c4ca5b3
Notes:
github-actions[bot]
2025-12-05 09:21:24 +00:00
Author: https://github.com/AtkinsSJ
Commit: 945c4ca5b3
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7020
4 changed files with 48 additions and 13 deletions
|
|
@ -1123,10 +1123,13 @@ bool Navigation::inner_navigate_event_firing_algorithm(
|
|||
// 3. Assert: fromNHE is not null.
|
||||
VERIFY(from_nhe != nullptr);
|
||||
|
||||
// 4. Set navigation's transition to a new NavigationTransition created in navigation's relevant realm,
|
||||
// whose navigation type is navigationType, whose from entry is fromNHE, and whose finished promise is a new promise
|
||||
// created in navigation's relevant realm.
|
||||
m_transition = NavigationTransition::create(realm, navigation_type, *from_nhe, WebIDL::create_promise(realm));
|
||||
// 4. Set navigation's transition to a new NavigationTransition created in navigation's relevant realm, with
|
||||
// navigation type: navigationType
|
||||
// from entry: fromNHE
|
||||
// destination: event's destination
|
||||
// FIXME: committed promise: a new promise created in navigation's relevant realm
|
||||
// finished promise: a new promise created in navigation's relevant realm
|
||||
m_transition = NavigationTransition::create(realm, navigation_type, *from_nhe, event->destination(), WebIDL::create_promise(realm));
|
||||
|
||||
// 5. Mark as handled navigation's transition's finished promise.
|
||||
WebIDL::mark_promise_as_handled(*m_transition->finished());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue