Firefox Tomorrow

web api instance method

USBDevice: forget() method

View on MDN ↗

Limited availabilitySecure contextAvailable in workers

The forget() method of the USBDevice interface returns a Promise that resolves when all pending operations are aborted, all open interfaces are released, the device session has ended, and the permission is reset.

Syntax

forget()

Parameters

None.

Return value

A Promise which resolves with undefined once the device access permission is revoked.

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.