libservo: Finish the SimpleDialog API#40982
Merged
mrobinson merged 2 commits intoservo:mainfrom Dec 2, 2025
Merged
Conversation
|
🔨 Triggering try run (#19822523292) for Linux (WPT) |
|
f660543 to
48c6f57
Compare
|
🔨 Triggering try run (#19826181977) for Linux (WPT) |
|
Test results for linux-wpt from try job (#19826181977): Flaky unexpected result (31)
Stable unexpected results that are known to be intermittent (22)
Stable unexpected results (1)
|
|
|
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 querying the prompt dialog entry field is corrected to actually get that value rather than the message. This makes sense as part of this change as the type safety of the structures makes setting and getting the message (the old, wrong behavior) harder to implement. Signed-off-by: Martin Robinson <[email protected]>
48c6f57 to
cefb02a
Compare
Member
Author
|
This is ready to review now. |
Member
|
FYI, the ohos build failed in the MQ. |
Signed-off-by: Mukilan Thiyagarajan <[email protected]>
|
🔨 Triggering try run (#19851780260) for OpenHarmony |
|
✨ Try run (#19851780260) succeeded. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Finish exposing the
SimpleDialogAPI in libservo, abstracting away theresponse 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.