Skip to content

Conversation

bvandersloot-mozilla
Copy link
Contributor

Hello! We'd love to be able to test GPC in WPT! However to do so, we need to be able to turn it on and off. This adds this capability.

Link to PR against the GPC spec to add this: w3c/gpc#105

@bvandersloot-mozilla bvandersloot-mozilla requested a review from a team as a code owner August 21, 2025 17:27
@wpt-pr-bot wpt-pr-bot added docs infra testdriver.js wptrunner The automated test runner, commonly called through ./wpt run labels Aug 21, 2025
Copy link
Contributor

@jgraham jgraham left a comment

Choose a reason for hiding this comment

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

LGTM once the spec changes are merged.

body = {
"gpc": gpc,
}
return self.webdriver.send_session_command("POST", "privacy", body)
Copy link
Contributor

Choose a reason for hiding this comment

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

For bonus points you could put an API for this in tools/webdriver/webdriver/client.py and use that rather than directly calling the HTTP endpoints here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs infra testdriver.js wptrunner The automated test runner, commonly called through ./wpt run
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants