Skip to content

Automate porting, testing and releasing; puppeteer-core 25.14.0 and playwright-core 1.64.1 - #131

Merged
rebrowsernet merged 4 commits into
mainfrom
release/2026-10
Oct 17, 2026
Merged

rebrowsernet merged 4 commits into
mainfrom
release/2026-10

Conversation

@rebrowsernet

@rebrowsernet rebrowsernet commented Oct 17, 2026 •

Copy link
Copy Markdown
Collaborator

Brings the patches up to date and automates the port → test → release cycle.

Patches

  • puppeteer-core 25.14.0 and playwright-core 1.64.1 (plus the 1.64.0 beta that the Python package embeds), stored per version under patches/<package>/<version>/. The old 24.8.1 / 1.52.0 patches are kept.
  • Each patch is verified: the npm tarball plus the patch reproduces a clean patched build byte for byte.
  • New: navigator.webdriver is hidden via --disable-blink-features=AutomationControlled (REBROWSER_PATCHES_WEBDRIVER_FIX=0 turns it off).
  • Playwright fixes: setContent, the alwaysIsolated $eval/locator hangs, per-frame context reset on navigation, concurrent evaluates, non-Chromium pages.

CLI

  • Picks the patch for the installed version, falls back to the closest one with a warning, refuses to half-apply.
  • Fixes already-patched detection with newer GNU patch output.
  • The npm package now ships only the patcher and the patches of supported versions; the build fails if that drifts from release/versions.json.

Automation

  • release/: port, build, Python wheels, publish (npm/PyPI trusted publishing), mirror.
  • tests/: detection (with unpatched controls), 22 functional scenarios, webdriver, smoke, Python.
  • .github/workflows/ci.yml (this PR) and release.yml (runs on v* tags only).
  • release/README.md lists the release tooling.

Nothing is published by this PR; publishing happens only when a v* tag is pushed.

…5.14.0 and playwright-core 1.64.1

- patches/<package>/<version>/: per-version patches for puppeteer-core 24.8.1 and 25.14.0, playwright-core
  1.52.0 and 1.64.1, plus the 1.64.0 beta that the Python package embeds. The CLI picks the patch for the
  installed version and refuses to half-apply.
- Hide navigator.webdriver by adding --disable-blink-features=AutomationControlled to the default launch
  args (merged with user flags; REBROWSER_PATCHES_WEBDRIVER_FIX=0 turns it off).
- Playwright: fix setContent and the alwaysIsolated $eval/locator hangs, drop contexts per frame on
  navigation, dedupe concurrent context creation, skip the patch on non-Chromium pages.
- CLI: detect already-patched packages with newer GNU patch wording.
- release/: port, build, Python wheel, publish (npm and PyPI trusted publishing) and mirror scripts.
- tests/: detection, scenarios, webdriver, smoke and Python suites with unpatched controls.
- .github/workflows: ci.yml and release.yml.
- The npm package ships only the patcher and the patches of supported versions.
- Mark enableDisable mode as not recommended, add LICENSE, bump version to 1.1.0.
build-python wrote the wheels to dist/ while the workflows looked in dist-py/, so the Python
suite was silently skipped (CI still passed) and a release would have failed to stage the PyPI
wheels. Build the wheels into dist-py/, list all five suites explicitly so a missing input fails
the run, read the target versions from release/versions.json (release/ci-env.mjs) instead of
hard-coding them, and stage only publishable npm tarballs for the release.
npm trusted publishing adds provenance automatically, and npm rejects a publish whose
package.json repository doesn't match the repo the workflow runs in. The four drop-in
packages pointed at their mirror repos, so the first publish would have failed. Point them at
rebrowser-patches (their real source) and fail the build if any npm package doesn't.
…ding Python

Each drop-in repo gets a branch per version with the unmodified upstream as the first commit
and the published package as the second, so GitHub's diff of the second commit is exactly our
change (the layout the mirror repos already used). Also mirrors rebrowser-playwright-python from
the source tree build-python.mjs built the wheels from. Without --yes it only builds the
branches locally; existing remote branches are never touched.
@rebrowsernet
rebrowsernet merged commit b5cb226 into main Oct 17, 2026
1 check passed
@rebrowsernet
rebrowsernet deleted the release/2026-10 branch October 17, 2026 05:16
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.

2 participants