commit | f96946c92bcf94ce9d31b8ffdcdfe81111af2ac9 | [log] [tgz] |
---|---|---|
author | Siye Liu <siliu@microsoft.com> | Wed Sep 04 04:19:25 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Sep 04 04:19:25 2024 |
tree | bc19a0270693b977da2e213137b42459381b539e | |
parent | 62afba0c73d2ea131ba2911f1140f8ceb62a585d [diff] |
don't insert spellcheck suggestion if beforeinput handler change content Beforeinput event and input event are fired when inserting spellchecker suggestions. However, beforeinput event handler may change content in target which can lead to suggestion inserting at wrong location. This CL adds a check after firing beforeinput event so that the insertion is abandoned if content is changed in the target. Bug: 362301043 Change-Id: I4b6282587f27c6749216edd13e9fde4e55c5988b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5811896 Commit-Queue: Siye Liu <siliu@microsoft.com> Reviewed-by: Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/main@{#1350585}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.