[meta] WebSerial API
Categories
(Core :: DOM: Web Serial, enhancement, P3)
Tracking
()
People
(Reporter: tzikis, Assigned: gstoll, NeedInfo)
References
(Depends on 14 open bugs, )
Details
(Keywords: dev-doc-needed, meta, webcompat:platform-bug)
User Story
user-impact-score:1660 web-feature: serial Web Serial support shipped in Firefox 151 on Mac, Windows, and Linux.
Attachments
(1 file)
|
88.67 KB,
patch
|
Details | Diff | Splinter Review |
Comment 2•12 years ago
|
||
Comment 3•12 years ago
|
||
Comment 4•12 years ago
|
||
Comment 5•12 years ago
|
||
Comment 6•12 years ago
|
||
Updated•12 years ago
|
Comment 8•11 years ago
|
||
Comment 9•11 years ago
|
||
Comment 10•11 years ago
|
||
Comment 11•11 years ago
|
||
Comment 12•11 years ago
|
||
Comment 13•11 years ago
|
||
Comment 14•11 years ago
|
||
Comment 15•11 years ago
|
||
Comment 16•11 years ago
|
||
Comment 17•10 years ago
|
||
Comment 18•10 years ago
|
||
Comment 19•10 years ago
|
||
Comment 20•10 years ago
|
||
Comment 21•10 years ago
|
||
| Reporter | ||
Comment 22•10 years ago
|
||
Comment 23•9 years ago
|
||
Updated•6 years ago
|
Comment 24•6 years ago
|
||
This is yet another request for WebSerial API support in Firefox. At the very least, let users set a flag to allow it, as Chrome does in their "Experimental Web Platform features" extension. As of this moment, the phenomenal MicroBlocks[1] application[2] which supports "live" physical computing education can only run on Chrome or Edge browsers. It makes me sad to tell coding educators that they must use Chrome. :(
[1] https://microblocks.fun
[2] https://microblocks.fun/run/microblocks.html
Updated•6 years ago
|
Comment 25•6 years ago
|
||
This is another request for supporting the WebSerial API in Firefox.
I'm the lead developer for MicroBlocks, an open-source, blocks-based programming environment for the micro:bit and other microcontrollers aimed at K-12 education. Many of the teachers, librarians, and museum staff who are using MicroBlocks have requested a browser version so make MicroBlocks easier to use in their settings. Yesterday we released a browser version that uses the experimental Web Serial API currently undergoing origin trials in the Chrome and Edge browsers.
Except for the fact that it cannot communicate with the microcontroller, MicroBlocks works great in Firefox. (It is compiled from C into WASM using the Emscripten compiler -- thank you for those technologies!) It would be great if we could one day offer educators the option of running MicroBlocks in Firefox, as well as Chrome and Edge.
Thanks for considering it!
Comment 26•6 years ago
|
||
I meant to include this link in my previous post:
http://microblocks.fun/blog-2020-05-24-Running-MicroBlocks-in-the-Browser
Comment 27•6 years ago
|
||
As we (Mozilla) consider this API "harmful" to the Web [1], I'm going to go ahead and mark it as WONTFIX as I don't want us to give false hope that we are going to work on this.
Should our position change as the API evolves, we can then reconsider implementing it.
[1] https://mozilla.github.io/standards-positions/#webserial
Updated•6 years ago
|
| Comment hidden (advocacy) |
| Comment hidden (advocacy) |
Updated•3 years ago
|
Comment 30•1 year ago
•
|
||
The current position is marked as βneutralβ. Is that sufficient for this to be reopened for discussion, or have I misunderstood? (I ask because this impacts ease of installation for multiple Linux distributions, like flash.postmarketos.org, which I cannot imagine is desirable.)
Updated•1 year ago
|
Comment 31•1 year ago
|
||
That should be a question for Bobby :)
Comment 32•1 year ago
|
||
As noted on standards-positions, we'd take a patch for WebSerial assuming the criteria are met.
Comment 33•1 year ago
|
||
As per comment 30 and 32, this should have been reopened.
Updated•1 year ago
|
Updated•11 months ago
|
Updated•11 months ago
|
Updated•11 months ago
|
Updated•10 months ago
|
| Assignee | ||
Updated•9 months ago
|
Updated•9 months ago
|
| Assignee | ||
Updated•8 months ago
|
Updated•7 months ago
|
| Assignee | ||
Updated•7 months ago
|
Updated•3 months ago
|
Updated•3 months ago
|
Updated•3 months ago
|
Comment 35•3 months ago
|
||
It's great to finally have the WebSerial API in Firefox. Thank you, Greg!
I've noticed two little glitches (Firefox v151.0.4 on MacOS Sequoia 15.7.4, 2021 MacBook Pro). I am testing in the context of MicroBlocks, a block-based programming system for microcontrollers (https://microblocks.fun/run)
-
When the device (e.g. a micro:bit) is physically disconnected while the serial port is open, the next call to port.writable.getWriter() hangs and the entire MicroBlocks web app freezes.
-
It does not appear that "ondisconnect" event handler is called when the device is unplugged. Should it be?
MicroBlocks can be used in Firefox if one is careful, but MicroBlocks is aimed at beginners (often in grades 4-8) who often unplug their boards without first disconnecting so it would great if that case was handled more gracefully, as it is in Chromium-based browsers.
Comment 37•3 months ago
|
||
Do you also plan to eventually add WebBluetooth?
See id=674737#c33. Tangentially, try not to advertise.
| Assignee | ||
Comment 38•3 months ago
|
||
(In reply to jmaloney from comment #35)
It's great to finally have the WebSerial API in Firefox. Thank you, Greg!
Awesome, it's always great to see people using something we worked hard on :-)
I've noticed two little glitches (Firefox v151.0.4 on MacOS Sequoia 15.7.4, 2021 MacBook Pro). I am testing in the context of MicroBlocks, a block-based programming system for microcontrollers (https://microblocks.fun/run)
When the device (e.g. a micro:bit) is physically disconnected while the serial port is open, the next call to port.writable.getWriter() hangs and the entire MicroBlocks web app freezes.
It does not appear that "ondisconnect" event handler is called when the device is unplugged. Should it be?
MicroBlocks can be used in Firefox if one is careful, but MicroBlocks is aimed at beginners (often in grades 4-8) who often unplug their boards without first disconnecting so it would great if that case was handled more gracefully, as it is in Chromium-based browsers.
Hmm, that's interesting. It seems like these two things don't happen in general - I tried doing these with an Arduino on a Mac with 151.0.4 and I don't see the hang and I do see the "ondisconnect" event handler being called.
I do have an ESP32 microcontroller - is there a way to use MicroBlocks with that? Can you give me steps to reproduce the hang? If so I can file a new bug for this and investigate some more.
Do you also plan to eventually add WebBluetooth?
As comment 37 points out, our current standards position on WebBluetooth is negative. However, our WebSerial standards position was also negative until fairly recently, so I'm not saying this will never change, but there are no plans to work on it right now.
(I will mention that WebSerial can work over Bluetooth, but it seemed pretty finicky to me, and I'm pretty sure that doesn't include Bluetooth LE)
Updated•1 month ago
|
Updated•1 month ago
|
Comment 39•1 month ago
|
||
Web Serial support shipped in Firefox 151 on Mac, Windows, and Linux.
Description
•