One getUserMedia() call stalls when called from two iframes (one using srcdoc) simultaneously.
Categories
(Firefox :: Site Permissions, defect, P3)
Tracking
()
People
(Reporter: jib, Unassigned)
References
Details
Updated•6 years ago
|
Comment 1•6 years ago
|
||
So my guess from a cursory bit of debugging is that we're deleting the first permission prompt here: https://searchfox.org/mozilla-central/rev/b10ae6b7a50d176a813900cbe9dc18c85acd604b/toolkit/modules/PopupNotifications.jsm#504
So this wouldn't be a problem that affects only WebRTC.
At first I thought a fix for this could be feature policy, but this is happening even when the iframe has the same origin.
The right fix might be to "transfer" the callback that is applied to the permission prompt that gets removed to the new one IFF they have the same origin.
| Reporter | ||
Comment 2•6 years ago
|
||
This came up again in another fiddle: https://jsfiddle.net/jib1/p1wjse6v/ - I've added a 3 second delay as a workaround, with some interesting behavior:
- If I grant the 1st prompt within the 3 seconds, then the 1st iframe gets its camera, and I get a 2nd prompt. Lovely.
- But if I miss that window, then the 2nd iframe gets the camera instead, the 1st iframe gets nothing, and I get no 2nd prompt; unexpected.
I'm leaving this here in case it reveals something.
| Reporter | ||
Comment 4•6 years ago
|
||
Could this be what's affecting our feature policy web-platform-tests?
Updated•3 years ago
|
Updated•5 months ago
|
Description
•