Add Chrome mask test to autowebcompat-repro agent#6226
Merged
Conversation
aeeaf14 to
482f326
Compare
Contributor
Author
There was a problem hiding this comment.
Pull request overview
This PR adds support for running a “Chrome Mask” (Chrome UA spoofing) experiment as part of the autowebcompat-repro agent flow by provisioning a Firefox profile with the Chrome Mask extension installed and enabling the DevTools MCP privileged-context features needed to manage/verify the extension.
Changes:
- Add
setup_profile.pyto build a Firefox profile and preinstall AMO extensions (used for Chrome Mask). - Extend DevTools MCP server config to optionally enable privileged-context tools + system access env var.
- Update agent result schema and system prompt to include/report
chrome_mask_fixedand document the Chrome Mask procedure.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| agents/autowebcompat-repro/hackbot_agents/autowebcompat_repro/setup_profile.py | New helper to download/install AMO XPI(s) into a profile and warm-launch Firefox to register them. |
| agents/autowebcompat-repro/hackbot_agents/autowebcompat_repro/result.py | Adds chrome_mask_fixed field to the structured result model/schema. |
| agents/autowebcompat-repro/hackbot_agents/autowebcompat_repro/prompts/system.md | Updates instructions to run the Chrome Mask test only after baseline reproduction and to verify UA spoofing. |
| agents/autowebcompat-repro/hackbot_agents/autowebcompat_repro/devtools_mcp.py | Adds enable_privileged_context option and wires --enable-privileged-context + env var. |
| agents/autowebcompat-repro/hackbot_agents/autowebcompat_repro/agent.py | Plumbs optional chrome_mask_profile through to DevTools MCP config and privileged-context toggle. |
| agents/autowebcompat-repro/hackbot_agents/autowebcompat_repro/main.py | Installs Firefox Nightly and now builds/passes a Chrome Mask preinstalled profile into the agent run. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
jgraham
suggested changes
Jun 23, 2026
3886492 to
fb3ef6d
Compare
suhaibmujahid
previously approved these changes
Jun 29, 2026
jgraham
approved these changes
Jun 29, 2026
Contributor
Author
|
@suhaibmujahid could you merge / enable automerge for this as well, please? |
007b67f to
a602fef
Compare
Member
|
The linter errors seem unrelated. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds a script that creates a profile and installs Chrome mask extension from AMO and passes the profile to devtools MCP.