Description
launchPersistentContext fails on WebKit with Playwright driver 1.56.1 on macOS ARM64 (and previously on Windows).
Error
Protocol error (Playwright.setDownloadBehavior): Browser started with no default context
The error originates in wkBrowser.js — WebKit's browser process starts but doesn't create a default browsing context, so when the server calls Playwright.setDownloadBehavior during WKBrowserContext._initialize, there's no context to configure.
Stack trace
at WKSession.send (wkConnection.js:104:12)
at WKBrowserContext._initialize (wkBrowser.js:194:49)
at WKBrowser.connect (wkBrowser.js:72:45)
at WebKit.connectToTransport (webkit.js:47:39)
at WebKit._innerLaunch (browserType.js:137:48)
at WebKit.launchPersistentContext (browserType.js:86:23)
Current workaround
Skipped the WebKit portion of test_launch_persistent_context_cross_browser integration test.
Resolution path
- Check if newer Playwright server versions fix this
- May be resolved by upgrading the bundled driver beyond 1.56.1
Description
launchPersistentContextfails on WebKit with Playwright driver 1.56.1 on macOS ARM64 (and previously on Windows).Error
The error originates in
wkBrowser.js— WebKit's browser process starts but doesn't create a default browsing context, so when the server callsPlaywright.setDownloadBehaviorduringWKBrowserContext._initialize, there's no context to configure.Stack trace
Current workaround
Skipped the WebKit portion of
test_launch_persistent_context_cross_browserintegration test.Resolution path