[Autofill] Use renderer ID for comparing FormStructure to FormData.
This CL removes FormStructure::operator==() and replaces it with direct comparison of the unique renderer ID. It appears that operator==() attempts to implement equality in terms of underlying <form> tags, i.e., FormStructure == FormData iff they originate from the same <form> tag. However, the implementation preceded renderer IDs and thus could only approximate the intended relation. Since there is no canonical way of defining equivalence between FormStructure and FormData, it seems best to compare the renderer IDs directly. Renderer IDs suffice to uniquely identify forms and fields within AutofillHandler since there is a one-to-one mapping from RenderFrameHosts to AutofillDrivers and from AutofillDrivers to AutofillHandlers. Bug: 1007974,1064709 Change-Id: I9a3f1b02d06bab345d6e9df86273020ee888903a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2113574 Commit-Queue: Christoph Schwering <schwering@google.com> Reviewed-by:Vadym Doroshenko <dvadym@chromium.org> Cr-Commit-Position: refs/heads/master@{#776928}
Showing
Please register or sign in to comment