[Autofill Assistant] ElementExists also gets BoxModel.
When checking for presence of an element on a page, we now also compute the element BoxModel to make sure it is present on the page. This is necessary because some scripts have conditional actions (e.g. click on element X if X is on the page) which would fail if the element they act on has no box model but is still considered on the page. This makes the check for existence much slower, but for now correctness is more important than speed. Bug: 806868 Change-Id: Ibab82898c4ac3dc198b30ba8c10080d3bbebb474 Reviewed-on: https://chromium-review.googlesource.com/c/1280668 Commit-Queue: Jordan Demeulenaere <jdemeulenaere@chromium.org> Reviewed-by:Ganggui Tang <gogerald@chromium.org> Cr-Commit-Position: refs/heads/master@{#599916}
Showing
Please register or sign in to comment