Repository navigation
Playwright 1.65.0: bundled Chromium 158 drops the distrusted eMudhra root (#3338) - #4087
Merged
Merged
Conversation
…root (#3338) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
…n backport Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
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.
What changed
BROWSER.md: the eMudhra root gap (#3338) moves from a known gap to closed, because Playwright 1.65.0's Chromium 158 no longer carries the root.
Before/after as text: BROWSER.md: the eMudhra root gap (#3338) moves from a known gap to closed, because Playwright 1.65.0's Chromium 158 no longer carries the root
package.jsonnow says^1.65.0, andbun.lockpinsplaywrightandplaywright-coreat 1.65.0. The bundled Chromium and headless shell move from 156.0.8078.4 to 158.0.8127.18.patches/[email protected]replaces the 1.64.1 patch. It keeps the windowsHide hunk aswindowsHide: true. The TcpPortRandomizationWin hunk is gone because 1.65.0 ships that fix itself (fix(chromium): disable TCP port randomization on Windows microsoft/playwright#43605).playwright-core-patch.test.tsfails when either bundled browser is older than 158.0.8115.0.bundled-chromium-root-store.test.tsruns on Linux: it scans both installed binaries, fails if either still carriesemSign ECC Root CA - G3, and requiresISRG Root X1as a positive control./setup-browser-cookies(its template and generated SKILL.md) now describe the gap as closed. The native cookie qualification pin moves to 1.65.0.docs/PROJECT_STRUCTURE.mddrops the stale backport note; the /ship docs audit made that edit in b78ac13.Why
"Chrome removed emSign ECC Root CA - G3" (#3338). That root signed eight eMudhra intermediates whose keys were compromised. gstack's headless browser gets no CRLSet, so its compiled root store is its only defense, and Chromium 156 still trusted that root. With Chromium 158 the bundled browser refuses those certificates.
Blast radius
This changes a shipped dependency and the browser every browse-based skill drives. The 1.65.0 tarballs' integrity hashes in
bun.lockmatch whatnpm view [email protected] dist.integrityandnpm view [email protected] dist.integrityreturn (script ran). CI's free suite passed at this exact tree: run 42254806829, 35991 tests. The installed browse binary loaded example.com with a 200 and refused the eMudhra test host withERR_CERT_AUTHORITY_INVALID(repro below). Upgraded installs need./setupto download Chromium revision 1254; the setup launch probe triggers that download when the revision is missing (file:line read by two reviewers).Approvals
No approvals recorded for branch capy/gst-1652-playwright-1-65.
Summary
Fixes the trust gap in #3338 by moving to Playwright 1.65.0, whose Chromium 158 no longer carries the distrusted eMudhra root. The Windows windowsHide patch is re-cut for the new version, and new free tests fail if the bundled Chromium falls back below 158.0.8115.0 or still carries the root.
Test Coverage
All new code paths have test coverage (Step 7 audit, audit-only).
Tests: 1739 → 1739 (+0 new in this /ship run; the lane added the two test files before /ship)
Coverage: 100% value-weighted (100% including 0 weakly covered paths)
Test value: 0 tests written, 0 rejected by the authoring gate, 0 existing tests extended, 0 paths weakly covered (weak = ★, gate-failing or unrated).
Tests ran: free 1614 (files; carried from CI run 42254806829, 35991 tests)
Pre-Landing Review
Pre-Landing Review: 1 issues — 0 auto-fixed, 0 asked (0 fixed, 0 skipped), 0 deferred, 1 noted
Step 11 (adversarial): 4 findings, all below the floor and noted; 0 fixed, 0 deferred.
REVIEW_LOOP: passes=1 blocking_found=0 deferred=0 noted=1 fixed=0 scope=frozen ledgers_read=3 dispatches=4
Gate edits: none detected (5 listed, 3 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)
The full panel ran on the whole diff at 89c7670: a batched specialist (testing, security, state-machines), the Red Team, the native adversarial reader and an outside voice (openai/gpt-6.1-sol on a host subagent, completed). The specialists, the Red Team and the outside voice returned no findings. The native adversarial reader returned 4 Low findings, all
Blocks: no. The security read covered TLS trust (Chromium 158.0.8127.18 for both bundled builds), the patch hunk (forcingwindowsHide: trueoverrides only the ffmpeg recorder, which already passes true) and the supply chain (lockfile integrity matches npm).Outside review: completed, no findings (openai/gpt-6.1-sol host subagent).
Review notes
Below the blocking floor; recorded here and not fixed in this PR.
.github/dependabot.yml:16The dependabot ignore comment still calls the Playwright 1.64 migration pending (build(deps): bump the production-dependencies group across 1 directory with 4 updates #2923). The ignore rule is still correct, because the patch is still keyed to one version. (core and adversarial-native)browse/src/cookie-import-native.ts:112Windows native-cookie qualification receipts must match the exact Playwright version, so 1.64.1 receipts no longer qualify. This fails closed, andcookie-import-native-qualification.jsonis[]on main, so no shipped receipt is lost. (adversarial-native)package.json:80Pre-existing: with a^1.65.0range and an exactpatchedDependencieskey, a Dependabot patch bump would drop the windowsHide patch.playwright-core-patch.test.tscatches that in CI. (adversarial-native)changelog.d/capy-gst-1652-playwright-1-65.md:3The root-store scan runs on Linux only. On macOS only the 158.0.8115.0 version floor guards, so the "or still carries the root" clause is Linux-only. (adversarial-native)changelog.d/gst-1631-browse-audit-redaction_scope.md. That came from a two-dot diff against origin/main, which moved after the branch was cut. The merge-base diff does not touch that file.Exploratory QA
Surface: functional (the shipped
browse/dist/browseCLI against public hosts). Smoke budget: 300 s, 2 probes, both pass (checkpoint 002).browse goto https://example.com/Navigated to https://example.com/ (200)browse goto https://dv-g3b-emudhra.we-have-a-problem.com/net::ERR_CERT_AUTHORITY_INVALIDLimits: only the Linux headless shell was probed. Headed full Chromium is covered by
bundled-chromium-root-store.test.tsand by the lane's earlier A/B run. Windows and macOS were not probed.Design Review
No frontend files changed — design review skipped.
Eval Results
Eval selector (
bun run eval:select, PR profile, full-fallback because BROWSER.md and the patch are unknown dependencies): 0 PR-pass cases selected ("No quick live coverage"). The selected behaviors and the deferred setup-browser-cookies prompt checks are scheduled/release coverage. No paid eval ran; spend $0 of the $10 cap.Review bot comments
No review bot comments.
Scope Drift
Scope Check: CLEAN. Intent: upgrade Playwright so the bundled Chromium stops trusting the removed eMudhra root (#3338). Delivered: the 1.65.0 bump, the re-cut patch, regression tests, docs and the qualification pin.
Plan Completion
Plan completion audit: not run (no plan is bound to this branch and no docs/designs/ file matches). Fix: add "Plan: " to the PR body, or run /autoplan.
Issues
Refs #3338
Verification Results
No plan-specific verification items (no plan bound). The automatic diff-scoped QA above passed 2 of 2.
TODOS
No TODO items completed in this PR.
Documentation
Status: current. The branch's docs already match the Playwright 1.65.0 upgrade.
Scope: committed diff main...89c7670 (12 files) plus the unstaged docs/PROJECT_STRUCTURE.md edit, and a search of all tracked .md/.tmpl files for stale Playwright, Chromium and patch references.
Coverage debt: none. Diagram drift: none.
Test plan
bun run test): carried from CI run 42254806829 at tree 0bff0527d53f, 35991 tests, 0 failedbun test browse/test/playwright-core-patch.test.ts browse/test/bundled-chromium-root-store.test.ts: 8 pass, 0 failbun run build: ok🤖 Generated with Claude Code