Initial commit of WebSerial code
Categories
(Core :: DOM: Web Serial, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr140 | --- | unaffected |
| firefox151 | --- | fixed |
People
(Reporter: gstoll, Assigned: gstoll)
References
(Blocks 6 open bugs)
Details
(Keywords: perf-alert, regression)
Attachments
(9 files)
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review |
This should have all basic WebSerial functionality. This will be behind a pref dom.webserial.enabled.
| Assignee | ||
Updated•8 months ago
|
| Assignee | ||
Comment 1•7 months ago
|
||
Also adds a few declarations for the "connect" and "disconnect" events
| Assignee | ||
Comment 2•7 months ago
|
||
| Assignee | ||
Comment 3•7 months ago
|
||
IPC Parent/Child classes for SerialManager and SerialPort.
| Assignee | ||
Comment 4•7 months ago
|
||
See part 2 for the base SerialPlatformService class.
| Assignee | ||
Comment 5•7 months ago
|
||
See part 2 for the base SerialPlatformService class.
| Assignee | ||
Comment 6•7 months ago
|
||
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.
| Assignee | ||
Comment 7•7 months ago
|
||
There is some information about the security policy in the WebSerial
WICG proposal here: https://wicg.github.io/serial/#permissions-policy
| Assignee | ||
Comment 8•7 months ago
|
||
Needed so Firefox has access to USB ports for serial devices that are
connected to a USB port.
| Assignee | ||
Comment 9•7 months ago
|
||
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.
Updated•7 months ago
|
Comment 12•5 months ago
|
||
Comment 13•5 months ago
|
||
Comment 14•5 months ago
|
||
Backed out for causing multiple wpt failures at WebSerial
Backout Link
Push with failures
Push with failures
Failure Log
Failure log
Failure log
Failure lines:
TEST-UNEXPECTED-PASS | /serial/idlharness.https.any.html | Serial interface: existence and properties of interface object - expected FAIL
TEST-UNEXPECTED-PASS | /serial/requestPort/reject_opaque_origin.https.html | Calls to Serial APIs from an origin with opaque top origin get blocked. - expected FAIL
TEST-UNEXPECTED-PASS | /serial/getPorts/reject_opaque_origin.https.html | Calls to Serial APIs from an origin with opaque top origin get blocked. - expected FAIL
Updated•5 months ago
|
Updated•5 months ago
|
Updated•5 months ago
|
Updated•5 months ago
|
Updated•5 months ago
|
Updated•5 months ago
|
Updated•5 months ago
|
Updated•5 months ago
|
Updated•5 months ago
|
Comment 15•5 months ago
|
||
Comment 16•5 months ago
|
||
Comment 17•5 months ago
|
||
Backed out for causing build bustages at PosixSerialPlatformService
Backout Link
Push with failures
Failure Log
Failure line /builds/worker/checkouts/gecko/dom/webserial/PosixSerialPlatformService.cpp:X:33: error: format specifies type 'unsigned int' but the argument has type 'ParityType' (aka 'mozilla::dom::ParityType') [-Werror,-Wformat]
| Assignee | ||
Updated•5 months ago
|
Comment 18•5 months ago
|
||
Comment 22•5 months ago
|
||
Comment 23•5 months ago
•
|
||
Backed out for causing mochitest failures @ test_serial_insecurecontext.html
Backout link: https://hg.mozilla.org/integration/autoland/rev/b03beae34dc6c3b64a5a5d280c810df340d5c539
Failure log -> TEST-UNEXPECTED-FAIL | dom/webserial/tests/mochitest/test_serial_insecurecontext.html
L.E
Also these build bustages are also from there
| Assignee | ||
Updated•5 months ago
|
Comment 24•5 months ago
|
||
Comment 25•5 months ago
|
||
Comment 26•5 months ago
|
||
Backed out for causing webserial related mochitest failures
Backout link: https://hg.mozilla.org/integration/autoland/rev/bad587d7d94e3677148270618eb99a131c729ac3
Failure log -> TEST-UNEXPECTED-FAIL | dom/webserial/tests/mochitest/test_serial_api.html
Failure log -> TEST-UNEXPECTED-FAIL | dom/webserial/tests/mochitest/test_serial_streams.html
Comment 27•5 months ago
|
||
| Assignee | ||
Updated•5 months ago
|
Comment 28•5 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/963bb3fde922
https://hg.mozilla.org/mozilla-central/rev/b201df33ac88
https://hg.mozilla.org/mozilla-central/rev/0a6ccb037f58
https://hg.mozilla.org/mozilla-central/rev/4032625198b1
https://hg.mozilla.org/mozilla-central/rev/1e1ab72ac209
https://hg.mozilla.org/mozilla-central/rev/9e036b4a4aa2
https://hg.mozilla.org/mozilla-central/rev/6f8034414b93
https://hg.mozilla.org/mozilla-central/rev/17ed4310d687
https://hg.mozilla.org/mozilla-central/rev/c68a8640b4c3
| Assignee | ||
Updated•5 months ago
|
Updated•5 months ago
|
Comment 29•4 months ago
|
||
(In reply to Pulsebot from comment #15)
Pushed by gstoll@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/8dfe48a33c5a
https://hg.mozilla.org/integration/autoland/rev/5a86fd004b08
part 1 - add WebSerial interfaces to .webidl files
r=cmartin,webidl,smaug,emilio
https://github.com/mozilla-firefox/firefox/commit/cbcfcae79a4c
https://hg.mozilla.org/integration/autoland/rev/cea5f8ea0c56
part 2 - WebSerial core code (minus IPC and platform-specific code)
r=cmartin,saschanaz,webidl,smaug
https://github.com/mozilla-firefox/firefox/commit/20b7e1ca1c90
https://hg.mozilla.org/integration/autoland/rev/c6dc2483afa7
part 3 - WebSerial IPC code r=nika
https://github.com/mozilla-firefox/firefox/commit/6ffc38891c50
https://hg.mozilla.org/integration/autoland/rev/9e136382a433
part 4 - WebSerial Windows-specific code r=cmartin,win-reviewers
https://github.com/mozilla-firefox/firefox/commit/40304769aa0a
https://hg.mozilla.org/integration/autoland/rev/32bbd7e184a9
part 5 - WebSerial Mac/Linux-specific code
r=mac-reviewers,Thinker,bradwerth,cmartin
https://github.com/mozilla-firefox/firefox/commit/c93f8f139dfd
https://hg.mozilla.org/integration/autoland/rev/8f9b504d48a6
part 6 - add-on gating and requestPort() dialog for WebSerial
r=fluent-reviewers,extension-reviewers,desktop-theme-reviewers,akulyk,
bolsson,rpl,emilio
https://github.com/mozilla-firefox/firefox/commit/b6d45de2950f
https://hg.mozilla.org/integration/autoland/rev/25f6784571f2
part 7 - WebSerial security feature policy (with reftests)
r=dveditz,permissions-reviewers,tschuster,dom-worker-reviewers,edenchuang
https://github.com/mozilla-firefox/firefox/commit/94c189140fb6
https://hg.mozilla.org/integration/autoland/rev/5514dfa9509e
part 8 - WebSerial USB entitlements for Mac r=mac-reviewers,haik
https://github.com/mozilla-firefox/firefox/commit/62f8d4670bc1
https://hg.mozilla.org/integration/autoland/rev/13fd66a96bc5
part 9 - WebSerial tests r=rpl,emilio
Perfherder has detected a build_metrics performance change from push 13fd66a96bc5936446a4247293996a9ef66973bb.
No action is required from the author; this comment is provided for informational purposes only.
| Regression | Test | Platform | Options | Absolute values [old vs new] |
|---|---|---|---|---|
| 0.18% | installer size | osx-nightlyasrelease | nightly nightly-as-release | 116,730,000.25 -> 116,936,607.58 |
Need Help or Information?
If you have any questions, please reach out to afinder@mozilla.com. Alternatively, you can find help on Slack by joining #perf-help, and on Matrix you can find help by joining #perftest.
Details of the alert can be found in the alert summary, including links to graphs and comparisons for each of the affected tests.
| Assignee | ||
Comment 30•4 months ago
|
||
(FYI that last comment looks like a duplicate of bug 2034138)
Updated•1 month ago
|
Updated•24 days ago
|
Updated•2 days ago
|
Description
•