summaryrefslogtreecommitdiff
path: root/Userland/Services/WebContent/PageHost.h
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2022-11-16 06:58:14 -0500
committerLinus Groh <mail@linusgroh.de>2022-11-16 17:23:56 +0000
commit0e949040349b370cf44cf6152f4d2fe97fee389c (patch)
tree499ba23806ab8b4f44e61d31fc1e4df6b17194cc /Userland/Services/WebContent/PageHost.h
parent5b31a3dbc7358de2b1a3ae6272be7f3fce0d5445 (diff)
downloadserenity-0e949040349b370cf44cf6152f4d2fe97fee389c.zip
LibWebView+WebContent: Begin handling open user dialogs for WebDriver
The way in which dialogs should be handled is configurable by the driver capabilities object, which we don't support yet. So this implements just the default mode to dismiss the dialog and return an error if there is one open. In the OOPWV, this means we need to refer to the dialog after it has been open, so we now hold a pointer to whatever dialog is open.
Diffstat (limited to 'Userland/Services/WebContent/PageHost.h')
-rw-r--r--Userland/Services/WebContent/PageHost.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Services/WebContent/PageHost.h b/Userland/Services/WebContent/PageHost.h
index 15ba8fc6fc..a63c5be750 100644
--- a/Userland/Services/WebContent/PageHost.h
+++ b/Userland/Services/WebContent/PageHost.h
@@ -55,6 +55,7 @@ public:
};
bool has_pending_dialog() const { return m_pending_dialog != PendingDialog::None; }
PendingDialog pending_dialog() const { return m_pending_dialog; }
+ void dismiss_dialog();
private:
// ^PageClient