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

Add support for DedicatedWorker #121

Merged
merged 1 commit into from
Sep 13, 2024
Merged

Conversation

beaufortfrancois
Copy link
Contributor

As requested in #120, this PR exposes the WebHID API in DedicatedWorkerGlobalScope through the WorkerNavigator. It follows the precedent set by WebUSB on Workers
and WebHID in Extension Service Workers .

Note that this PR also exposes ServiceWorker for HIDDevice, HIDConnectionEvent, and HIDInputReportEvent that were missed previously in f84b823.

@beaufortfrancois
Copy link
Contributor Author

@nondebug Can you review?

@nondebug nondebug self-assigned this Sep 12, 2024
Copy link
Collaborator

@nondebug nondebug left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@beaufortfrancois
Copy link
Contributor Author

Thank you @nondebug!
Can you merge this PR so that third_party/blink/web_tests/external/wpt/interfaces/webhid.idl gets automatically updated?

@razvanphp
Copy link

should't we do SharedWorker as well in one go? Didn't get the chance to test it with the wheel yet, can do it on monday. Thank you for the quick reaction!

@beaufortfrancois
Copy link
Contributor Author

I was told to not add shared workers to the spec yet because there are open issues around stuff like Permissions Policy for shared workers.

@nondebug nondebug merged commit b5e588e into WICG:main Sep 13, 2024
1 of 2 checks passed
aarongable pushed a commit to chromium/chromium that referenced this pull request Sep 18, 2024
This CL exposes the WebHID API to dedicated workers behind the blink
runtime feature WebHIDOnDedicatedWorkers.

Intent to prototype: https://groups.google.com/a/chromium.org/g/blink-dev/c/y__BOYfZWzI
Spec PR: WICG/webhid#121
Spec issue: WICG/webhid#120
Demo: https://webhid-worker.glitch.me/

