New issue
Advanced search Search tips

Issue 631958 link

Starred by 3 users

Issue metadata

Status: Fixed
Owner:
Closed: Aug 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Renderer shouldn't sent unnecessary AutofillHostMsg_PasswordFormsParsed

Project Member Reported by vasi...@chromium.org, Jul 27 2016

Issue description

What steps will reproduce the problem?
(1) Load simple html with some forms like test password_form.html
(2) Wait for the page loaded event
(3) Drop all the PasswordFormManager instances

What is the expected output?
They aren't recreated.

What do you see instead?
They are resurrected because the renderer sends AutofillHostMsg_PasswordFormsParsed like if they were dynamically parsed.

The reason for this is Document::didAssociateFormControl implementation. It sets the timer during parsing. 0.3 seconds later AutofillAgent::didAssociateFormControls is called. It may happen after the page was loaded. As the result all the forms are reloaded and sent again.
 
Status: Fixed (was: Assigned)
Fixed in r408388.
Project Member

Comment 2 by bugdroid1@chromium.org, Aug 4 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/620ba75d0ad297a1a9ddfc6a35330c4128122fa6

commit 620ba75d0ad297a1a9ddfc6a35330c4128122fa6
Author: vasilii <vasilii@chromium.org>
Date: Thu Aug 04 10:07:07 2016

Get rid of the timeouts in CredentialManagerBrowserTest.*

After https://codereview.chromium.org/2189513004 there is no need in workarounds. PasswordManager should process all the forms inside NavigateToFile().

BUG= 631958 

Review-Url: https://codereview.chromium.org/2210503002
Cr-Commit-Position: refs/heads/master@{#409754}

[modify] https://crrev.com/620ba75d0ad297a1a9ddfc6a35330c4128122fa6/chrome/browser/password_manager/credential_manager_browsertest.cc

Cc: -vabr@chromium.org

Sign in to add a comment