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

[Gecko Bug 1710605] Consistenly serialize list values as unquoted where possible #29441

Merged
merged 2 commits into from Jul 5, 2021

Conversation

moz-wptsync-bot
Copy link
Collaborator

We were previously constructing some expected values as a list of
StringNode objects due to make_value_node incorrectly calling
make_node for list items. This is wrong as StringNode types can only
be on the lhs of an expression (e.g. if os == "linux") but never on
the right hand side (which is always a ValueNode or ListNode with ValueNode
children).

StringNodes are always serialized with quotes and this was causing
values to flip flop between quoted and unquoted forms in some cases.

Differential Revision: https://phabricator.services.mozilla.com/D115259

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1710605
gecko-commit: c12ba7e19c6f5bc427bb3c49639801c7200a262f
gecko-reviewers: whimboo

We were previously constructing some expected values as a list of
StringNode objects due to make_value_node incorrectly calling
make_node for list items. This is wrong as StringNode types can only
be on the lhs of an expression (e.g. if os == "linux") but never on
the right hand side (which is always a ValueNode or ListNode with ValueNode
children).

StringNodes are always serialized with quotes and this was causing
values to flip flop between quoted and unquoted forms in some cases.

Differential Revision: https://phabricator.services.mozilla.com/D115259

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1710605
gecko-commit: c12ba7e19c6f5bc427bb3c49639801c7200a262f
gecko-reviewers: whimboo
Differential Revision: https://phabricator.services.mozilla.com/D118162

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1710605
gecko-commit: 4ee05dc03d18644efbc03f017c346b27580d6dda
gecko-reviewers: whimboo
@wpt-pr-bot wpt-pr-bot added infra wptrunner The automated test runner, commonly called through ./wpt run labels Jun 21, 2021
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 Firefox project.

@jgraham jgraham closed this Jul 5, 2021
@jgraham jgraham reopened this Jul 5, 2021
@jgraham jgraham merged commit 80eb48c into master Jul 5, 2021
@jgraham jgraham deleted the gecko/1710605 branch July 5, 2021 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infra mozilla:gecko-sync wptrunner The automated test runner, commonly called through ./wpt run
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants