Repository navigation
Closed
Labels
Description
Version
1.56
Steps to reproduce
- Run
npx playwright wk https://playwright.dev - Click on "Get started"
- Press F5 (page reload) multiple times
- After a few attempts the browser crashes
~/workspace/codeceptjs/tests/s4w$ npx playwright wk https://playwright.dev
/home/mirao/workspace/codeceptjs/node_modules/.pnpm/[email protected]/node_modules/playwright-core/lib/utils/isomorphic/assert.js:26
throw new Error(message || "Assertion error");
^
Error: Assertion error
at assert (/home/mirao/workspace/codeceptjs/node_modules/.pnpm/[email protected]/node_modules/playwright-core/lib/utils/isomorphic/assert.js:26:11)
at WKPage._onTargetCreated (/home/mirao/workspace/codeceptjs/node_modules/.pnpm/[email protected]/node_modules/playwright-core/lib/server/webkit/wkPage.js:296:31)
at WKSession.emit (node:events:524:28)
at /home/mirao/workspace/codeceptjs/node_modules/.pnpm/[email protected]/node_modules/playwright-core/lib/server/webkit/wkConnection.js:139:41
Node.js v20.19.5
Expected behavior
No crash
Actual behavior
Browser crashes
Additional context
It happens even with our web app in E2E tests (CodeceptJS + Playwright), tested with the headless mode in a docker image (Ubuntu 24.04.3)
Playwright 1.55.1 isn't affected, so it's a regression in 1.56.
Environment
System:
OS: Linux 6.14 Ubuntu 24.04.3 LTS 24.04.3 LTS (Noble Numbat)
CPU: (16) x64 AMD Ryzen 7 9700X 8-Core Processor
Memory: 30.30 GB / 60.49 GB
Container: Yes
Binaries:
Node: 20.19.5 - /home/mirao/.nvm/versions/node/v20.19.5/bin/node
npm: 10.8.2 - /home/mirao/.nvm/versions/node/v20.19.5/bin/npm
pnpm: 9.15.9 - /home/mirao/.nvm/versions/node/v20.19.5/bin/pnpm
IDEs:
VSCode: 1.104.3 - /usr/bin/code
Languages:
Bash: 5.2.21 - /usr/bin/bashReacted by Yi Yang, Felipe K. De Boni, Gernot Raudner, simdyn, Matt, Liakhovskyi Vladyslav and Ethan Jaynes
Activity
mirao commentedon Oct 8, 2025
This is a debug output (
DEBUG=pw:api,pw:browser) from our test when the browser crashes:Skn0tt commentedon Oct 8, 2025
Thanks, can also reproduce this on macOS using the manual method you provided. I'm not able to come up with a programmatic way of triggering it, but it seems like you have? If yes, could you share a small test snippet that triggers the crash?
Skn0tt commentedon Oct 8, 2025
This seems to be where it regressed: #37473
mirao commentedon Oct 8, 2025
Simon Knott (@Skn0tt) My test runs in our private environment (and in CodeceptJS only, not in pure Playwright). However Copilot created for me a test that triggers the crash. Follow https://gist.github.com/mirao/707670c2378576f940c518b6e85b0794
yury-s commentedon Oct 8, 2025
Stack trace:
yury-s commentedon Oct 8, 2025
This may have something to do with the WebKit roll on Sep 15 and in particular this change WebKit/WebKit@5158da1 which is related to the upstream changes WebKit/WebKit#50566 and WebKit/WebKit#50613
yury-s commentedon Oct 8, 2025
Filed upstream https://bugs.webkit.org/show_bug.cgi?id=300402
Pin version of Playwright to 1.55.0
AndyLysenko commentedon Oct 13, 2025
+1
I also can reproduce it with simple reload in test
Avoid broken playwright version . microsoft/playwright#37766
NextJS 16 and housekeeping (#163)
1.56.1 has webkit issue microsoft/playwright#37766
playwright
3 remaining items
Unfork downstream change introduced to fix microsoft/playwright#37766
Smrtnyk commentedon Nov 7, 2025
is it possible to rollback webkit to last working version and release a new minor?
playwright 1.56 is basically unusable for us now
yury-s commentedon Nov 10, 2025
The issue was fixed upstream in WebKit/WebKit#53102 and the fix is gonna be included in 1.57. Closing as we are not planning to push a different browser binary in a patch release.
Smrtnyk commentedon Nov 11, 2025
I just want to point out that you released playwright version with a very faulty browser binary.
There were many reverts from playwright 1.56 to older versions, as you can see on linked issues.
I don't think this issue should be closed just like that and that version 1.56 should be kept as it is on npm, but who am I to judge.
Ignore playwright version 1.56 with dependabot
test: add regression test for page.reload() crash in WebKit
chumba-wamba commentedon Nov 20, 2025
I can reproduce it with reloads,
waitForEvent('download'), etc. We would want to use 1.56 since it addresses a couple of high security vulnerabilities.Update playwright to v1.57.0
Update playwright to v1.57.0 (#17)
test(e2e): mobile Sentry Snapshot streams + fix WebKit notification l…
Update Playwright to fix upstream WebKit reload crash and verify move…
Rückmeldungen je Termin manuell anfordern, korrigieren und am Icon ma…
ci: use Playwright 1.57 with the upstream WebKit reload fix
Playwright 1.57.0: WebKit-Absturz beim wiederholten Neuladen behoben;…