Skip to content

Add USBDevice.forget()#214

Merged
reillyeon merged 2 commits intoWICG:mainfrom
beaufortfrancois:device-forget
Feb 23, 2022
Merged

Add USBDevice.forget()#214
reillyeon merged 2 commits intoWICG:mainfrom
beaufortfrancois:device-forget

Conversation

@beaufortfrancois
Copy link
Copy Markdown
Contributor

@beaufortfrancois beaufortfrancois commented Feb 16, 2022

Following WICG/webhid#84, this PR is an attempt to provide a way for web developers to revoke permission access to a paired USBDevice.

// Request a USB device.
const device = await navigator.usb.requestDevice({ filters: [] });

// Then later... revoke permission to the USB device.
await device.forget();

@reillyeon Please have a look

FIX: #107


Preview | Diff

chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Feb 17, 2022
This CL adds a way for web developers to revoke permission access to a
paired USBDevice. The experimental forget() method is behind a blink
runtime feature flag.

Intent to prototype: TODO

Test: https://usbdevice-forget.glitch.me/
Spec: WICG/webusb#214
Change-Id: I64ca948554bf01580ced0b235a0e2e1cd7ba8294
Bug: TODO
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Feb 17, 2022
This CL adds a way for web developers to revoke permission access to a
paired USBDevice. The experimental forget() method is behind a blink
runtime feature flag.

Intent to prototype: TODO

Test: https://usbdevice-forget.glitch.me/
Spec: WICG/webusb#214
Change-Id: I64ca948554bf01580ced0b235a0e2e1cd7ba8294
Bug: TODO
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Feb 18, 2022
This CL adds a way for web developers to revoke permission access to a
paired USBDevice. The experimental forget() method is behind a blink
runtime feature flag.

Intent to prototype: TODO

Test: https://usbdevice-forget.glitch.me/
Spec: WICG/webusb#214
Change-Id: I64ca948554bf01580ced0b235a0e2e1cd7ba8294
Bug: TODO
@beaufortfrancois
Copy link
Copy Markdown
Contributor Author

@reillyeon Can you merge this PR?

chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Feb 23, 2022
This CL adds a way for web developers to revoke permission access to a
paired USBDevice. The experimental forget() method is behind a blink
runtime feature flag.

Intent to prototype: https://groups.google.com/a/chromium.org/g/blink-dev/c/pSM2W0TtKEI

Test: https://usbdevice-forget.glitch.me/
Spec: WICG/webusb#214
Change-Id: I64ca948554bf01580ced0b235a0e2e1cd7ba8294
Bug: 1299351
@reillyeon reillyeon merged commit 80342de into WICG:main Feb 23, 2022
github-actions bot added a commit that referenced this pull request Feb 23, 2022
SHA: 80342de
Reason: push, by @reillyeon

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions bot added a commit that referenced this pull request Feb 23, 2022
SHA: 80342de
Reason: push, by @reillyeon

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Feb 24, 2022
This CL adds a way for web developers to revoke permission access to a
paired USBDevice.

Intent to ship: https://groups.google.com/a/chromium.org/g/blink-dev/c/pSM2W0TtKEI

Test: https://usbdevice-forget.glitch.me/
Spec: WICG/webusb#214
Change-Id: I64ca948554bf01580ced0b235a0e2e1cd7ba8294
Bug: 1299351
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Feb 24, 2022
This CL adds a way for web developers to revoke permission access to a
paired USBDevice.

Intent to ship: https://groups.google.com/a/chromium.org/g/blink-dev/c/pSM2W0TtKEI

Test: https://usbdevice-forget.glitch.me/
Spec: WICG/webusb#214
Change-Id: I64ca948554bf01580ced0b235a0e2e1cd7ba8294
Bug: 1299351
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Mar 1, 2022
This CL adds a way for web developers to revoke permission access to a
paired USBDevice.

Intent to ship: https://groups.google.com/a/chromium.org/g/blink-dev/c/pSM2W0TtKEI

Test: https://usbdevice-forget.glitch.me/
Spec: WICG/webusb#214
Change-Id: I64ca948554bf01580ced0b235a0e2e1cd7ba8294
Bug: 1299351
aarongable pushed a commit to chromium/chromium that referenced this pull request Mar 1, 2022
This CL adds a way for web developers to revoke permission access to a
paired USBDevice.

Intent to ship: https://groups.google.com/a/chromium.org/g/blink-dev/c/pSM2W0TtKEI

