-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Device enumeration spec-ed to hang #903
Comments
This is a parallel step, so the browser doesn't hang. The promise is just not settled yet. Firefox waits until "the relevant global object's associated Document is fully active" and the browser window has OS-level focus. |
Not settling the promise means the following code would "hang", in that it never continues execution past const devices = await navigator.mediaDevices.enumerateDevices();
doUsefulThings(devices); No implementation I aware of actually follows this algorithm. The promise is settled in all of them. |
Seems like we need to have an UMA to figure out whether this anti-tracking feature will break websites. |
Firefox implemented this a year ago. Not continuing execution past |
I filed https://bugs.webkit.org/show_bug.cgi?id=245864 to keep track of this work in WebKit. |
Substantive discussion seems to be occuring in #905. Closing this as a duplicate thread. |
But the
device enumeration can proceed
check can return false, in which case... we should hang indefinitely? This does not seem to match the implementation in Chromium, Safari or Firefox. It also seems unreasonable. Am I misreading this?The text was updated successfully, but these errors were encountered: