"Failed to allocate videosource" error if you try to call getUserMedia inside an iframe in JSBin
Categories
(Core :: WebRTC: Audio/Video, defect, P3)
Tracking
()
People
(Reporter: adam, Assigned: padenot)
References
Details
(Keywords: stale-bug)
| Assignee | ||
Comment 1•8 years ago
|
||
| Assignee | ||
Updated•8 years ago
|
| Assignee | ||
Updated•8 years ago
|
Comment 2•8 years ago
|
||
| Assignee | ||
Updated•8 years ago
|
Comment 4•8 years ago
|
||
Comment 5•8 years ago
|
||
Updated•8 years ago
|
| Reporter | ||
Comment 6•8 years ago
|
||
Comment 7•8 years ago
|
||
Comment 8•7 years ago
|
||
| Assignee | ||
Comment 9•7 years ago
|
||
jib, you've been doing some stuff in the area lately, what is the currrent behaviour here?
Comment 10•7 years ago
|
||
This particular iframe bug was somewhat particular to JBin—which if I'm guessing, may have had to do with delayed setting of .src attribute, see comment 5—with unique symptoms:
In the case where it fails with "Failed to allocate videosource":
- The prompt will say "Will you allow about:blank to use your camera and microphone?
- And when you allow, it JSBin says: "The page at https://null.jsbin.com says: Failed to allocate videosource"
I did some archeology, and this was fixed in 2017-12-06 in bug 1366357, after which it works:
- The prompt will say "Will you allow null.jsbin.com to use your camera and microphone?
- Camera and mic succeed.
5:51.11 INFO: First good revision: 99a3b09ac1898eb1db05430e2876d6643ba0d4a8 (2017-12-06)
5:51.11 INFO: Last bad revision: 18a9cb5cb32d0e8031d0a80901b199d5e9827d83 (2017-12-05)
5:51.11 INFO: Pushlog:
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=18a9cb5cb32d0e8031d0a80901b199d5e9827d83&tochange=99a3b09ac1898eb1db05430e2876d6643ba0d4a8
Note that while this still works in release, it will stop working and fail with NotAllowedError once we enable dom.security.featurePolicy.enabled (which is currently enabled in Nightly).
Description
•