mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 23:09:08 +00:00
LibWeb: Add NavigateEvent.sourceElement
Corresponds to: - https://github.com/whatwg/html/pull/10898 - https://github.com/whatwg/html/pull/10971 I've also updated the imported WPT test as it's been recently changed to account for 10898 being merged.
This commit is contained in:
parent
62f4cebbee
commit
26b7946123
Notes:
github-actions[bot]
2025-02-04 11:25:44 +00:00
Author: https://github.com/AtkinsSJ
Commit: 26b7946123
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3409
8 changed files with 44 additions and 25 deletions
|
@ -42,6 +42,7 @@ NavigateEvent::NavigateEvent(JS::Realm& realm, FlyString const& event_name, Navi
|
|||
, m_download_request(event_init.download_request)
|
||||
, m_info(event_init.info.value_or(JS::js_undefined()))
|
||||
, m_has_ua_visual_transition(event_init.has_ua_visual_transition)
|
||||
, m_source_element(event_init.source_element)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -62,6 +63,7 @@ void NavigateEvent::visit_edges(JS::Cell::Visitor& visitor)
|
|||
visitor.visit(m_signal);
|
||||
visitor.visit(m_form_data);
|
||||
visitor.visit(m_info);
|
||||
visitor.visit(m_source_element);
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-navigateevent-intercept
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue