New issue
Advanced search Search tips

Issue 685769 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Feb 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

"Not Secure" warning flickers (appears and disappears) on every keystroke

Project Member Reported by elawrence@chromium.org, Jan 26 2017

Issue description

Chrome Version: 58.0.2993.0
OS: Windows 10

What steps will reproduce the problem?
(1) Open Chrome with a clean profile e.g. chrome.exe --profile-dir="C:\temp" http://ericlawrence.com/test/forms/password.htm
(2) In the username or password box, type several characters

Observe: The "Login not secure" warning message disappears after every character and reappears.

Expect: Message does not flicker.

This doesn't happen in Chrome when the case where the user is typing a previously-stored username in the field; the "Not secure" header appears atop the flyout containing username suggestions.

The ShowNotSecureWarning() does not check to see if the existing popup is the not secure warning before calling HidePopup().

https://cs.chromium.org/chromium/src/components/autofill/content/renderer/autofill_agent.cc?q=ShowNotSecureWarning&sq=package:chromium&dr=CSs&l=581

Removing the HidePopup() call solves the problem, but isn't likely the real fix.
 
Labels: OS-Mac
Also present on Mac, but estark reports that it doesn't repro on Linux (maybe IPC delay?)

Updating the ShowNotSecureWarning so that it doesn't call HidePopup() could affect cases where there was some other popup showing. 

That said, I couldn't find any way to trigger the password generator popup (even after turning it on in Chrome flags) and as of today, the only caller of the ShowHttpWarning is the "no creds stored" scenario, so the popup being hidden might always be the NotSecureWarning.

I think the "correct" fix would be to have a _is_showing_popup_a_not_secure_warning boolean or something similar, and just not call HidePopup if that's set already. (The HidePopup() call would clear the flag.)
Owner: elawrence@chromium.org
Status: Assigned (was: Untriaged)
Status: Started (was: Assigned)
Prototyping indicates that simply removing the HidePopup() call doesn't break anything.

https://codereview.chromium.org/2666873004
Project Member

Comment 4 by bugdroid1@chromium.org, Feb 1 2017

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

commit 3249c30a2d284c39241d2e7371656fe79c825669
Author: elawrence <elawrence@chromium.org>
Date: Wed Feb 01 19:23:49 2017

Do not hide the "Login Not Secure" warning on keystrokes

The AutofillAgent::ShowNotSecureWarning function called HidePopup()
unnecessarily each time it was called. This caused the "Login Not
Secure" popup message to hide and reshow each time the user typed
a key.

Removing this call fixes the problem, and the code still behaves
correctly in the event that autofill suggestions are available or
the password generation popup is showing.

BUG= 685769 

TEST=From an empty profile, visit a HTTP page that collects passwords
(e.g. http://webdbg.com/test/forms/password.htm) and type in the name
or password fields. Observe the "Login Not Secure" warning message; it
should not flicker as characters are typed.

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

[modify] https://crrev.com/3249c30a2d284c39241d2e7371656fe79c825669/components/autofill/content/renderer/autofill_agent.cc

Status: Fixed (was: Started)
Labels: Merge-Request-57
Fix is verified on Canary on Mac and Windows.
Project Member

Comment 7 by sheriffbot@chromium.org, Feb 3 2017

Labels: -Merge-Request-57 Hotlist-Merge-Approved Merge-Approved-57
Your change meets the bar and is auto-approved for M57. Please go ahead and merge the CL to branch 2987 manually. Please contact milestone owner if you have questions.
Owners: amineer@(clank), cmasso@(bling), ketakid@(cros), govind@(desktop)

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Project Member

Comment 8 by bugdroid1@chromium.org, Feb 3 2017

Labels: -merge-approved-57 merge-merged-2987
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/c06f9992e3e6714a812d67b4cdb850d1bc99d567

commit c06f9992e3e6714a812d67b4cdb850d1bc99d567
Author: Emily Stark <estark@google.com>
Date: Fri Feb 03 18:49:12 2017

Do not hide the "Login Not Secure" warning on keystrokes

The AutofillAgent::ShowNotSecureWarning function called HidePopup()
unnecessarily each time it was called. This caused the "Login Not
Secure" popup message to hide and reshow each time the user typed
a key.

Removing this call fixes the problem, and the code still behaves
correctly in the event that autofill suggestions are available or
the password generation popup is showing.

BUG= 685769 

TEST=From an empty profile, visit a HTTP page that collects passwords
(e.g. http://webdbg.com/test/forms/password.htm) and type in the name
or password fields. Observe the "Login Not Secure" warning message; it
should not flicker as characters are typed.

Review-Url: https://codereview.chromium.org/2666873004
Cr-Commit-Position: refs/heads/master@{#447575}
(cherry picked from commit 3249c30a2d284c39241d2e7371656fe79c825669)

Review-Url: https://codereview.chromium.org/2672823005 .
Cr-Commit-Position: refs/branch-heads/2987@{#294}
Cr-Branched-From: ad51088c0e8776e8dcd963dbe752c4035ba6dab6-refs/heads/master@{#444943}

[modify] https://crrev.com/c06f9992e3e6714a812d67b4cdb850d1bc99d567/components/autofill/content/renderer/autofill_agent.cc

Sign in to add a comment