Skip to content

WebKit launchPersistentContext fails on Windows with 'Initial load failed' #39

@padamson

Description

@padamson

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions