getUserMedia in sandboxed iframe stopped working in FF53 for camera (regression)!
Categories
(Core :: WebRTC: Audio/Video, defect, P2)
Tracking
()
People
(Reporter: jib, Unassigned)
References
()
Details
(Keywords: regression, stale-bug)
Attachments
(1 file)
|
11.27 KB,
patch
|
jib
:
review-
|
Details | Diff | Splinter Review |
| Reporter | ||
Comment 1•8 years ago
|
||
Updated•8 years ago
|
| Reporter | ||
Comment 2•8 years ago
|
||
| Reporter | ||
Comment 3•8 years ago
|
||
Comment 4•8 years ago
|
||
Updated•8 years ago
|
| Reporter | ||
Comment 5•8 years ago
|
||
| Reporter | ||
Comment 6•8 years ago
|
||
| Reporter | ||
Comment 7•8 years ago
|
||
Comment 8•8 years ago
|
||
Comment 9•8 years ago
|
||
Comment 10•8 years ago
|
||
Comment 11•8 years ago
|
||
| Reporter | ||
Comment 12•8 years ago
|
||
| Reporter | ||
Comment 13•8 years ago
|
||
| Reporter | ||
Updated•8 years ago
|
| Reporter | ||
Comment 14•8 years ago
|
||
| Reporter | ||
Comment 15•8 years ago
|
||
Comment 16•8 years ago
|
||
Comment 17•8 years ago
|
||
Comment 18•8 years ago
|
||
Comment 19•8 years ago
|
||
| Reporter | ||
Comment 20•6 years ago
|
||
Note that comment 0 is a bit confusing. As comment 2 points out, this bug is about sandboxed iframes without allow-same-origin (like stackoverflow and codepen, not jsfiddle).
STR:
Expected result:
NotAllowedError, I think?
With bug 1371741 fixed, this is what I get, and it matches Chrome.
Andrea, is this expected behavior? Is allow-same-origin generally required for allow attributes to work?
I half-expected allow="camera" to make camera work even in an isolated sandbox (though this might pose a unique challenge for our permission prompt: "who's asking?").
Comment 21•6 years ago
|
||
jib, please follow-up and close this is you think we're doing the right thing, maybe pasting here links to the relevant specs. I tried quickly searching but didn't find anything immediately so I stopped.
| Reporter | ||
Comment 22•6 years ago
•
|
||
I think the remaining question is, with the availability of the new wildcard form allow="camera *; microphone *" e.g. in https://jan-ivar.github.io/dummy/iframe_gum_sandbox_starcross_isolate.html, if we'd ever consider supporting getUserMedia in a sandboxed iframe without allow-same-origin. Since we're trying to get rid of * in the spec, maybe no.
The answer in bug 1371741 is no. This matches Chrome and Edge. Safari surprisingly supports it, but that doesn't seem like a good idea to me.
Other developments: codepen now appears to use allow-same-origin (see https://codepen.io/jib1/pen/QWwBgMz?editors=1010) so it works fine now.
I'm closing this. If anyone wants this behavior they need to open a new bug.
Description
•