Skip to content
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

Should a devicechange event be fired when the list of devices stays the same #565

Closed
youennf opened this issue Jan 25, 2019 · 0 comments · Fixed by #618

Comments

@youennf
Copy link
Contributor

commented Jan 25, 2019

Let's say page A is loaded.
Another page B is loaded and A is backgrounded.
User plugs camera to use it for B.
User unplugs camera.
User closes B.
Page A goes in the foreground.

At that point, it is not clear whether a devicechange event should be fired for page A or not.
If a devicechange event is fired, this leaks a small amount of information to the web page unnecessarily.

In general, if the browser ensures that there is no change between the old storedDeviceList and the newly computed one, it seems useless to generate an event that might trigger unnecessary processing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.