[Webkit-unassigned] [Bug 173081] New: navigator.mediaDevices should be instance of EventTarget

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 7 15:52:34 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=173081

            Bug ID: 173081
           Summary: navigator.mediaDevices should be instance of
                    EventTarget
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Macintosh
                OS: macOS 10.12
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Event Handling
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: stefanf at boinx.com

Overview:
navigator.mediaDevices does not implement EventTarget, although the current Media Capture specification draft states (in the WebIDL section below https://w3c.github.io/mediacapture-main/#mediadevices), that MediaDevices and thus navigator.mediaDevices inherits from the EventTarget.

Steps to Reproduce:
1. Open the Web Inspector on any page
2. Try using the EventTarget's methods (addEventListener...) on navigator.mediaDevices

Actual Result:
The desired methods are not available. navigator.mediaDevices instanceof EventTarget === false

Expected Result:
One can use addEventListener and removeEventListener to listen for the "devicechange" event.

Build Date & Hardware:
Safari TP 33 on macOS 10.12.5

-- 
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/20170607/709a0b85/attachment-0001.html>


More information about the webkit-unassigned mailing list