mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 06:09:08 +00:00
LibWeb: Implement dialog.requestClose()
This commit is contained in:
parent
b056e27afd
commit
dd37d1c536
Notes:
github-actions[bot]
2025-01-30 23:25:42 +00:00
Author: https://github.com/lukewarlow
Commit: dd37d1c536
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3280
Reviewed-by: https://github.com/ADKaster ✅
8 changed files with 67 additions and 17 deletions
|
@ -1177,7 +1177,8 @@ WebIDL::ExceptionOr<void> HTMLElement::show_popover(ThrowExceptions throw_except
|
|||
0, "", &realm());
|
||||
auto close_callback = realm().heap().allocate<WebIDL::CallbackType>(*close_callback_function, realm());
|
||||
m_popover_close_watcher->add_event_listener_without_options(HTML::EventNames::close, DOM::IDLEventListener::create(realm(), close_callback));
|
||||
// FIXME: - getEnabledState being to return true.
|
||||
// - getEnabledState being to return true.
|
||||
m_popover_close_watcher->set_enabled(true);
|
||||
}
|
||||
// FIXME: 19. Set element's previously focused element to null.
|
||||
// FIXME: 20. Let originallyFocusedElement be document's focused area of the document's DOM anchor.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue