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

[ua-ch] Ensure UADataValues' entries are initially undefined #23548

Merged
merged 1 commit into from May 13, 2020

Conversation

chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented May 12, 2020

The UA-CH IDL [1] defines UADataValues as initially undefined.
That makes it so that if someone doesn't explicitly ask for a value,
the UADataValue object will not contain it.
This CL aligns the implementation with the spec.

[1] https://wicg.github.io/ua-client-hints/#interface

Bug: 1081837
Change-Id: I4c4abf19537796b2c192c70be0860b004892f734
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2196487
Commit-Queue: Yoav Weiss <yoavweiss@chromium.org>
Reviewed-by: Maksim Orlovich <morlovich@chromium.org>
Reviewed-by: Aaron Tagliaboschi <aarontag@chromium.org>
Reviewed-by: Domenic Denicola <domenic@chromium.org>
Cr-Commit-Position: refs/heads/master@{#768137}

Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

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

The review process for this patch is being conducted in the Chromium project.

@chromium-wpt-export-bot chromium-wpt-export-bot changed the title [ua-ch]Ensure UADataValues' entries are iniitially undefined [ua-ch] Ensure UADataValues' entries are initially undefined May 12, 2020
@chromium-wpt-export-bot chromium-wpt-export-bot force-pushed the chromium-export-cl-2196487 branch 3 times, most recently from 9ac6d44 to f09f1e9 Compare May 12, 2020 21:29
The UA-CH IDL [1] defines UADataValues as initially undefined.
That makes it so that if someone doesn't explicitly ask for a value,
the UADataValue object will not contain it.
This CL aligns the implementation with the spec.

[1] https://wicg.github.io/ua-client-hints/#interface

Bug: 1081837
Change-Id: I4c4abf19537796b2c192c70be0860b004892f734
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2196487
Commit-Queue: Yoav Weiss <yoavweiss@chromium.org>
Reviewed-by: Maksim Orlovich <morlovich@chromium.org>
Reviewed-by: Aaron Tagliaboschi <aarontag@chromium.org>
Reviewed-by: Domenic Denicola <domenic@chromium.org>
Cr-Commit-Position: refs/heads/master@{#768137}
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

2 participants