Repository navigation
fix: update Playwright to 1.63 with versioned compatibility - #5573
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (4)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. WalkthroughThe update adds Playwright 1.63 support, preserves version-specific Chromium feature mappings for Playwright 1.62, adds Chrome’s ChangesPlaywright and Chromium compatibility
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to This updates Playwright support through 1.63, retains the version-specific Chromium feature behavior for 1.62, and prevents Chrome first-run UI from interrupting CDP launches. The version-routing and feature boundaries are covered, with no remaining merge-readiness risk identified. Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
A rabbit reads each line, Comment |
|
Verification complete on the current head: all six browser-image test jobs pass, along with lint, formatting, leak checks, CodeQL and title validation. Overall check summary: 14 passing, 1 intentionally skipped Dependabot auto-merge job. CodeRabbit and Devin completed current-head reviews with no actionable findings; no review threads remain unresolved. No reviewer findings required fixes or rejection. The PR is conflict-free and awaiting human approval. The baseline-only local teardown timeout remains documented in the PR description; no hosted checks are failing or pending. |
🤖 I have created a release *beep* *boop* --- ## [2.56.6](v2.56.5...v2.56.6) (2026-09-09) ### Bug Fixes * allow numeric DNS names through IPv4 URL guards ([#5579](#5579)) ([499dba1](499dba1)) * block IPv4 prefixes without a trailing dot ([#5577](#5577)) ([e81e99c](e81e99c)) * update Playwright to 1.63 with versioned compatibility ([#5573](#5573)) ([5c80510](5c80510)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: browserless-actions-bot[bot] <186328842+browserless-actions-bot[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
) ## Summary Replaces #5617 with the compatibility changes required alongside `playwright-core` 1.64.0 and `puppeteer-core` 25.13.0. - Preserve the five-minor-version Playwright FIFO: retire 1.59, retain 1.60–1.62, move 1.63.0 to `playwright-1.63`, and map 1.64/default to core. This follows #5370, #5446, #5520, and #5573. - Mirror Playwright 1.64's added `NetworkTimeServiceQuerying` and `AimEnabled` disabled features without changing historical launch defaults. Keep 1.62's boundary-event feature and 1.60/1.61's `RenderDocument` behavior. - Derive the five-version FIFO from the installed core version and check that manifest mappings point to matching installed packages. Compare actual launch arguments for every mapped version, including the default; tests contain no release-number literals to maintain on future upgrades. ## Root cause All six browser-image jobs on #5617 fail the same drift test. Its unchanged `1.63 -> playwright-core` mapping loads 1.64 under the old label, while `Config.getChromiumDisabledFeatures` still returns 1.63's defaults. Playwright 1.64 adds two disabled features; Browserless's trailing `--disable-features` flag would otherwise re-enable them because Chromium keeps the last occurrence rather than merging flags. Updating only the default feature array would also leak 1.64-only features into the existing 1.62 override, which spread that array. This change preserves a separate 1.63 list and bases 1.62 on it. ## Upgrade impact Playwright's bundled Chromium advances from 153 to 156, Firefox from 155 to 157, WebKit from 26.6 to 27.2, and FFmpeg revision from 1011 to 1013. Its upstream visibility/device-screen behavior changes apply to callers; no corresponding Browserless API migration is needed. Puppeteer 25.13 leaves Chromium launch defaults unchanged and includes connection/cleanup fixes. Browserless selects browser executables through Playwright or the system Chrome/Edge installation, not Puppeteer's revision table. Version routing, `/meta`, and versioned WebSocket tests consume the dependency map. The Docker historical-browser installer discovers installed `playwright-1.*` alias directories; the FIFO test now checks that dependency aliases exactly match the map. Neither path requires a separate hard-coded version bump. The existing historical-browser installer remains functional; removing its now-unnecessary pre-1.60 extraction workaround is deferred rather than bundled into this upgrade. The WebKit pre-1.61 installation exclusion remains necessary. ## Verification - Reproduced the original drift failure with Dependabot's exact dependency diff. - TDD: new default-feature and FIFO-mapping assertions fail before the fix. - Full build and test-artifact build pass on Node 24.21.0. - Focused Playwright suite: 73 passing, including exact feature-mirror comparisons and the real Browserless launch path for every mapped version and default. - Generic-test validation: future windows 1.61–1.65 and 1.98–1.102 pass without test edits; four/six versions, gaps, misrouted aliases, and missing/leaked disabled features are rejected. - Added regression coverage for stale mirrors after eviction, orphan dependency aliases, and lost version forwarding during launch. Each mutation passed the previous tests and now fails the intended assertion; the unchanged implementation passes. The synthetic future-window checks test the assertions, not future runtime compatibility. - ESLint, Prettier, and diff whitespace checks pass. - Installed current Chrome/Edge and current/historical Chromium, Firefox, and supported WebKit binaries using the repository installer. - Full local `npm test` under Xvfb on Node 24.21.0: **785 passing, 3 pending**, no failures. The pending cases are existing Chrome/Edge ignored-arguments and Edge user-data-directory skips. - The replacement PR's browser-image CI matrix will verify Ubuntu 26.04 images; local verification ran on Debian 12. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Updates** * Updated the default Playwright and Puppeteer versions and added support for Playwright 1.64. * Refreshed Chromium disabled-feature settings for supported Playwright versions. * Removed support for Playwright 1.59. <!-- end of auto-generated comment: release notes by coderabbit.ai --> <!-- devin-review-badge-begin --> --- <a href="https://app.devin.ai/review/browserless/browserless/pull/5620" target="_blank"><picture><source media="(prefers-color-scheme: dark)" srcset="https://static.devin.ai/assets/gh-devin-review-dark.svg?v=4"><img src="https://static.devin.ai/assets/gh-devin-review-light.svg?v=4" alt="Devin Review"></picture></a> <!-- devin-review-badge-end --> --------- Co-authored-by: Amp <[email protected]>
Summary
playwright-1.62alias, retire 1.58, and update the version map used for routing and/meta.--no-first-runin CDP launches so Chrome 152 starts remote debugging even withignoreDefaultArgs: true.Follows the version-window maintenance in #5370, #5446, and #5520. The existing historical-browser installer remains unchanged because 1.59 still needs its compatibility workaround.
Verification
The pull request's browser-image CI matrix provides the final per-image verification.
Summary by CodeRabbit
Bug Fixes
Compatibility
Tests