commit | 51e2da7845b1c03198a799bc153010e11f17650a | [log] [tgz] |
---|---|---|
author | Christoph Schwering <schwering@google.com> | Thu Dec 12 22:02:00 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Dec 12 22:02:00 2024 |
tree | 44e8c1d30cc266a93f0540bea6ccbe4293e77a28 | |
parent | 046f6641cfd32070d883bf7a9d4d6d872a1da467 [diff] |
[Autofill] Fix ListedElements() after insertion of a shadow DOM tree Autofill uses a variant of HTMLFormElement::ListedElements() to extract shadow-including listed elements of a form. This CL adds a missing cache invalidation when an entire subtree that includes a shadow DOM is inserted into a form. For example, when JS dynamically turns <form> into <form> <div> #shadow-root <input> then the <form>'s cache needs to be invalidated to that ListedElements(/*include_shadow_trees=*/true) includes the <input>. Bug: 347059988 Change-Id: Ifc2d8e7ea29f9538a7a7c8083883463834cc8677 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6088336 Reviewed-by: Mason Freed <masonf@chromium.org> Reviewed-by: Jan Keitel <jkeitel@google.com> Commit-Queue: Christoph Schwering <schwering@google.com> Cr-Commit-Position: refs/heads/main@{#1395612}
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.