html icon indicating copy to clipboard operation
html copied to clipboard

Support automatic user prompt handing in WebDriver BiDi

Open jgraham opened this issue 1 year ago • 3 comments

This reads the return value from the WebDriver BiDi user prompt opened algorithm and uses it to decide whether to show the prompt, or skip showing it but act as if it had been accepted or canceled.

At present the prompt opened function can return three values: "none", which causes the prompt to be displayed, "accept", which acts as if the prompt was accepted, and "dismiss" which acts as if the prompt was rejected. The WebDriver side is responsible for ensuring that only valid responses are sent for each prompt type (e.g. for an alert there isn't a "dismiss" option).

  • [x] At least two implementers are interested (and none opposed):
    • Gecko
    • Chromium
  • [x] Tests are written and can be reviewed and commented upon at:
    • https://github.com/web-platform-tests/wpt/blob/master/webdriver/tests/bidi/browsing_context/handle_user_prompt/handle_user_prompt.py
  • [ ] Implementation bugs are filed:
    • Chromium: …
    • Gecko: …
    • WebKit: …
    • Deno (only for timers, structured clone, base64 utils, channel messaging, module resolution, web workers, and web storage): …
    • Node.js (only for timers, structured clone, base64 utils, channel messaging, and module resolution): …
  • [ ] MDN issue is filed: …
  • [x] The top of this comment includes a clear commit message to use.

(See WHATWG Working Mode: Changes for more details.)


/browsing-the-web.html ( diff ) /timers-and-user-prompts.html ( diff )

jgraham avatar Mar 08 '24 20:03 jgraham