Skip to content

[BUG] Opening links with target="_blank" crashes WebKit #2079

@alexduhanov

Description

@alexduhanov

Context:

  • Playwright Version: 0.16
  • Operating System: MacOS 10.15.4
  • Node version: 10.16.3
  • Browser: WebKit

Test:

await page.waitForSelector('"Click me"');
await page.click('"Click me"');

Page:

<a href="http://www.example.com" target="_blank">Click me</a>

Error thrown:

Error: 

    at Object.assert (/Users/alex/git/playwright-test/node_modules/playwright-core/lib/helper.js:288:15)
    at WKPage._onTargetCreated (/Users/alex/git/playwright-test/node_modules/playwright-core/lib/webkit/wkPage.js:226:22)
    at WKSession.emit (events.js:198:13)
    at Promise.resolve.then (/Users/alex/git/playwright-test/node_modules/playwright-core/lib/webkit/wkConnection.js:131:47)

Describe the bug

Attempting to open a link with target="_blank" seems to crash WebKit.

I've provided a repo where you should be able to recreate this:

https://github.com/alexduhanov/playwright-test

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions