Skip to content

fix(browser): bump playwright-go to v0.6000.0 (playwright 1.60.0) - #1537

Open
maxtortime wants to merge 1 commit into
Versent:masterfrom
figurecurator:fix/playwright-go-1.60-modern-browsers
Open

maxtortime wants to merge 1 commit into
Versent:masterfrom
figurecurator:fix/playwright-go-1.60-modern-browsers

Conversation

@maxtortime

Copy link
Copy Markdown

The pinned playwright-go v0.4702.0 ships driver 1.47.2, which can no longer drive current Chromium-based browsers:

  • Launching the system browser (--browser-type msedge, Edge 151) fails: the browser process exits immediately with code 0 and playwright reports "Target page, context or browser has been closed". Reproduced with plain playwright-core 1.47.2/1.48.2/1.50.1/1.52.0; 1.55.1 and 1.60.0 drive the same browser fine.
  • The bundled fallback (Chromium 129) does not start at all on recent Windows builds: "the application has failed to start because its side-by-side configuration is incorrect" (activation context for the private assembly 129.0.6668.29). Chromium 140 starts normally.
  • The 1.47.2 driver archive is no longer served: the download host playwright.azureedge.net returns 404 for builds/driver/playwright-1.47.2-win32_x64.zip, so download_browser_driver = true cannot recover either.

Together this leaves the Browser provider with no working browser on an up-to-date machine. Bumping to playwright-go v0.6000.0 (driver 1.60.0) restores it.

The only source change required is BrowserContext.StorageState, which now takes an options struct instead of a path string.

Verified on Windows 11 with Microsoft Entra ID (Azure AD) SSO: saml2aws login --browser-type msedge completes the SAML flow, and the saved storage state is reused so subsequent logins skip MFA.

The pinned playwright-go v0.4702.0 ships driver 1.47.2, which can no
longer drive current Chromium-based browsers:

- Launching the system browser (`--browser-type msedge`, Edge 151)
  fails: the browser process exits immediately with code 0 and
  playwright reports "Target page, context or browser has been closed".
  Reproduced with plain playwright-core 1.47.2/1.48.2/1.50.1/1.52.0;
  1.55.1 and 1.60.0 drive the same browser fine.
- The bundled fallback (Chromium 129) does not start at all on recent
  Windows builds: "the application has failed to start because its
  side-by-side configuration is incorrect" (activation context for the
  private assembly 129.0.6668.29). Chromium 140 starts normally.
- The 1.47.2 driver archive is no longer served: the download host
  playwright.azureedge.net returns 404 for
  builds/driver/playwright-1.47.2-win32_x64.zip, so
  `download_browser_driver = true` cannot recover either.

Together this leaves the Browser provider with no working browser on an
up-to-date machine. Bumping to playwright-go v0.6000.0 (driver 1.60.0)
restores it.

The only source change required is BrowserContext.StorageState, which
now takes an options struct instead of a path string.

Verified on Windows 11 with Microsoft Entra ID (Azure AD) SSO:
`saml2aws login --browser-type msedge` completes the SAML flow, and
the saved storage state is reused so subsequent logins skip MFA.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.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.

1 participant