Repository navigation
fix(chromium): re-apply touch emulation after screenshot beyond viewport - #42617
Conversation
This comment has been minimized.
This comment has been minimized.
Test results for "tests 1"6 flaky51366 passed, 1247 skipped Merge workflow run. |
8db8731
into
microsoft:main
Test results for "MCP"2 failed 8333 passed, 1376 skipped Merge workflow run. |
|
Hi, I'm the Playwright bot and I took a look at this PR's CI failures. 🟢 CI is clear — both failures are pre-existing flakesThe only real failures are two Firefox MCP tests, and both flake on unrelated SHAs. This PR only touches the Chromium screenshot path ( DetailsThe diff re-sends Pre-existing flake / infra
Neither failure reaches the touch-emulation change, so this PR is clear. Triaged by the Playwright bot - agent run |
Summary
Page.captureScreenshotwithcaptureBeyondViewport: truepushes WebPreferences, and Blink'sApplyWebPreferencesoverwrites the emulatedmax_touch_points, sonavigator.maxTouchPointsdrops to 0 after any full-page or beyond-viewport element screenshot.Emulation.setTouchEmulationEnabledafter such a capture when the context hashasTouch.Fixes #42607