| Summary: | Calling getUserMedia in a link that was opened with target="_blank" does not work the second time | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Adam <adam> | ||||||
| Component: | WebRTC | Assignee: | youenn fablet <youennf> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | anonymousert+1, commit-queue, eric.carlson, jonlee, webkit-bug-importer, youennf | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | Safari 11 | ||||||||
| Hardware: | iPhone / iPad | ||||||||
| OS: | iOS 11 | ||||||||
| Attachments: |
|
||||||||
|
Description
Adam
2018-07-26 19:05:57 PDT
Actually, getUserMedia does respond, it's just that the video never starts playing. If you call stop() on all of the tracks before you close the new window then everything is fine. It's as if the access to the video isn't cleaned up properly until you close the original tab that opened that link. Actually you can call stop on all of the tracks and then call getUserMedia again immediately as a workaround. Created attachment 354999 [details]
Patch
Time to check in? Comment on attachment 354999 [details] Patch Clearing flags on attachment: 354999 Committed r238873: <https://trac.webkit.org/changeset/238873> All reviewed patches have been landed. Closing bug. Created attachment 401326 [details]
Fix for getusermedia bug
|