DescriptionPasswordAutofillAgent: only check visibility if needed
PasswordAutofillAgent::SendPasswordForms is called twice during page load:
On DidFinishDocumentLoad, when it is interested in parsed HTML forms,
and on DidFinishLoad, when it is interested in those forms, which are also visible.
Currently, the method does the visibility check all the times, and throuws out the result in the first situation.
This is not only wasting computational resources, but possibly causing crashes due to not finished rendering computations.
This CL fixes that, and only does the visibility check if needed.
BUG=457243
Committed: https://crrev.com/ae130ef602aef780ed69597eb875dca2d904d473
Cr-Commit-Position: refs/heads/master@{#316218}
Patch Set 1 #
Messages
Total messages: 7 (2 generated)
|