fix(webview): support input for elements inside cross-origin `<iframe>` by dcrousso · Pull Request #41463 · microsoft/playwright · GitHub
Skip to content

fix(webview): support input for elements inside cross-origin <iframe>#41463

Open
dcrousso wants to merge 2 commits into
microsoft:mainfrom
dcrousso:fix-WKWebView-cross-origin-iframe-input
Open

fix(webview): support input for elements inside cross-origin <iframe>#41463
dcrousso wants to merge 2 commits into
microsoft:mainfrom
dcrousso:fix-WKWebView-cross-origin-iframe-input

Conversation

@dcrousso

Copy link
Copy Markdown
Contributor

this is layered on top of #41437

@dcrousso dcrousso requested review from pavelfeldman and yury-s June 25, 2026 15:05
dcrousso added 2 commits June 25, 2026 08:06
…`<iframe>`

leverage `elementFromPoint`, `getBoundingClientRect`, and `getComputedStyle` to manually compute the offsets of each ancestor `<iframe>`

also use existing infrastructure of `error:notconnected` to tell the caller to re-resolve the element in the parent context
@dcrousso dcrousso force-pushed the fix-WKWebView-cross-origin-iframe-input branch from 2bac9db to 4d7c0b8 Compare June 25, 2026 15:06
@github-actions

Copy link
Copy Markdown
Contributor

@github-actions

Copy link
Copy Markdown
Contributor

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.

1 participant