DescriptionFix a crash by search event handler for <input type=search incremental>.
We had a crash in SearchInputType::didSetValueByUserEdit().
Dispatching a synchronous event here is dangerous. This CL makes the
non-standard 'search' event dispatching asynchronous in the following cases:
- The input value becomes empty.
- The form is submitted implicitly.
Basically 'search' event is triggered by input value changes, and is dispatched
asynchronously by a timer. So, the behavior change should be acceptable.
BUG=570427
TEST=automated
Committed: https://crrev.com/dd6acb021e38e8181684026899fdef556099e408
Cr-Commit-Position: refs/heads/master@{#365773}
Patch Set 1 : #
Messages
Total messages: 16 (9 generated)
|