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

Implement WebDriver BiDi interception in the show file picker algorithm #11030

Merged
merged 17 commits into from
Mar 12, 2025

Conversation

sadym-chromium
Copy link
Contributor

@sadym-chromium sadym-chromium commented Feb 14, 2025

Implement WebDriver BiDi interception in the show file picker algorithm.

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

Re-create #9844


/acknowledgements.html ( diff )
/infrastructure.html ( diff )
/input.html ( diff )

@sadym-chromium sadym-chromium changed the title [WIP] Implement WebDriver BiDi interception in the show the picker algorithm [WIP] Implement WebDriver BiDi interception in the show file picker algorithm Feb 25, 2025
@sadym-chromium sadym-chromium changed the title [WIP] Implement WebDriver BiDi interception in the show file picker algorithm Implement WebDriver BiDi interception in the show file picker algorithm Feb 25, 2025
Copy link
Contributor

@OrKoN OrKoN left a 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

@sadym-chromium sadym-chromium changed the title Implement WebDriver BiDi interception in the show file picker algorithm Implement WebDriver BiDi interception in the show picker algorithm Mar 4, 2025
@sadym-chromium sadym-chromium changed the title Implement WebDriver BiDi interception in the show picker algorithm [WIP] Implement WebDriver BiDi interception in the show picker algorithm Mar 4, 2025
@sadym-chromium sadym-chromium force-pushed the sadym/update-file-spec branch 2 times, most recently from 60b2e31 to 2ea78f5 Compare March 4, 2025 13:16
sadym-chromium added a commit to w3c/webdriver-bidi that referenced this pull request Mar 5, 2025
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
@sadym-chromium sadym-chromium changed the title [WIP] Implement WebDriver BiDi interception in the show picker algorithm Implement WebDriver BiDi interception in the show file picker algorithm Mar 5, 2025
@sadym-chromium sadym-chromium requested a review from OrKoN March 5, 2025 14:59
@sadym-chromium sadym-chromium marked this pull request as ready for review March 5, 2025 16:15
@sadym-chromium
Copy link
Contributor Author

@domenic could you please take a look?

Copy link
Member

@domenic domenic left a 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.

aarongable pushed a commit to chromium/chromium that referenced this pull request Mar 10, 2025
`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}
@sadym-chromium sadym-chromium force-pushed the sadym/update-file-spec branch from 09af8ad to 1d02e03 Compare March 10, 2025 17:04
@sadym-chromium
Copy link
Contributor Author

@domenic could you please approve the "build" step?

Copy link
Member

@domenic domenic left a 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.

@sadym-chromium
Copy link
Contributor Author

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 )

@domenic domenic merged commit 09ad1b9 into whatwg:main Mar 12, 2025
2 checks passed
@domenic domenic added the integration Better coordination across standards needed label Mar 12, 2025
@sadym-chromium sadym-chromium deleted the sadym/update-file-spec branch March 12, 2025 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integration Better coordination across standards needed
Development

Successfully merging this pull request may close these issues.

3 participants