Skip to content

Make "Set Global Privacy Control" function consistent with TestDriver - #152

Merged
arichiv merged 2 commits into
mainfrom
arichiv-patch-1
Sep 17, 2026
Merged

arichiv merged 2 commits into
mainfrom
arichiv-patch-1

Conversation

@arichiv

@arichiv arichiv commented Aug 5, 2026 •

Copy link
Copy Markdown
Member

@arichiv arichiv self-assigned this Aug 5, 2026
@arichiv arichiv changed the title Make "Set Global Privacy Control" function consistent with implementa… Make "Set Global Privacy Control" function consistent with TestDriver Aug 5, 2026
@arichiv
arichiv requested a lite review from Copilot August 5, 2026 16:01

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the spec for the “Set Global Privacy Control” WebDriver extension command to match Web Platform Tests (TestDriver) expectations by returning the updated GPC state instead of null.

Changes:

  • Update the command description to note that it returns a result.
  • Change the remote end steps to construct and return a JSON object containing the resulting gpc value.
Suppressed comments (1)

index.html:566

  • Return [=success=] with data result. reads like returning the literal string "result" (and it also introduces the unusual "JSON [=Object=]" phrasing). Since result is an algorithm variable (|result|), return the variable and use consistent "JSON object" terminology.
        <li><p>Let |result| be a JSON [=Object=] with property "<code>gpc</code>" set to |gpc|.
        <li><p>Return [=success=] with data `result`.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread index.html Resolved
@w3c w3c deleted a comment from braxtonmoore126-specs Sep 5, 2026
@arichiv

arichiv commented Sep 7, 2026

Copy link
Copy Markdown
Member Author

@bvandersloot-mozilla have time to take a look?

@arichiv
arichiv requested a review from j-br0 September 11, 2026 11:08
@arichiv

arichiv commented Sep 11, 2026

Copy link
Copy Markdown
Member Author

@j-br0 have time to take a look?

@arichiv arichiv added the agenda+ Request to add this issue to the agenda of our next telcon or F2F label Sep 16, 2026
@pes10k
pes10k self-requested a review September 17, 2026 18:16

@pes10k pes10k left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm, thanks!

@arichiv
arichiv merged commit 1b29843 into main Sep 17, 2026
1 check passed
@arichiv
arichiv deleted the arichiv-patch-1 branch September 17, 2026 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agenda+ Request to add this issue to the agenda of our next telcon or F2F

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inconsistency in set_global_privacy_control spec vs TestDriver implementation

3 participants