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

Remove oldList and make it clear that groupId scope is the document #617

Merged
merged 1 commit into from Sep 26, 2019

Conversation

youennf
Copy link
Contributor

@youennf youennf commented Aug 30, 2019

PR for #604.
This hopefully makes it clear that a groupId is stable for the lifetime of a document.
Previously, if a device groupId was not in oldList/resultList, it would need to be regenerated.

@@ -2913,13 +2913,6 @@ <h2>Methods</h2>
<li>
<p>Let <var>resultList</var> be an empty list.</p>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make "If [[storedDeviceList]] is not null, then let resultList be a copy of [[storedDeviceList]], and jump to the step labeled Complete Enumeration." say to do a deep copy instead of a copy?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could but this is not related to this particular issue.
This would partially fix #620.

@alvestrand
Copy link
Contributor

This means that enumerateDevices always returns new objects, so object-equals is never true between two calls to enumerateDevices.

@alvestrand alvestrand merged commit b33beee into w3c:master Sep 26, 2019
@youennf
Copy link
Contributor Author

youennf commented Oct 3, 2019

WPT tests: web-platform-tests/wpt#19488

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants