| commit | 3cc7d3af70d25da8b3e6a33aa7b69ba724aef820 | [log] [tgz] |
|---|---|---|
| author | Christoph Schwering <schwering@google.com> | Fri Aug 26 21:22:29 2022 |
| committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Aug 26 21:22:29 2022 |
| tree | 45aaa203d53c22b22bd7ee01b72c4e76d8e4aa66 | |
| parent | 0bb10aef2fc28687a7fb6f6bf9b11b94938a3df5 [diff] |
[Autofill] Weaken necessary condition for asynchronous reparse. This CL weakens the necessary condition CachedFormNeedsUpdate(): if a <select> field's options have changed, the form needs to be updated. This change fixes a bug in OnSelectFieldOptionsDidChange() if AutofillAsyncParse is enabled: OnSelectFieldOptionsDidChange() calls ParseFormAsync(), which calls OnSelectFieldOptionsDidChangeImpl(). This CL ensures that if a field's FormFieldData::options have changed, a re-parse and cache update happens between OnSelectFieldOptionsDidChange() and OnSelectFieldOptionsDidChangeImpl(). This issue does not exist if AutofillAsyncParse is disabled because in this case, OnSelectFieldOptionsDidChangeImpl() synchronously re-parses the form in any case. Bug: 1309848, 1345089 Change-Id: Ifcaf0be823ee175948b9418d14755a7693a17649 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3858224 Commit-Queue: Christoph Schwering <schwering@google.com> Quick-Run: Christoph Schwering <schwering@google.com> Reviewed-by: Florian Leimgruber <fleimgruber@google.com> Cr-Commit-Position: refs/heads/main@{#1039976}
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.