Test: https://usbdevice-forget.glitch.me/
Spec: WICG/webusb#214
Change-Id: I64ca948554bf01580ced0b235a0e2e1cd7ba8294
Bug: 1299351
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3447308
Reviewed-by: Mike West <mkwst@chromium.org>
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Reviewed-by: Yoav Weiss <yoavweiss@chromium.org>
Commit-Queue: Fr <beaufort.francois@gmail.com>
Cr-Commit-Position: refs/heads/main@{#976163}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Mar 1, 2022
This CL adds a way for web developers to revoke permission access to a
paired USBDevice.

Intent to ship: https://groups.google.com/a/chromium.org/g/blink-dev/c/pSM2W0TtKEI

Test: https://usbdevice-forget.glitch.me/
Spec: WICG/webusb#214
Change-Id: I64ca948554bf01580ced0b235a0e2e1cd7ba8294
Bug: 1299351
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3447308
Reviewed-by: Mike West <mkwst@chromium.org>
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Reviewed-by: Yoav Weiss <yoavweiss@chromium.org>
Commit-Queue: Fr <beaufort.francois@gmail.com>
Cr-Commit-Position: refs/heads/main@{#976163}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Mar 1, 2022
This CL adds a way for web developers to revoke permission access to a
paired USBDevice.

Intent to ship: https://groups.google.com/a/chromium.org/g/blink-dev/c/pSM2W0TtKEI

Test: https://usbdevice-forget.glitch.me/
Spec: WICG/webusb#214
Change-Id: I64ca948554bf01580ced0b235a0e2e1cd7ba8294
Bug: 1299351
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3447308
Reviewed-by: Mike West <mkwst@chromium.org>
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Reviewed-by: Yoav Weiss <yoavweiss@chromium.org>
Commit-Queue: Fr <beaufort.francois@gmail.com>
Cr-Commit-Position: refs/heads/main@{#976163}
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Mar 22, 2022
Automatic update from web-platform-tests
usb: Ship USBDevice.forget()

This CL adds a way for web developers to revoke permission access to a
paired USBDevice.

Intent to ship: https://groups.google.com/a/chromium.org/g/blink-dev/c/pSM2W0TtKEI

Test: https://usbdevice-forget.glitch.me/
Spec: WICG/webusb#214
Change-Id: I64ca948554bf01580ced0b235a0e2e1cd7ba8294
Bug: 1299351
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3447308
Reviewed-by: Mike West <mkwst@chromium.org>
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Reviewed-by: Yoav Weiss <yoavweiss@chromium.org>
Commit-Queue: Fr <beaufort.francois@gmail.com>
Cr-Commit-Position: refs/heads/main@{#976163}

--

wpt-commits: 4d60c15f1f605532b9017c43362a0e239b7cc0ba
wpt-pr: 32874
aosmond pushed a commit to aosmond/gecko that referenced this pull request Mar 26, 2022
Automatic update from web-platform-tests
usb: Ship USBDevice.forget()

This CL adds a way for web developers to revoke permission access to a
paired USBDevice.

Intent to ship: https://groups.google.com/a/chromium.org/g/blink-dev/c/pSM2W0TtKEI

Test: https://usbdevice-forget.glitch.me/
Spec: WICG/webusb#214
Change-Id: I64ca948554bf01580ced0b235a0e2e1cd7ba8294
Bug: 1299351
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3447308
Reviewed-by: Mike West <mkwst@chromium.org>
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Reviewed-by: Yoav Weiss <yoavweiss@chromium.org>
Commit-Queue: Fr <beaufort.francois@gmail.com>
Cr-Commit-Position: refs/heads/main@{#976163}

--

wpt-commits: 4d60c15f1f605532b9017c43362a0e239b7cc0ba
wpt-pr: 32874
@beaufortfrancois beaufortfrancois deleted the device-forget branch June 16, 2023 12:12
jwidar pushed a commit to jwidar/LatencyZeroGithub that referenced this pull request Sep 16, 2025
Automatic update from web-platform-tests
usb: Ship USBDevice.forget()

This CL adds a way for web developers to revoke permission access to a
paired USBDevice.

Intent to ship: https://groups.google.com/a/chromium.org/g/blink-dev/c/pSM2W0TtKEI

Test: https://usbdevice-forget.glitch.me/
Spec: WICG/webusb#214
Change-Id: I64ca948554bf01580ced0b235a0e2e1cd7ba8294
Bug: 1299351
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3447308
Reviewed-by: Mike West <mkwst@chromium.org>
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Reviewed-by: Yoav Weiss <yoavweiss@chromium.org>
Commit-Queue: Fr <beaufort.francois@gmail.com>
Cr-Commit-Position: refs/heads/main@{#976163}

--

wpt-commits: 4d60c15f1f605532b9017c43362a0e239b7cc0ba
wpt-pr: 32874
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.

Add functionality to unpair / forget a device

2 participants