Skip to content

fix: prevent input actions on inert elements - #42990

Closed
SivaShankar A V (sivashankarav) wants to merge 1 commit into
microsoft:mainfrom
sivashankarav:fix-inert-input-actions-42967
Closed

SivaShankar A V (sivashankarav) wants to merge 1 commit into
microsoft:mainfrom
sivashankarav:fix-inert-input-actions-42967

Conversation

@sivashankarav

Copy link
Copy Markdown

Summary

  • Treat inputs inside inert subtrees as non-editable so fill() waits instead of silently succeeding.
  • Reject focus on inert descendants before press() or type() can send keys to another focused element.
  • Add tests for fill, press, type, and behavior after removing inert.

Fixes #42967

Test plan

  • CRPATH=/usr/bin/google-chrome npm run ctest -- --project=chromium-page tests/page/page-fill.spec.ts tests/page/elementhandle-press.spec.ts --reporter=line (55 passed)
  • Firefox and WebKit tests not run: their browser executables are not installed in this checkout.

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]: methods fill()/press()/type() doesn't wait element to be focusable, when element inside inert container

2 participants