On 4/17/2014 1:31 PM, Jamie McDonnell wrote:
Hi all,
I have been fighting today with the issue of the allow camera / mic popup
disappearing if firefox 28 looses focus after a getUserMedia query.
This is how 'doorhangers' work; they close if focus is lost (or you
click outside of them) and can be reopened.
No event is fired when this happens which makes it very tricky to react to
in the UI.
Yes; this is a common issue. Right now there's no easy way to deal with
it, as you've seen.
I have tried rigging up timers with focus / blur events to try and detect
if this scenario has happened, but can not find a reliable approach.
Has anyone overcome this issue, or Moz guys, is this in your pipeline to
fix? The camera / mic box really should persist if the user switches app
and back to the browser again.
Given this is part of a larger, generic functionality I think that might
be tough. Other options would be a failure with a different error (this
*will* break a lot of apps though and cause UI issues, since they'd need
to re-submit the requests), or some type of event telling you if it's
hidden or open (your best shot). Mostly this is a question for the
Firefox UI/front-end team.
--
Randell Jesup, Mozilla
___
dev-media mailing list
dev-media@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-media