W3C home > Mailing lists > Public > public-webrtc@w3.org > January 2015

Re: Can getUserMedia() get called on a callback/event ?

From: Martin Thomson <martin.thomson@gmail.com>
Date: Fri, 9 Jan 2015 09:02:13 -0800
Message-ID: <CABkgnnVhQTYT8faNP4fP4JNhf_Tg7AxhJkuUzHLisfJSVqMwKQ@mail.gmail.com>
To: Iñaki Baz Castillo <ibc@aliax.net>
Cc: "public-webrtc@w3.org" <public-webrtc@w3.org>
On 9 January 2015 at 08:19, Iñaki Baz Castillo <ibc@aliax.net> wrote:
> So my question again: is this how gUM is supposed to work? or a
> fanciful design in Chrome browser?


This is a general web interaction design principle.  If the call to a
dialog-, consent- or popup-inducing function is not as a result of a
user action (I think that Dom had a good reference for this in one of
the documents), then it doesn't fire.  This prevents pages from
generating these things.

I wasn't aware that Chrome was linking consent dialogs to that, but I
think that it makes some sense.  I've been thinking that Firefox needs
to do the same.  If this is causing you pain though, what specific use
case is causing the problem?

(And please don't describe behaviour as "hateful" until you understand
why it is that way.)
Received on Friday, 9 January 2015 17:02:44 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 15:19:42 UTC