Skip to content

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

Open
arichiv wants to merge 1 commit into
mainfrom
arichiv-patch-1
Open

Make "Set Global Privacy Control" function consistent with TestDriver#152
arichiv wants to merge 1 commit 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
Comment on lines 552 to +553
<p>The <dfn class="export">Set Global Privacy Control</dfn> [=extension command=] modifies the
[=do-not-sell-or-share preference=] for the current session.
[=do-not-sell-or-share preference=] for the current session and returns the result.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inconsistency in set_global_privacy_control spec vs TestDriver implementation

2 participants