mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 20:15:00 +00:00
LibWeb: Make factory methods of DOM::Event fallible
Because of interdependencies between DOM::Event and UIEvents::MouseEvent to template function fire_an_event() in WebDriverConnection.cpp, the commit: 'LibWeb: Make factory methods of UIEvents::MouseEvent fallible' have been squashed into this commit.
This commit is contained in:
parent
0d9076c9f5
commit
c120c46acc
20 changed files with 85 additions and 85 deletions
|
@ -149,11 +149,11 @@ void HTMLFormElement::submit_form(JS::GCPtr<HTMLElement> submitter, bool from_su
|
|||
void HTMLFormElement::reset_form()
|
||||
{
|
||||
// 1. Let reset be the result of firing an event named reset at form, with the bubbles and cancelable attributes initialized to true.
|
||||
auto reset_event = DOM::Event::create(realm(), HTML::EventNames::reset);
|
||||
auto reset_event = DOM::Event::create(realm(), HTML::EventNames::reset).release_value_but_fixme_should_propagate_errors();
|
||||
reset_event->set_bubbles(true);
|
||||
reset_event->set_cancelable(true);
|
||||
|
||||
bool reset = dispatch_event(*reset_event);
|
||||
bool reset = dispatch_event(reset_event);
|
||||
|
||||
// 2. If reset is true, then invoke the reset algorithm of each resettable element whose form owner is form.
|
||||
if (reset) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue