[Webkit-unassigned] [Bug 174041] New: Calling mediaDevices.enumerateDevices() changes enumerated device IDs in other open pages
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jun 30 14:41:32 PDT 2017
https://bugs.webkit.org/show_bug.cgi?id=174041
Bug ID: 174041
Summary: Calling mediaDevices.enumerateDevices() changes
enumerated device IDs in other open pages
Product: WebKit
Version: Safari Technology Preview
Hardware: Macintosh
OS: macOS 10.12.4
Status: NEW
Severity: Normal
Priority: P2
Component: Media Elements
Assignee: webkit-unassigned at lists.webkit.org
Reporter: lepinski at gmail.com
This appears to be a regression introduced in the most recent Safari Technology Preview (Release 34, 12604.1.27.0.1).
On load, call navigator.mediaDevices.enumerateDevices() and note the device IDs in the source list. Open a new page (leaving the first page open) that also makes an enumerateDevices call. Return to the first page and enumerate your devices again; their IDs will have changed. This appears to occur regardless of whether Page 1 and 2 are on the same or different domains.
The result of this bug is that when Page 1 attempts to then use an input device ID from its first enumeration as a getUserMedia constraint, the call will fail because the device ID is invalid.
navigator.mediaDevices.ondevicechange also not called when these device IDs change as a result of this.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170630/bd53885a/attachment-0001.html>
More information about the webkit-unassigned
mailing list