I'm not sure it makes sense to associate it per serial port. 

A particular serial port often isn't even the same device. For example, under 
linux, many USB-to-serial devices get assigned to /dev/ttyUSBX based on the 
order they're plugged in, or the order that they're enumerated (i.e. which port 
on a USB hub they're plugged into). 

With newer Arduino boards, under windows, every time the board resets, it gets 
a new COM port. You don't want to have to reprompt here. 

At the very least, for some applications, I think it makes sense to allow apps 
to access any serial port. 

Dave Hylands 

----- Original Message -----

> From: "Alexandros Chronopoulos" <achro...@gmail.com>
> To: "Jonas Sicking" <jo...@sicking.cc>
> Cc: "dev-platform" <dev-platform@lists.mozilla.org>
> Sent: Sunday, July 13, 2014 4:13:44 AM
> Subject: Re: Intent to implement: webserial api

> The basic security model I am thinking of right now is to ask the user
> explicitly. When a website try to open a serial port the user will be
> promoted asking for permissions. This will happen for any different
> port and any different website. The only case not to raise a prompt
> would be when a website tries to reopen an previously opened port,
> since permissions have already been granted. I would suggest no white
> list or remember option to be offered.

> -Alex

> On Sun, Jul 13, 2014 at 12:22 AM, Jonas Sicking <jo...@sicking.cc> wrote:
> > What's the security model for this API?
> >
> > / Jonas
> >
> > On Sat, Jul 12, 2014 at 11:58 AM, Alexandros Chronopoulos
> > <achro...@gmail.com> wrote:
> >> Summary: Webapi to access serial devices through browser. The api will
> >> provide, to websites, read and write capability from local serial port
> >> through javascript. Such an implementation will connect web with
> >> physical devices such as micro controllers, 3d printers etc.
> >>
> >> Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=926940
> >>
> >> Link to standard: https://whatwg.github.io/serial/
> >>
> >> Platform coverage: Desktop focusing on Windows/Mac/Linux. Android is
> >> also possible.
> >>
> >> Target release: ?
> >>
> >> Preference behind which this will be implemented: Access permission
> >> will be given similar to geolocation api.
> >>
> >> -Alex
> >> _______________________________________________
> >> dev-platform mailing list
> >> dev-platform@lists.mozilla.org
> >> https://lists.mozilla.org/listinfo/dev-platform
> _______________________________________________
> dev-platform mailing list
> dev-platform@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-platform
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to