mirror of
https://github.com/servo/servo
synced 2026-05-13 02:17:06 +02:00
Finish exposing the `SimpleDialog` API in libservo, abstracting away the response senders into structures with methods. In addition, add a default behavior so that embedders do not have to explicitly send a reponse when dialogs are ignored. This makes the API much harder to misuse. Finally, the WebDriver API for setting the prompt dialog entry field is corrected to actually set that value rather than the message. This makes sense as part of this change as the type safety of the structures makes setting the message (the old, wrong behavior) harder to implement. Testing: This causes a WebDriver conformance test to start passing. --------- Signed-off-by: Martin Robinson <mrobinson@igalia.com> Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> Co-authored-by: Mukilan Thiyagarajan <mukilan@igalia.com>