Repository navigation
fix: route frame control presses through their owning page - #4691
Merged
Merged
Conversation
Keep the coordinate-based press introduced in #3772 to avoid Chromium 156's preparatory scroll, but use Frame.page for pointer and touch input. Locator bounding boxes already use the main viewport, so child control selection stays in its document without translating coordinates. Both affected inspection tests fail with AttributeError before the change and pass after it. The focused top-level inspection and small-screen map mouse/touch cases also pass (5 cases total). Closes #4669
This was referenced Oct 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The coordinate-based press helper introduced by #3772 sent input through its document argument, but a Playwright
Framehas no mouse or touchscreen. The helper now uses the frame's owning page for input while keeping the locator scoped to the child document. Bounding boxes already use main-viewport coordinates, preserving the visible-control route that avoids Chromium 156's preparatory scrolling.Both affected inspection tests reproduce the
AttributeErrorbefore the change and pass after it, verifying child-document arrival and the manual diagnostics-copy route. The selected top-level inspection and small-screen map mouse/touch cases also pass: 5 cases total. Ruff and Python compilation pass.Closes #4669 — automated triage