Skip to content

fix: upgrade browser libraries with Playwright 1.64 compatibility - #5620

Merged
Gikoskos merged 3 commits into
mainfrom
fix/playwright-1.64-compatibility
Oct 13, 2026
Merged

Gikoskos merged 3 commits into
mainfrom
fix/playwright-1.64-compatibility

Conversation

@artiom

@artiom artiom commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Replaces #5617 with the compatibility changes required alongside playwright-core 1.64.0 and puppeteer-core 25.13.0.

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.

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.

Devin Review

@coderabbitai

coderabbitai Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Team
  • Run ID: 5ea740c9-1eea-44d4-ba68-40917041bd6a
📥 Commits

Reviewing files that changed from the base of the PR and between 3644e5b and 02b1874.

📒 Files selected for processing (1)
  • src/browsers/browsers.playwright.spec.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

Walkthrough

The default Playwright version advances to 1.64. Package aliases, Chromium disabled-feature lists, and tests are updated for the configured Playwright versions.

Changes

Playwright version update

Layer / File(s) Summary
Version mapping and feature lists
package.json, src/config.ts
The package mapping adds Playwright 1.64 and removes 1.59. The 1.64 disabled-feature list adds NetworkTimeServiceQuerying and AimEnabled.
Version mapping and feature tests
src/browsers/browsers.playwright.spec.ts
Tests derive the supported version window and package mappings from the installed core version and package.json. They check disabled-feature fallback and merged Chromium flags across configured versions.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 02b18

No merge-blocking issue was identified in the supplied changes; the Playwright feature tests cover the examined regression.

Pre-merge checks · Passed 5
Passed Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 2…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly summarizes the main changes: upgrading browser libraries and adding Playwright 1.64 compatibility.
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

A rabbit checks the version trail,
From sixty-three to sixty-four.
New flags join the Chromium list,
Tests check each mapped version’s door.
The burrow runs its checks once more.

Comment @coderabbitai help to get the list of available commands.

@artiom
artiom marked this pull request as ready for review October 13, 2026 12:16

artiom commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor Author

Verification is complete for the current head.

  • Local Node 24.21.0: TypeScript, ESLint, Prettier, 73 focused Playwright tests, and xvfb-run -a npm test (785 passing, 3 existing skips).
  • CI: Chrome, Chromium, Edge, Firefox, WebKit, multi-browser, leak-check, and lint all passed. Formatting, title validation, and CodeQL passed too. Dependabot automerge was skipped.
  • The tests derive the five-minor FIFO from installed core and compare mirrors with real Playwright argv. Routine minor-version rotations require no test-fixture edits; genuine upstream feature drift still fails.
  • Addressed three test gaps: stale mirrors after eviction, orphan dependency aliases, and lost version forwarding into the launch path. Each injected regression passed the previous tests and now fails the intended assertion. Follow-up review confirmed all three are closed without lost coverage. No implementation defect was found in the upgrade.
  • CodeRabbit's current-head review has no actionable findings; there are no unresolved review threads. Its optional ESLint installation timed out, but local ESLint and the dedicated CI lint job passed independently. No blocking or rejected findings remain.
  • The branch has no merge conflict and is ready for human review. Required human approval remains outstanding; nothing has been merged.

Dependency-only #5617 is closed and links here. This PR includes both dependency bumps, the five-version FIFO, version-specific Chromium feature mirrors, and generic regression tests.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@Gikoskos
Gikoskos merged commit 1e142fa into main Oct 13, 2026
16 checks passed
@Gikoskos
Gikoskos deleted the fix/playwright-1.64-compatibility branch October 13, 2026 14:48
artiom pushed a commit that referenced this pull request Oct 16, 2026
🤖 I have created a release *beep* *boop*
---


##
[2.57.1](v2.57.0...v2.57.1)
(2026-10-16)


### Bug Fixes

* make adblock release discovery resilient and update dependencies
([#5611](#5611))
([cddddc5](cddddc5))
* upgrade browser libraries with Playwright 1.64 compatibility
([#5620](#5620))
([1e142fa](1e142fa))
* **websocket:** send RFC 6455 close frame on mid-session timeout
([#5594](#5594))
([f7edf0f](f7edf0f))


### Build System & Runtime

* bump Node to 24.22.0 and npm to 11.21.1
([#5624](#5624))
([692f2d7](692f2d7))

---
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>
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.

3 participants