Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What's a "user prompt"? #1781

Open
gsnedders opened this issue Dec 14, 2023 · 0 comments
Open

What's a "user prompt"? #1781

gsnedders opened this issue Dec 14, 2023 · 0 comments

Comments

@gsnedders
Copy link
Contributor

c.f. https://w3c.github.io/webdriver/#user-prompts

Safari, for example, shows a dialog for downloading files, given there's various ways that websites can effectively trigger a download themselves:

A dialog containing: Do you want to allow downloads on “wpt.live”? You can change which websites can download files in the Websites section of Safari Settings. Cancel Allow

Based on my reading of the spec, I think it's… not a user prompt? Our cross-reference for "user prompt" is https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#user-prompts, which is a section and not a definition.

Should the expectation be that SafariDriver automatically dismisses these dialogs as they appear (as which option?), or what is expected to be the behaviour with other UA-generated modals (noting e.g. window.print may do something different—despite being in the section of the HTML spec referenced for "user dialogs"!—per #1091, as in some UAs it is not provided by the UA, but rather by the OS)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant