Skip to content

fix(chromium): re-apply touch emulation after screenshot beyond viewport - #42617

Merged
Pavel Feldman (pavelfeldman) merged 2 commits into
microsoft:mainfrom
pavelfeldman:fix-42607
Sep 8, 2026
Merged

Pavel Feldman (pavelfeldman) merged 2 commits into
microsoft:mainfrom
pavelfeldman:fix-42607

Conversation

@pavelfeldman

@pavelfeldman Pavel Feldman (pavelfeldman) commented Sep 8, 2026 •

Copy link
Copy Markdown
Member

Summary

Fixes #42607

@github-actions

This comment has been minimized.

@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Test results for "tests 1"

6 flaky ⚠️ [chromium-library] › library/popup.spec.ts:260 › should not throw when click closes popup `@chromium-ubuntu-22.04-arm-node20`
⚠️ [firefox-library] › library/browsercontext-cookies-third-party.spec.ts:257 › third party 'Partitioned;' cookies `@firefox-ubuntu-22.04-node20`
⚠️ [firefox-library] › library/browsercontext-cookies-third-party.spec.ts:470 › top level 'Partitioned;' cookie and same origin iframe `@firefox-ubuntu-22.04-node20`
⚠️ [firefox-page] › page/page-event-request.spec.ts:181 › should return response body when Cross-Origin-Opener-Policy is set `@firefox-ubuntu-22.04-node20`
⚠️ [firefox-page] › page/page-goto.spec.ts:90 › should work with Cross-Origin-Opener-Policy `@firefox-ubuntu-22.04-node20`
⚠️ [webkit-page] › page/page-request-gc.spec.ts:36 › should collect element retained by locator hit-target interceptor after detach `@webkit-ubuntu-22.04-node20`

51366 passed, 1247 skipped


Merge workflow run.

@pavelfeldman
Pavel Feldman (pavelfeldman) merged commit 8db8731 into microsoft:main Sep 8, 2026
42 of 44 checks passed
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Test results for "MCP"

2 failed
❌ [firefox] › mcp/annotate.spec.ts:446 › should switch screencast to -s session on show --annotate @mcp-windows-latest-firefox
❌ [firefox] › mcp/dashboard.spec.ts:139 › should allow typing in omnibox in interactive mode @mcp-windows-latest-firefox

8333 passed, 1376 skipped


Merge workflow run.

@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

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 flakes

The only real failures are two Firefox MCP tests, and both flake on unrelated SHAs. This PR only touches the Chromium screenshot path (crPage.ts), which those tests don't exercise. The 6 "flaky" entries in tests 1 all passed on retry, and the earlier cancelled run has nothing to triage.

Details

The diff re-sends Emulation.setTouchEmulationEnabled after a beyond-viewport capture in crPage.ts, plus a Chromium browsercontext-viewport test. That's Chromium-only and unrelated to the MCP annotate/dashboard flows on Firefox.

Pre-existing flake / infra

  • [firefox] › mcp/annotate.spec.ts:446 › should switch screencast to -s session on show --annotate — pre-existing flake. In the CI results DB it failed 40 of 714 runs (~6%) on firefox, across 47 distinct SHAs unrelated to this PR (it's green 727/727 on chrome, 729/729 on webkit). Firefox-only, in code the PR didn't touch.
  • [firefox] › mcp/dashboard.spec.ts:139 › should allow typing in omnibox in interactive mode — pre-existing flake, rarer: failed 1 of 717 firefox runs, on a SHA that isn't this PR's. Green everywhere else.

Neither failure reaches the touch-emulation change, so this PR is clear.

Triaged by the Playwright bot - agent run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: hasTouch emulation is lost after any screenshot captured beyond the viewport (Chromium)

2 participants