summaryrefslogtreecommitdiff
path: root/Userland/Services/WebContent
diff options
context:
space:
mode:
authorKenneth Myhra <kennethmyhra@gmail.com>2023-02-14 22:43:17 +0100
committerLinus Groh <mail@linusgroh.de>2023-02-18 00:52:47 +0100
commitc120c46acc4bc12fa8f3f9ed5f9f953626d3cf9e (patch)
tree2580e04e199646f6885bd276954811bf25061302 /Userland/Services/WebContent
parent0d9076c9f57bb5eba064a803241e9d25843b58f1 (diff)
downloadserenity-c120c46acc4bc12fa8f3f9ed5f9f953626d3cf9e.zip
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.
Diffstat (limited to 'Userland/Services/WebContent')
-rw-r--r--Userland/Services/WebContent/WebDriverConnection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Services/WebContent/WebDriverConnection.cpp b/Userland/Services/WebContent/WebDriverConnection.cpp
index 9b80f5bcde..252226ab39 100644
--- a/Userland/Services/WebContent/WebDriverConnection.cpp
+++ b/Userland/Services/WebContent/WebDriverConnection.cpp
@@ -314,8 +314,8 @@ static bool fire_an_event(DeprecatedString name, Optional<Web::DOM::Element&> ta
if (!target.has_value())
return false;
- auto event = T::create(target->realm(), name);
- return target->dispatch_event(*event);
+ auto event = T::create(target->realm(), name).release_value_but_fixme_should_propagate_errors();
+ return target->dispatch_event(event);
}
ErrorOr<NonnullRefPtr<WebDriverConnection>> WebDriverConnection::connect(Web::PageClient& page_client, DeprecatedString const& webdriver_ipc_path)