mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-02 09:18:52 +00:00
LibWeb: Make factory method of HTML::SubmitEvent fallible
This commit is contained in:
parent
c5de2c3348
commit
809206f50e
Notes:
sideshowbarker
2024-07-17 10:54:57 +09:00
Author: https://github.com/kennethmyhra
Commit: 809206f50e
Pull-request: https://github.com/SerenityOS/serenity/pull/17491
Reviewed-by: https://github.com/linusg ✅
3 changed files with 6 additions and 6 deletions
|
@ -83,7 +83,7 @@ void HTMLFormElement::submit_form(JS::GCPtr<HTMLElement> submitter, bool from_su
|
|||
|
||||
SubmitEventInit event_init {};
|
||||
event_init.submitter = submitter_button;
|
||||
auto submit_event = SubmitEvent::create(realm(), EventNames::submit, event_init);
|
||||
auto submit_event = SubmitEvent::create(realm(), EventNames::submit, event_init).release_value_but_fixme_should_propagate_errors();
|
||||
submit_event->set_bubbles(true);
|
||||
submit_event->set_cancelable(true);
|
||||
bool continue_ = dispatch_event(*submit_event);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue