summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/WebContentClient.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-02-10 08:48:28 +0100
committerAndreas Kling <kling@serenityos.org>2021-02-10 09:13:30 +0100
commit1ad65b173b71271bbe91f154478c77e0ee607242 (patch)
tree53f34b9dd0ea19cddd4df650adde4234a6d6c9ad /Userland/Libraries/LibWeb/WebContentClient.cpp
parentabf7c02acb4761a833726fed33ad88fc0c8177a3 (diff)
downloadserenity-1ad65b173b71271bbe91f154478c77e0ee607242.zip
LibWeb+WebContent: Support window.confirm() in OOPWV
Diffstat (limited to 'Userland/Libraries/LibWeb/WebContentClient.cpp')
-rw-r--r--Userland/Libraries/LibWeb/WebContentClient.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/WebContentClient.cpp b/Userland/Libraries/LibWeb/WebContentClient.cpp
index 028da8d110..1318ada067 100644
--- a/Userland/Libraries/LibWeb/WebContentClient.cpp
+++ b/Userland/Libraries/LibWeb/WebContentClient.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
+ * Copyright (c) 2020-2021, Andreas Kling <kling@serenityos.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -137,4 +137,10 @@ OwnPtr<Messages::WebContentClient::DidRequestAlertResponse> WebContentClient::ha
return make<Messages::WebContentClient::DidRequestAlertResponse>();
}
+OwnPtr<Messages::WebContentClient::DidRequestConfirmResponse> WebContentClient::handle(const Messages::WebContentClient::DidRequestConfirm& message)
+{
+ bool result = m_view.notify_server_did_request_confirm({}, message.message());
+ return make<Messages::WebContentClient::DidRequestConfirmResponse>(result);
+}
+
}