fix: prevent input actions on inert elements
Closed
SI
1mo ago+48+48+01234567890123456789-1-1-0123456789
Summary
- Treat inputs inside inert subtrees as non-editable so
fill()waits instead of silently succeeding. - Reject focus on inert descendants before
press()ortype()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.