-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Implement WebDriver BiDi interception in the show file picker algorithm #11030
Conversation
9694ffa
to
091fe90
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM % description of the issue might need updates
60b2e31
to
2ea78f5
Compare
This PR implements `input.fileDialogOpened` event and defines `unhandledPromptBehavior` for `file`. It should be accompanied by the following changes: HTML spec: whatwg/html#11030 WebDriver Classic spec: w3c/webdriver#1884 File system access: WICG/file-system-access#452
@domenic could you please take a look? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with nits. Please also join the @googlers
GitHub organization so that the participation checker can validate your contribution.
`Page.setInterceptFileChooserDialog` only suppressed or ignores a file dialog. However, the HTML spec requires [1] to cancel the dialog in case it is dismissed by WebDriver BiDi session [2]. This CL extends `Page.setInterceptFileChooserDialog`: additionally to "suppress" and "ignore" behavior, the "cancel" behavior is added, so that the HTML spec can be implemnented. [1] whatwg/html#11030 [2] https://w3c.github.io/webdriver-bidi/#webdriver-bidi-file-dialog-opened Bug: 401188018 Change-Id: I15c612bd44a3fdfc6a15e67e33985535177b8e09 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6330401 Reviewed-by: Alex Rudenko <[email protected]> Reviewed-by: Joey Arhar <[email protected]> Commit-Queue: Maksim Sadym <[email protected]> Reviewed-by: Maksim Sadym <[email protected]> Cr-Commit-Position: refs/heads/main@{#1430223}
09af8ad
to
1d02e03
Compare
@domenic could you please approve the "build" step? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you need me to approve the build step? You can build locally.
I thought it is required for being merged, but apparently not. No problem ) |
Implement WebDriver BiDi interception in the show file picker algorithm.
input.fileDialogOpened
.input.fileDialogOpened
+unhandledPromptBehavior:file
GoogleChromeLabs/chromium-bidi#3187(See WHATWG Working Mode: Changes for more details.)
Re-create #9844
/acknowledgements.html ( diff )
/infrastructure.html ( diff )
/input.html ( diff )