Change-Id: If145f34faf9211a54c8b4a15fbe7e903411b8d1d
Bug: 365932453
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5841991
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Reviewed-by: Yoav Weiss (@Shopify) <yoavweiss@chromium.org>
Reviewed-by: Matt Reynolds <mattreynolds@chromium.org>
Commit-Queue: Fr <beaufort.francois@gmail.com>
Cr-Commit-Position: refs/heads/main@{#1357046}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Sep 18, 2024
This CL exposes the WebHID API to dedicated workers behind the blink
runtime feature WebHIDOnDedicatedWorkers.

Intent to prototype: https://groups.google.com/a/chromium.org/g/blink-dev/c/y__BOYfZWzI
Spec PR: WICG/webhid#121
Spec issue: WICG/webhid#120
Demo: https://webhid-worker.glitch.me/

Change-Id: If145f34faf9211a54c8b4a15fbe7e903411b8d1d
Bug: 365932453
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5841991
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Reviewed-by: Yoav Weiss (@Shopify) <yoavweiss@chromium.org>
Reviewed-by: Matt Reynolds <mattreynolds@chromium.org>
Commit-Queue: Fr <beaufort.francois@gmail.com>
Cr-Commit-Position: refs/heads/main@{#1357046}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Sep 18, 2024
This CL exposes the WebHID API to dedicated workers behind the blink
runtime feature WebHIDOnDedicatedWorkers.

Intent to prototype: https://groups.google.com/a/chromium.org/g/blink-dev/c/y__BOYfZWzI
Spec PR: WICG/webhid#121
Spec issue: WICG/webhid#120
Demo: https://webhid-worker.glitch.me/

Change-Id: If145f34faf9211a54c8b4a15fbe7e903411b8d1d
Bug: 365932453
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5841991
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Reviewed-by: Yoav Weiss (@Shopify) <yoavweiss@chromium.org>
Reviewed-by: Matt Reynolds <mattreynolds@chromium.org>
Commit-Queue: Fr <beaufort.francois@gmail.com>
Cr-Commit-Position: refs/heads/main@{#1357046}
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Sep 25, 2024
…s, a=testonly

Automatic update from web-platform-tests
WebHID: Add support for dedicated workers

This CL exposes the WebHID API to dedicated workers behind the blink
runtime feature WebHIDOnDedicatedWorkers.

Intent to prototype: https://groups.google.com/a/chromium.org/g/blink-dev/c/y__BOYfZWzI
Spec PR: WICG/webhid#121
Spec issue: WICG/webhid#120
Demo: https://webhid-worker.glitch.me/

Change-Id: If145f34faf9211a54c8b4a15fbe7e903411b8d1d
Bug: 365932453
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5841991
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Reviewed-by: Yoav Weiss (@Shopify) <yoavweiss@chromium.org>
Reviewed-by: Matt Reynolds <mattreynolds@chromium.org>
Commit-Queue: Fr <beaufort.francois@gmail.com>
Cr-Commit-Position: refs/heads/main@{#1357046}

--

wpt-commits: f3a05bb7fe21b6e6d8fbf5923d53abfc7c04fd66
wpt-pr: 48244
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Sep 26, 2024
…s, a=testonly

Automatic update from web-platform-tests
WebHID: Add support for dedicated workers

This CL exposes the WebHID API to dedicated workers behind the blink
runtime feature WebHIDOnDedicatedWorkers.

Intent to prototype: https://groups.google.com/a/chromium.org/g/blink-dev/c/y__BOYfZWzI
Spec PR: WICG/webhid#121
Spec issue: WICG/webhid#120
Demo: https://webhid-worker.glitch.me/

Change-Id: If145f34faf9211a54c8b4a15fbe7e903411b8d1d
Bug: 365932453
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5841991
Reviewed-by: Arthur Sonzogni <arthursonzognichromium.org>
Reviewed-by: Yoav Weiss (Shopify) <yoavweisschromium.org>
Reviewed-by: Matt Reynolds <mattreynoldschromium.org>
Commit-Queue: Fr <beaufort.francoisgmail.com>
Cr-Commit-Position: refs/heads/main{#1357046}

--

wpt-commits: f3a05bb7fe21b6e6d8fbf5923d53abfc7c04fd66
wpt-pr: 48244

UltraBlame original commit: 091c9c912077b35fe3eb0526c59790da67a80a9a
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Sep 26, 2024
…s, a=testonly

Automatic update from web-platform-tests
WebHID: Add support for dedicated workers

This CL exposes the WebHID API to dedicated workers behind the blink
runtime feature WebHIDOnDedicatedWorkers.

Intent to prototype: https://groups.google.com/a/chromium.org/g/blink-dev/c/y__BOYfZWzI
Spec PR: WICG/webhid#121
Spec issue: WICG/webhid#120
Demo: https://webhid-worker.glitch.me/

Change-Id: If145f34faf9211a54c8b4a15fbe7e903411b8d1d
Bug: 365932453
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5841991
Reviewed-by: Arthur Sonzogni <arthursonzognichromium.org>
Reviewed-by: Yoav Weiss (Shopify) <yoavweisschromium.org>
Reviewed-by: Matt Reynolds <mattreynoldschromium.org>
Commit-Queue: Fr <beaufort.francoisgmail.com>
Cr-Commit-Position: refs/heads/main{#1357046}

--

wpt-commits: f3a05bb7fe21b6e6d8fbf5923d53abfc7c04fd66
wpt-pr: 48244

UltraBlame original commit: 091c9c912077b35fe3eb0526c59790da67a80a9a
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Sep 26, 2024
…s, a=testonly

Automatic update from web-platform-tests
WebHID: Add support for dedicated workers

This CL exposes the WebHID API to dedicated workers behind the blink
runtime feature WebHIDOnDedicatedWorkers.

Intent to prototype: https://groups.google.com/a/chromium.org/g/blink-dev/c/y__BOYfZWzI
Spec PR: WICG/webhid#121
Spec issue: WICG/webhid#120
Demo: https://webhid-worker.glitch.me/

Change-Id: If145f34faf9211a54c8b4a15fbe7e903411b8d1d
Bug: 365932453
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5841991
Reviewed-by: Arthur Sonzogni <arthursonzognichromium.org>
Reviewed-by: Yoav Weiss (Shopify) <yoavweisschromium.org>
Reviewed-by: Matt Reynolds <mattreynoldschromium.org>
Commit-Queue: Fr <beaufort.francoisgmail.com>
Cr-Commit-Position: refs/heads/main{#1357046}

--

wpt-commits: f3a05bb7fe21b6e6d8fbf5923d53abfc7c04fd66
wpt-pr: 48244

UltraBlame original commit: 091c9c912077b35fe3eb0526c59790da67a80a9a
jamienicol pushed a commit to jamienicol/gecko that referenced this pull request Sep 26, 2024
…s, a=testonly

Automatic update from web-platform-tests
WebHID: Add support for dedicated workers

This CL exposes the WebHID API to dedicated workers behind the blink
runtime feature WebHIDOnDedicatedWorkers.

Intent to prototype: https://groups.google.com/a/chromium.org/g/blink-dev/c/y__BOYfZWzI
Spec PR: WICG/webhid#121
Spec issue: WICG/webhid#120
Demo: https://webhid-worker.glitch.me/

Change-Id: If145f34faf9211a54c8b4a15fbe7e903411b8d1d
Bug: 365932453
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5841991
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Reviewed-by: Yoav Weiss (@Shopify) <yoavweiss@chromium.org>
Reviewed-by: Matt Reynolds <mattreynolds@chromium.org>
Commit-Queue: Fr <beaufort.francois@gmail.com>
Cr-Commit-Position: refs/heads/main@{#1357046}

--

wpt-commits: f3a05bb7fe21b6e6d8fbf5923d53abfc7c04fd66
wpt-pr: 48244
i3roly pushed a commit to i3roly/firefox-dynasty that referenced this pull request Sep 27, 2024
…s, a=testonly

Automatic update from web-platform-tests
WebHID: Add support for dedicated workers

This CL exposes the WebHID API to dedicated workers behind the blink
runtime feature WebHIDOnDedicatedWorkers.

Intent to prototype: https://groups.google.com/a/chromium.org/g/blink-dev/c/y__BOYfZWzI
Spec PR: WICG/webhid#121
Spec issue: WICG/webhid#120
Demo: https://webhid-worker.glitch.me/

Change-Id: If145f34faf9211a54c8b4a15fbe7e903411b8d1d
Bug: 365932453
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5841991
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Reviewed-by: Yoav Weiss (@Shopify) <yoavweiss@chromium.org>
Reviewed-by: Matt Reynolds <mattreynolds@chromium.org>
Commit-Queue: Fr <beaufort.francois@gmail.com>
Cr-Commit-Position: refs/heads/main@{#1357046}

--

wpt-commits: f3a05bb7fe21b6e6d8fbf5923d53abfc7c04fd66
wpt-pr: 48244
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

Successfully merging this pull request may close these issues.

3 participants