Steps to reproduce: 1. Visit http://jsbin.com/fegosaz 2. Click the link which will open a new window 3. Click allow to allow access to your microphone/camera 4. Wait to see yourself. 5. Close that tab 6. Click the link again 7. Click allow to allow access to your microphone/camera Result: You never see yourself. All subsequent calls to getUserMedia just timeout and don't respond. The red microphone icon appears in the URL bar but not the camera icon.
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.
<rdar://problem/42681448>
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