Open Bug 2010930 Opened 28 days ago Updated 6 hours ago

Initial commit of WebSerial code

Categories

(Core :: DOM: Device Interfaces, enhancement)

enhancement

Tracking

()

ASSIGNED

People

(Reporter: gstoll, Assigned: gstoll)

References

(Blocks 11 open bugs)

Details

Attachments

(9 files)

This should have all basic WebSerial functionality. This will be behind a pref dom.webserial.enabled.

Assignee: nobody → gstoll
Status: NEW → ASSIGNED
Blocks: 2010938

Also adds a few declarations for the "connect" and "disconnect" events

IPC Parent/Child classes for SerialManager and SerialPort.

See part 2 for the base SerialPlatformService class.

See part 2 for the base SerialPlatformService class.

When a page tries to use the WebSerial API, we require the user to install
a generated add-on to grant that permission, just like we do for WebMIDI.
After that is installed, we pop a dialog that lets the user choose a port
to grant access to.

There is some information about the security policy in the WebSerial
WICG proposal here: https://wicg.github.io/serial/#permissions-policy

Needed so Firefox has access to USB ports for serial devices that are
connected to a USB port.

The browser/ tests are mainly around testing the site permission add-on
and requestPort() dialog, while the mochitests test mostly test the
actual WebSerial API.

Blocks: 2013908
Severity: -- → N/A
Type: defect → enhancement
Blocks: 2014475
Blocks: 2014567
Blocks: 2014571
Blocks: 2014573
Blocks: 2014794
Blocks: 2014897
Blocks: 2016732
Blocks: 2016736
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: