diff options
author | Andreas Kling <kling@serenityos.org> | 2021-02-10 08:48:28 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-02-10 09:13:30 +0100 |
commit | 1ad65b173b71271bbe91f154478c77e0ee607242 (patch) | |
tree | 53f34b9dd0ea19cddd4df650adde4234a6d6c9ad /Userland/Libraries/LibWeb/WebContentClient.cpp | |
parent | abf7c02acb4761a833726fed33ad88fc0c8177a3 (diff) | |
download | serenity-1ad65b173b71271bbe91f154478c77e0ee607242.zip |
LibWeb+WebContent: Support window.confirm() in OOPWV
Diffstat (limited to 'Userland/Libraries/LibWeb/WebContentClient.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/WebContentClient.cpp | 8 |
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); +} + } |