-
Notifications
You must be signed in to change notification settings - Fork 35
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
Add exclusionFilters option in requestDevice() #93
Conversation
index.html
Outdated
@@ -1263,6 +1273,61 @@ <h4> | |||
</li> | |||
</ol> | |||
</section> | |||
<section data-dfn-for="HIDDeviceExclude"> | |||
<h4> | |||
<dfn>HIDDeviceExclude</dfn> dictionary |
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.
I think there's not much value in defining a new dictionary type for exclusion filters. Let's reuse HIDDeviceFilter
for the exclusion filters and specify that usagePage
and usage
must not be defined when a HIDDeviceFilter
is used for exclusion.
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.
Done.
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.
Actually, I think it makes more sense to treat exclusion filters exactly the same as normal (inclusion?) filters other than whether they include or exclude. If the filters look the same they should behave the same. Let's allow filtering by usagePage
and usage
(even though I can't think of a good reason to do that). In the future I think we may add filter parameters for connection type (usb, bluetooth, etc) and it would be nice to not need duplicate language in the spec for inclusion vs exclusion.
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.
I've updated spec PR based on your feedback. Please have another look.
@nondebug I've updated the PR based on your feedback. Please have another look. |
This CL adds a exclusionFilters option in navigator.usb.requestDevice() so that developers can exclude from the browser picker some devices that are known to not work as expected. This feature is available behind the WebHIDExclusionFiltersOption blink runtime feature. Intent to prototype: TODO Spec: WICG/webhid#93 Demo: https://hid-exclusion-filters.glitch.me/ Change-Id: If16eb4c788de2acd2454009449699cbbcd6039b8 Bug: 1301934
d7adce7
to
30b4fda
Compare
30b4fda
to
46c3fe7
Compare
This CL adds a exclusionFilters option in navigator.usb.requestDevice() so that developers can exclude from the browser picker some devices that are known to not work as expected. This feature is available behind the WebHIDExclusionFiltersOption blink runtime feature. Intent to prototype: TODO Spec: WICG/webhid#93 Demo: https://hid-exclusion-filters.glitch.me/ Change-Id: If16eb4c788de2acd2454009449699cbbcd6039b8 Bug: 1301934
This CL adds a exclusionFilters option in navigator.usb.requestDevice() so that developers can exclude from the browser picker some devices that are known to not work as expected. This feature is available behind the WebHIDExclusionFiltersOption blink runtime feature. Intent to prototype: TODO Spec: WICG/webhid#93 Demo: https://hid-exclusion-filters.glitch.me/ Change-Id: If16eb4c788de2acd2454009449699cbbcd6039b8 Bug: 1301934
This CL adds a exclusionFilters option in navigator.usb.requestDevice() so that developers can exclude from the browser picker some devices that are known to not work as expected. This feature is available behind the WebHIDExclusionFiltersOption blink runtime feature. Intent to prototype: TODO Spec: WICG/webhid#93 Demo: https://hid-exclusion-filters.glitch.me/ Change-Id: If16eb4c788de2acd2454009449699cbbcd6039b8 Bug: 1301934
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.
Apologies for the delay, these changes LGTM
@nondebug Thank you. I can't merge this PR, please do. |
This CL adds a exclusionFilters option in navigator.usb.requestDevice() so that developers can exclude from the browser picker some devices that are known to not work as expected. This feature is available behind the WebHIDExclusionFiltersOption blink runtime feature. Intent to prototype: TODO Spec: WICG/webhid#93 Demo: https://hid-exclusion-filters.glitch.me/ Change-Id: If16eb4c788de2acd2454009449699cbbcd6039b8 Bug: 1301934
This CL adds a exclusionFilters option in navigator.usb.requestDevice() so that developers can exclude from the browser picker some devices that are known to not work as expected. This feature is available behind the WebHIDExclusionFiltersOption blink runtime feature. Intent to prototype: TODO Spec: WICG/webhid#93 Demo: https://hid-exclusion-filters.glitch.me/ Change-Id: If16eb4c788de2acd2454009449699cbbcd6039b8 Bug: 1301934
This CL adds a exclusionFilters option in navigator.usb.requestDevice() so that developers can exclude from the browser picker some devices that are known to not work as expected. This feature is available behind the WebHIDExclusionFiltersOption blink runtime feature. Intent to ship: TODO Spec: WICG/webhid#93 Demo: https://hid-exclusion-filters.glitch.me/ Change-Id: If16eb4c788de2acd2454009449699cbbcd6039b8 Bug: 1301934
This CL adds a exclusionFilters option in navigator.usb.requestDevice() so that developers can exclude from the browser picker some devices that are known to not work as expected. This feature is available behind the WebHIDExclusionFiltersOption blink runtime feature. Intent to ship: TODO Spec: WICG/webhid#93 Demo: https://hid-exclusion-filters.glitch.me/ Change-Id: If16eb4c788de2acd2454009449699cbbcd6039b8 Bug: 1301934
This CL adds a exclusionFilters option in navigator.usb.requestDevice() so that developers can exclude from the browser picker some devices that are known to not work as expected. This feature is available behind the WebHIDExclusionFiltersOption blink runtime feature. Intent to ship: TODO Spec: WICG/webhid#93 Demo: https://hid-exclusion-filters.glitch.me/ Change-Id: If16eb4c788de2acd2454009449699cbbcd6039b8 Bug: 1301934
This CL adds a exclusionFilters option in navigator.usb.requestDevice() so that developers can exclude from the browser picker some devices that are known to not work as expected. This feature is available behind the WebHIDExclusionFiltersOption blink runtime feature. Intent to ship: https://groups.google.com/a/chromium.org/g/blink-dev/c/DPAaLnuaOH4 Spec: WICG/webhid#93 Demo: https://hid-exclusion-filters.glitch.me/ Change-Id: If16eb4c788de2acd2454009449699cbbcd6039b8 Bug: 1301934
This CL adds a exclusionFilters option in navigator.usb.requestDevice() so that developers can exclude from the browser picker some devices that are known to not work as expected. This feature is available behind the WebHIDExclusionFiltersOption blink runtime feature. Intent to ship: https://groups.google.com/a/chromium.org/g/blink-dev/c/DPAaLnuaOH4 Spec: WICG/webhid#93 Demo: https://hid-exclusion-filters.glitch.me/ Change-Id: If16eb4c788de2acd2454009449699cbbcd6039b8 Bug: 1301934
This CL adds a exclusionFilters option in navigator.usb.requestDevice() so that developers can exclude from the browser picker some devices that are known to not work as expected. This feature is available behind the WebHIDExclusionFiltersOption blink runtime feature. Intent to ship: https://groups.google.com/a/chromium.org/g/blink-dev/c/DPAaLnuaOH4 Spec: WICG/webhid#93 Demo: https://hid-exclusion-filters.glitch.me/ Change-Id: If16eb4c788de2acd2454009449699cbbcd6039b8 Bug: 1301934 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3478175 Reviewed-by: Matt Reynolds <mattreynolds@chromium.org> Reviewed-by: Daniel Cheng <dcheng@chromium.org> Auto-Submit: Fr <beaufort.francois@gmail.com> Reviewed-by: Avi Drissman <avi@chromium.org> Commit-Queue: Avi Drissman <avi@chromium.org> Cr-Commit-Position: refs/heads/main@{#986496}
This CL adds a exclusionFilters option in navigator.usb.requestDevice() so that developers can exclude from the browser picker some devices that are known to not work as expected. This feature is available behind the WebHIDExclusionFiltersOption blink runtime feature. Intent to ship: https://groups.google.com/a/chromium.org/g/blink-dev/c/DPAaLnuaOH4 Spec: WICG/webhid#93 Demo: https://hid-exclusion-filters.glitch.me/ Change-Id: If16eb4c788de2acd2454009449699cbbcd6039b8 Bug: 1301934 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3478175 Reviewed-by: Matt Reynolds <mattreynolds@chromium.org> Reviewed-by: Daniel Cheng <dcheng@chromium.org> Auto-Submit: Fr <beaufort.francois@gmail.com> Reviewed-by: Avi Drissman <avi@chromium.org> Commit-Queue: Avi Drissman <avi@chromium.org> Cr-Commit-Position: refs/heads/main@{#986496}
Chromium change: https://chromium.googlesource.com/chromium/src/+/c655f4ee8c6a16058886450db522ceb00d285e6a commit c655f4ee8c6a16058886450db522ceb00d285e6a Author: François Beaufort <beaufort.francois@gmail.com> Date: Tue Mar 29 15:06:28 2022 +0000 hid: Add exclusionFilters option to requestDevice This CL adds a exclusionFilters option in navigator.usb.requestDevice() so that developers can exclude from the browser picker some devices that are known to not work as expected. This feature is available behind the WebHIDExclusionFiltersOption blink runtime feature. Intent to ship: https://groups.google.com/a/chromium.org/g/blink-dev/c/DPAaLnuaOH4 Spec: WICG/webhid#93 Demo: https://hid-exclusion-filters.glitch.me/ Bug: 1301934
Chromium change: https://chromium.googlesource.com/chromium/src/+/c655f4ee8c6a16058886450db522ceb00d285e6a commit c655f4ee8c6a16058886450db522ceb00d285e6a Author: François Beaufort <beaufort.francois@gmail.com> Date: Tue Mar 29 15:06:28 2022 +0000 hid: Add exclusionFilters option to requestDevice This CL adds a exclusionFilters option in navigator.usb.requestDevice() so that developers can exclude from the browser picker some devices that are known to not work as expected. This feature is available behind the WebHIDExclusionFiltersOption blink runtime feature. Intent to ship: https://groups.google.com/a/chromium.org/g/blink-dev/c/DPAaLnuaOH4 Spec: WICG/webhid#93 Demo: https://hid-exclusion-filters.glitch.me/ Bug: 1301934
Chromium change: https://chromium.googlesource.com/chromium/src/+/c655f4ee8c6a16058886450db522ceb00d285e6a commit c655f4ee8c6a16058886450db522ceb00d285e6a Author: François Beaufort <beaufort.francois@gmail.com> Date: Tue Mar 29 15:06:28 2022 +0000 hid: Add exclusionFilters option to requestDevice This CL adds a exclusionFilters option in navigator.usb.requestDevice() so that developers can exclude from the browser picker some devices that are known to not work as expected. This feature is available behind the WebHIDExclusionFiltersOption blink runtime feature. Intent to ship: https://groups.google.com/a/chromium.org/g/blink-dev/c/DPAaLnuaOH4 Spec: WICG/webhid#93 Demo: https://hid-exclusion-filters.glitch.me/ Bug: 1301934
Chromium change: https://chromium.googlesource.com/chromium/src/+/c655f4ee8c6a16058886450db522ceb00d285e6a commit c655f4ee8c6a16058886450db522ceb00d285e6a Author: François Beaufort <beaufort.francois@gmail.com> Date: Tue Mar 29 15:06:28 2022 +0000 hid: Add exclusionFilters option to requestDevice This CL adds a exclusionFilters option in navigator.usb.requestDevice() so that developers can exclude from the browser picker some devices that are known to not work as expected. This feature is available behind the WebHIDExclusionFiltersOption blink runtime feature. Intent to ship: https://groups.google.com/a/chromium.org/g/blink-dev/c/DPAaLnuaOH4 Spec: WICG/webhid#93 Demo: https://hid-exclusion-filters.glitch.me/ Bug: 1301934
Chromium change: https://chromium.googlesource.com/chromium/src/+/c655f4ee8c6a16058886450db522ceb00d285e6a commit c655f4ee8c6a16058886450db522ceb00d285e6a Author: François Beaufort <beaufort.francois@gmail.com> Date: Tue Mar 29 15:06:28 2022 +0000 hid: Add exclusionFilters option to requestDevice This CL adds a exclusionFilters option in navigator.usb.requestDevice() so that developers can exclude from the browser picker some devices that are known to not work as expected. This feature is available behind the WebHIDExclusionFiltersOption blink runtime feature. Intent to ship: https://groups.google.com/a/chromium.org/g/blink-dev/c/DPAaLnuaOH4 Spec: WICG/webhid#93 Demo: https://hid-exclusion-filters.glitch.me/ Bug: 1301934
Chromium change: https://chromium.googlesource.com/chromium/src/+/c655f4ee8c6a16058886450db522ceb00d285e6a commit c655f4ee8c6a16058886450db522ceb00d285e6a Author: François Beaufort <beaufort.francois@gmail.com> Date: Tue Mar 29 15:06:28 2022 +0000 hid: Add exclusionFilters option to requestDevice This CL adds a exclusionFilters option in navigator.usb.requestDevice() so that developers can exclude from the browser picker some devices that are known to not work as expected. This feature is available behind the WebHIDExclusionFiltersOption blink runtime feature. Intent to ship: https://groups.google.com/a/chromium.org/g/blink-dev/c/DPAaLnuaOH4 Spec: WICG/webhid#93 Demo: https://hid-exclusion-filters.glitch.me/ Bug: 1301934
Chromium change: https://chromium.googlesource.com/chromium/src/+/c655f4ee8c6a16058886450db522ceb00d285e6a commit c655f4ee8c6a16058886450db522ceb00d285e6a Author: François Beaufort <beaufort.francois@gmail.com> Date: Tue Mar 29 15:06:28 2022 +0000 hid: Add exclusionFilters option to requestDevice This CL adds a exclusionFilters option in navigator.usb.requestDevice() so that developers can exclude from the browser picker some devices that are known to not work as expected. This feature is available behind the WebHIDExclusionFiltersOption blink runtime feature. Intent to ship: https://groups.google.com/a/chromium.org/g/blink-dev/c/DPAaLnuaOH4 Spec: WICG/webhid#93 Demo: https://hid-exclusion-filters.glitch.me/ Bug: 1301934
Chromium change: https://chromium.googlesource.com/chromium/src/+/c655f4ee8c6a16058886450db522ceb00d285e6a commit c655f4ee8c6a16058886450db522ceb00d285e6a Author: François Beaufort <beaufort.francois@gmail.com> Date: Tue Mar 29 15:06:28 2022 +0000 hid: Add exclusionFilters option to requestDevice This CL adds a exclusionFilters option in navigator.usb.requestDevice() so that developers can exclude from the browser picker some devices that are known to not work as expected. This feature is available behind the WebHIDExclusionFiltersOption blink runtime feature. Intent to ship: https://groups.google.com/a/chromium.org/g/blink-dev/c/DPAaLnuaOH4 Spec: WICG/webhid#93 Demo: https://hid-exclusion-filters.glitch.me/ Bug: 1301934
Chromium change: https://chromium.googlesource.com/chromium/src/+/c655f4ee8c6a16058886450db522ceb00d285e6a commit c655f4ee8c6a16058886450db522ceb00d285e6a Author: François Beaufort <beaufort.francois@gmail.com> Date: Tue Mar 29 15:06:28 2022 +0000 hid: Add exclusionFilters option to requestDevice This CL adds a exclusionFilters option in navigator.usb.requestDevice() so that developers can exclude from the browser picker some devices that are known to not work as expected. This feature is available behind the WebHIDExclusionFiltersOption blink runtime feature. Intent to ship: https://groups.google.com/a/chromium.org/g/blink-dev/c/DPAaLnuaOH4 Spec: WICG/webhid#93 Demo: https://hid-exclusion-filters.glitch.me/ Bug: 1301934
Chromium change: https://chromium.googlesource.com/chromium/src/+/c655f4ee8c6a16058886450db522ceb00d285e6a commit c655f4ee8c6a16058886450db522ceb00d285e6a Author: François Beaufort <beaufort.francois@gmail.com> Date: Tue Mar 29 15:06:28 2022 +0000 hid: Add exclusionFilters option to requestDevice This CL adds a exclusionFilters option in navigator.usb.requestDevice() so that developers can exclude from the browser picker some devices that are known to not work as expected. This feature is available behind the WebHIDExclusionFiltersOption blink runtime feature. Intent to ship: https://groups.google.com/a/chromium.org/g/blink-dev/c/DPAaLnuaOH4 Spec: WICG/webhid#93 Demo: https://hid-exclusion-filters.glitch.me/ Bug: 1301934
Chromium change: https://chromium.googlesource.com/chromium/src/+/c655f4ee8c6a16058886450db522ceb00d285e6a commit c655f4ee8c6a16058886450db522ceb00d285e6a Author: François Beaufort <beaufort.francois@gmail.com> Date: Tue Mar 29 15:06:28 2022 +0000 hid: Add exclusionFilters option to requestDevice This CL adds a exclusionFilters option in navigator.usb.requestDevice() so that developers can exclude from the browser picker some devices that are known to not work as expected. This feature is available behind the WebHIDExclusionFiltersOption blink runtime feature. Intent to ship: https://groups.google.com/a/chromium.org/g/blink-dev/c/DPAaLnuaOH4 Spec: WICG/webhid#93 Demo: https://hid-exclusion-filters.glitch.me/ Bug: 1301934
Chromium change: https://chromium.googlesource.com/chromium/src/+/c655f4ee8c6a16058886450db522ceb00d285e6a commit c655f4ee8c6a16058886450db522ceb00d285e6a Author: François Beaufort <beaufort.francois@gmail.com> Date: Tue Mar 29 15:06:28 2022 +0000 hid: Add exclusionFilters option to requestDevice This CL adds a exclusionFilters option in navigator.usb.requestDevice() so that developers can exclude from the browser picker some devices that are known to not work as expected. This feature is available behind the WebHIDExclusionFiltersOption blink runtime feature. Intent to ship: https://groups.google.com/a/chromium.org/g/blink-dev/c/DPAaLnuaOH4 Spec: WICG/webhid#93 Demo: https://hid-exclusion-filters.glitch.me/ Bug: 1301934
Chromium change: https://chromium.googlesource.com/chromium/src/+/c655f4ee8c6a16058886450db522ceb00d285e6a commit c655f4ee8c6a16058886450db522ceb00d285e6a Author: François Beaufort <beaufort.francois@gmail.com> Date: Tue Mar 29 15:06:28 2022 +0000 hid: Add exclusionFilters option to requestDevice This CL adds a exclusionFilters option in navigator.usb.requestDevice() so that developers can exclude from the browser picker some devices that are known to not work as expected. This feature is available behind the WebHIDExclusionFiltersOption blink runtime feature. Intent to ship: https://groups.google.com/a/chromium.org/g/blink-dev/c/DPAaLnuaOH4 Spec: WICG/webhid#93 Demo: https://hid-exclusion-filters.glitch.me/ Bug: 1301934
Chromium change: https://chromium.googlesource.com/chromium/src/+/c655f4ee8c6a16058886450db522ceb00d285e6a commit c655f4ee8c6a16058886450db522ceb00d285e6a Author: François Beaufort <beaufort.francois@gmail.com> Date: Tue Mar 29 15:06:28 2022 +0000 hid: Add exclusionFilters option to requestDevice This CL adds a exclusionFilters option in navigator.usb.requestDevice() so that developers can exclude from the browser picker some devices that are known to not work as expected. This feature is available behind the WebHIDExclusionFiltersOption blink runtime feature. Intent to ship: https://groups.google.com/a/chromium.org/g/blink-dev/c/DPAaLnuaOH4 Spec: WICG/webhid#93 Demo: https://hid-exclusion-filters.glitch.me/ Bug: 1301934
Chromium change: https://chromium.googlesource.com/chromium/src/+/c655f4ee8c6a16058886450db522ceb00d285e6a commit c655f4ee8c6a16058886450db522ceb00d285e6a Author: François Beaufort <beaufort.francois@gmail.com> Date: Tue Mar 29 15:06:28 2022 +0000 hid: Add exclusionFilters option to requestDevice This CL adds a exclusionFilters option in navigator.usb.requestDevice() so that developers can exclude from the browser picker some devices that are known to not work as expected. This feature is available behind the WebHIDExclusionFiltersOption blink runtime feature. Intent to ship: https://groups.google.com/a/chromium.org/g/blink-dev/c/DPAaLnuaOH4 Spec: WICG/webhid#93 Demo: https://hid-exclusion-filters.glitch.me/ Bug: 1301934
Chromium change: https://chromium.googlesource.com/chromium/src/+/c655f4ee8c6a16058886450db522ceb00d285e6a commit c655f4ee8c6a16058886450db522ceb00d285e6a Author: François Beaufort <beaufort.francois@gmail.com> Date: Tue Mar 29 15:06:28 2022 +0000 hid: Add exclusionFilters option to requestDevice This CL adds a exclusionFilters option in navigator.usb.requestDevice() so that developers can exclude from the browser picker some devices that are known to not work as expected. This feature is available behind the WebHIDExclusionFiltersOption blink runtime feature. Intent to ship: https://groups.google.com/a/chromium.org/g/blink-dev/c/DPAaLnuaOH4 Spec: WICG/webhid#93 Demo: https://hid-exclusion-filters.glitch.me/ Bug: 1301934
Chromium change: https://chromium.googlesource.com/chromium/src/+/c655f4ee8c6a16058886450db522ceb00d285e6a commit c655f4ee8c6a16058886450db522ceb00d285e6a Author: François Beaufort <beaufort.francois@gmail.com> Date: Tue Mar 29 15:06:28 2022 +0000 hid: Add exclusionFilters option to requestDevice This CL adds a exclusionFilters option in navigator.usb.requestDevice() so that developers can exclude from the browser picker some devices that are known to not work as expected. This feature is available behind the WebHIDExclusionFiltersOption blink runtime feature. Intent to ship: https://groups.google.com/a/chromium.org/g/blink-dev/c/DPAaLnuaOH4 Spec: WICG/webhid#93 Demo: https://hid-exclusion-filters.glitch.me/ Bug: 1301934
Chromium change: https://chromium.googlesource.com/chromium/src/+/c655f4ee8c6a16058886450db522ceb00d285e6a commit c655f4ee8c6a16058886450db522ceb00d285e6a Author: François Beaufort <beaufort.francois@gmail.com> Date: Tue Mar 29 15:06:28 2022 +0000 hid: Add exclusionFilters option to requestDevice This CL adds a exclusionFilters option in navigator.usb.requestDevice() so that developers can exclude from the browser picker some devices that are known to not work as expected. This feature is available behind the WebHIDExclusionFiltersOption blink runtime feature. Intent to ship: https://groups.google.com/a/chromium.org/g/blink-dev/c/DPAaLnuaOH4 Spec: WICG/webhid#93 Demo: https://hid-exclusion-filters.glitch.me/ Bug: 1301934
Chromium change: https://chromium.googlesource.com/chromium/src/+/c655f4ee8c6a16058886450db522ceb00d285e6a commit c655f4ee8c6a16058886450db522ceb00d285e6a Author: François Beaufort <beaufort.francois@gmail.com> Date: Tue Mar 29 15:06:28 2022 +0000 hid: Add exclusionFilters option to requestDevice This CL adds a exclusionFilters option in navigator.usb.requestDevice() so that developers can exclude from the browser picker some devices that are known to not work as expected. This feature is available behind the WebHIDExclusionFiltersOption blink runtime feature. Intent to ship: https://groups.google.com/a/chromium.org/g/blink-dev/c/DPAaLnuaOH4 Spec: WICG/webhid#93 Demo: https://hid-exclusion-filters.glitch.me/ Bug: 1301934
Chromium change: https://chromium.googlesource.com/chromium/src/+/c655f4ee8c6a16058886450db522ceb00d285e6a commit c655f4ee8c6a16058886450db522ceb00d285e6a Author: François Beaufort <beaufort.francois@gmail.com> Date: Tue Mar 29 15:06:28 2022 +0000 hid: Add exclusionFilters option to requestDevice This CL adds a exclusionFilters option in navigator.usb.requestDevice() so that developers can exclude from the browser picker some devices that are known to not work as expected. This feature is available behind the WebHIDExclusionFiltersOption blink runtime feature. Intent to ship: https://groups.google.com/a/chromium.org/g/blink-dev/c/DPAaLnuaOH4 Spec: WICG/webhid#93 Demo: https://hid-exclusion-filters.glitch.me/ Bug: 1301934
Chromium change: https://chromium.googlesource.com/chromium/src/+/c655f4ee8c6a16058886450db522ceb00d285e6a commit c655f4ee8c6a16058886450db522ceb00d285e6a Author: François Beaufort <beaufort.francois@gmail.com> Date: Tue Mar 29 15:06:28 2022 +0000 hid: Add exclusionFilters option to requestDevice This CL adds a exclusionFilters option in navigator.usb.requestDevice() so that developers can exclude from the browser picker some devices that are known to not work as expected. This feature is available behind the WebHIDExclusionFiltersOption blink runtime feature. Intent to ship: https://groups.google.com/a/chromium.org/g/blink-dev/c/DPAaLnuaOH4 Spec: WICG/webhid#93 Demo: https://hid-exclusion-filters.glitch.me/ Bug: 1301934
Chromium change: https://chromium.googlesource.com/chromium/src/+/c655f4ee8c6a16058886450db522ceb00d285e6a commit c655f4ee8c6a16058886450db522ceb00d285e6a Author: François Beaufort <beaufort.francois@gmail.com> Date: Tue Mar 29 15:06:28 2022 +0000 hid: Add exclusionFilters option to requestDevice This CL adds a exclusionFilters option in navigator.usb.requestDevice() so that developers can exclude from the browser picker some devices that are known to not work as expected. This feature is available behind the WebHIDExclusionFiltersOption blink runtime feature. Intent to ship: https://groups.google.com/a/chromium.org/g/blink-dev/c/DPAaLnuaOH4 Spec: WICG/webhid#93 Demo: https://hid-exclusion-filters.glitch.me/ Bug: 1301934
Chromium change: https://chromium.googlesource.com/chromium/src/+/c655f4ee8c6a16058886450db522ceb00d285e6a commit c655f4ee8c6a16058886450db522ceb00d285e6a Author: François Beaufort <beaufort.francois@gmail.com> Date: Tue Mar 29 15:06:28 2022 +0000 hid: Add exclusionFilters option to requestDevice This CL adds a exclusionFilters option in navigator.usb.requestDevice() so that developers can exclude from the browser picker some devices that are known to not work as expected. This feature is available behind the WebHIDExclusionFiltersOption blink runtime feature. Intent to ship: https://groups.google.com/a/chromium.org/g/blink-dev/c/DPAaLnuaOH4 Spec: WICG/webhid#93 Demo: https://hid-exclusion-filters.glitch.me/ Bug: 1301934
Chromium change: https://chromium.googlesource.com/chromium/src/+/c655f4ee8c6a16058886450db522ceb00d285e6a commit c655f4ee8c6a16058886450db522ceb00d285e6a Author: François Beaufort <beaufort.francois@gmail.com> Date: Tue Mar 29 15:06:28 2022 +0000 hid: Add exclusionFilters option to requestDevice This CL adds a exclusionFilters option in navigator.usb.requestDevice() so that developers can exclude from the browser picker some devices that are known to not work as expected. This feature is available behind the WebHIDExclusionFiltersOption blink runtime feature. Intent to ship: https://groups.google.com/a/chromium.org/g/blink-dev/c/DPAaLnuaOH4 Spec: WICG/webhid#93 Demo: https://hid-exclusion-filters.glitch.me/ Bug: 1301934
Chromium change: https://chromium.googlesource.com/chromium/src/+/c655f4ee8c6a16058886450db522ceb00d285e6a commit c655f4ee8c6a16058886450db522ceb00d285e6a Author: François Beaufort <beaufort.francois@gmail.com> Date: Tue Mar 29 15:06:28 2022 +0000 hid: Add exclusionFilters option to requestDevice This CL adds a exclusionFilters option in navigator.usb.requestDevice() so that developers can exclude from the browser picker some devices that are known to not work as expected. This feature is available behind the WebHIDExclusionFiltersOption blink runtime feature. Intent to ship: https://groups.google.com/a/chromium.org/g/blink-dev/c/DPAaLnuaOH4 Spec: WICG/webhid#93 Demo: https://hid-exclusion-filters.glitch.me/ Bug: 1301934
Chromium change: https://chromium.googlesource.com/chromium/src/+/c655f4ee8c6a16058886450db522ceb00d285e6a commit c655f4ee8c6a16058886450db522ceb00d285e6a Author: François Beaufort <beaufort.francois@gmail.com> Date: Tue Mar 29 15:06:28 2022 +0000 hid: Add exclusionFilters option to requestDevice This CL adds a exclusionFilters option in navigator.usb.requestDevice() so that developers can exclude from the browser picker some devices that are known to not work as expected. This feature is available behind the WebHIDExclusionFiltersOption blink runtime feature. Intent to ship: https://groups.google.com/a/chromium.org/g/blink-dev/c/DPAaLnuaOH4 Spec: WICG/webhid#93 Demo: https://hid-exclusion-filters.glitch.me/ Bug: 1301934
Chromium change: https://chromium.googlesource.com/chromium/src/+/c655f4ee8c6a16058886450db522ceb00d285e6a commit c655f4ee8c6a16058886450db522ceb00d285e6a Author: François Beaufort <beaufort.francois@gmail.com> Date: Tue Mar 29 15:06:28 2022 +0000 hid: Add exclusionFilters option to requestDevice This CL adds a exclusionFilters option in navigator.usb.requestDevice() so that developers can exclude from the browser picker some devices that are known to not work as expected. This feature is available behind the WebHIDExclusionFiltersOption blink runtime feature. Intent to ship: https://groups.google.com/a/chromium.org/g/blink-dev/c/DPAaLnuaOH4 Spec: WICG/webhid#93 Demo: https://hid-exclusion-filters.glitch.me/ Bug: 1301934
Chromium change: https://chromium.googlesource.com/chromium/src/+/c655f4ee8c6a16058886450db522ceb00d285e6a commit c655f4ee8c6a16058886450db522ceb00d285e6a Author: François Beaufort <beaufort.francois@gmail.com> Date: Tue Mar 29 15:06:28 2022 +0000 hid: Add exclusionFilters option to requestDevice This CL adds a exclusionFilters option in navigator.usb.requestDevice() so that developers can exclude from the browser picker some devices that are known to not work as expected. This feature is available behind the WebHIDExclusionFiltersOption blink runtime feature. Intent to ship: https://groups.google.com/a/chromium.org/g/blink-dev/c/DPAaLnuaOH4 Spec: WICG/webhid#93 Demo: https://hid-exclusion-filters.glitch.me/ Bug: 1301934
This CL adds a exclusionFilters option in navigator.usb.requestDevice() so that developers can exclude from the browser picker some devices that are known to not work as expected. This feature is available behind the WebHIDExclusionFiltersOption blink runtime feature. Intent to ship: https://groups.google.com/a/chromium.org/g/blink-dev/c/DPAaLnuaOH4 Spec: WICG/webhid#93 Demo: https://hid-exclusion-filters.glitch.me/ Change-Id: If16eb4c788de2acd2454009449699cbbcd6039b8 Bug: 1301934 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3478175 Reviewed-by: Matt Reynolds <mattreynolds@chromium.org> Reviewed-by: Daniel Cheng <dcheng@chromium.org> Auto-Submit: Fr <beaufort.francois@gmail.com> Reviewed-by: Avi Drissman <avi@chromium.org> Commit-Queue: Avi Drissman <avi@chromium.org> Cr-Commit-Position: refs/heads/main@{#986496} NOKEYCHECK=True GitOrigin-RevId: c655f4ee8c6a16058886450db522ceb00d285e6a
This PR is about a new
"exclusionFilters"
option innavigator.hid.requestDevice()
so that developers can exclude from the browser picker some known devices that are known to not work as expected.Currently, developers let users pick a device, then check against a custom helper function (like deviceIsBlocklisted()) if device is known to be malfunctioning.
Please have a look @nondebug