fix: prevent input actions on inert elements

Closed
SI
1mo ago
+48-1

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.