Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(136)

Issue 2604453003: Show Form-Not-Secure warning on page load (Closed)

Created:
3 years, 12 months ago by estark
Modified:
3 years, 11 months ago
CC:
browser-components-watch_chromium.org, chromium-reviews, darin-cc_chromium.org, estade+watch_chromium.org, gcasto+watchlist_chromium.org, jam, jdonnelly+autofillwatch_chromium.org, mathp+autofillwatch_chromium.org, mlamouri+watch-content_chromium.org, rouslan+autofill_chromium.org, sebsg+autofillwatch_chromium.org, vabr+watchlistautofill_chromium.org, vabr+watchlistpasswordmanager_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Show Form-Not-Secure warning on page load Currently, the Form-Not-Secure warning shows up in the autofill dropdown when the autofill suggestions are shown, but it should also show up on page load when a password form is autofilled. This CL adds a ShowNotSecureWarning method that roughly mirrors the Fill-On-Account-Select flow. When a password form is autofilled on page load, and when the PasswordFormFillData indicates that the warning should be shown, the renderer calls ShowNotSecureWarning() to tell the browser to show the autofill popup with the form-not-secure warning (and no autofill suggestions). BUG=672668 TEST=Save a password on http://rsolomakhin.github.io/autofill/ in the Name/Password form. Load the page again and observe that the field is autofilled with a "Login not secure" autofill dropdown. Committed: https://crrev.com/50592c0e5e6c21d5b11f3a5f1515d9afcd5fe1a7 Cr-Commit-Position: refs/heads/master@{#441289}

Patch Set 1 : checkpoint #

Patch Set 2 : add unit tests #

Total comments: 2

Patch Set 3 : vabr comment and additional tests #

Total comments: 6

Patch Set 4 : meacer, jochen comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+234 lines, -8 lines) Patch
A chrome/renderer/autofill/DEPS View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/renderer/autofill/fake_content_password_manager_driver.h View 1 3 chunks +9 lines, -0 lines 0 comments Download
M chrome/renderer/autofill/fake_content_password_manager_driver.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/renderer/autofill/password_autofill_agent_browsertest.cc View 1 2 4 chunks +35 lines, -0 lines 0 comments Download
M components/autofill/content/common/autofill_driver.mojom View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M components/autofill/content/common/autofill_types.mojom View 1 chunk +1 line, -0 lines 0 comments Download
M components/autofill/content/common/autofill_types_struct_traits.h View 1 chunk +5 lines, -0 lines 0 comments Download
M components/autofill/content/common/autofill_types_struct_traits.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M components/autofill/content/renderer/autofill_agent.h View 1 chunk +2 lines, -0 lines 0 comments Download
M components/autofill/content/renderer/autofill_agent.cc View 1 chunk +9 lines, -0 lines 0 comments Download
M components/autofill/content/renderer/password_autofill_agent.h View 1 chunk +5 lines, -0 lines 0 comments Download
M components/autofill/content/renderer/password_autofill_agent.cc View 2 chunks +19 lines, -6 lines 0 comments Download
M components/autofill/content/renderer/renderer_save_password_progress_logger_unittest.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M components/autofill/core/common/password_form_fill_data.h View 1 chunk +4 lines, -0 lines 0 comments Download
M components/autofill/core/common/password_form_fill_data.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M components/password_manager/content/browser/content_password_manager_driver.h View 1 chunk +2 lines, -0 lines 0 comments Download
M components/password_manager/content/browser/content_password_manager_driver.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/password_autofill_manager.h View 1 chunk +6 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/password_autofill_manager.cc View 1 chunk +15 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/password_autofill_manager_unittest.cc View 1 2 3 1 chunk +41 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/password_form_manager_unittest.cc View 1 2 2 chunks +38 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/password_manager.cc View 3 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (23 generated)
estark
sebsg, can you please take a look at components/autofill, and engedy for components/password_manager? The specs ...
3 years, 11 months ago (2016-12-30 00:59:53 UTC) #13
vabr (Chromium)
On 2016/12/30 00:59:53, estark wrote: > sebsg, can you please take a look at components/autofill, ...
3 years, 11 months ago (2017-01-02 10:01:35 UTC) #14
vabr (Chromium)
LGTM, thanks! Vaclav https://codereview.chromium.org/2604453003/diff/140001/chrome/renderer/autofill/password_autofill_agent_browsertest.cc File chrome/renderer/autofill/password_autofill_agent_browsertest.cc (right): https://codereview.chromium.org/2604453003/diff/140001/chrome/renderer/autofill/password_autofill_agent_browsertest.cc#newcode1373 chrome/renderer/autofill/password_autofill_agent_browsertest.cc:1373: SetHttpFormWarning(); optional: It might be a ...
3 years, 11 months ago (2017-01-02 10:15:04 UTC) #15
engedy
Thanks, Vaclav. :)
3 years, 11 months ago (2017-01-02 10:35:49 UTC) #17
estark
jochen: can you please review the chrome/renderer/DEPS change? meacer: can you please review the IPC ...
3 years, 11 months ago (2017-01-03 16:08:36 UTC) #21
jochen (gone - plz use gerrit)
lgtm either way https://codereview.chromium.org/2604453003/diff/160001/chrome/renderer/DEPS File chrome/renderer/DEPS (right): https://codereview.chromium.org/2604453003/diff/160001/chrome/renderer/DEPS#newcode28 chrome/renderer/DEPS:28: "+components/security_state/core", Will security_state/core eventually contain UI ...
3 years, 11 months ago (2017-01-03 17:12:16 UTC) #24
meacer
mojo lgtm https://codereview.chromium.org/2604453003/diff/160001/components/autofill/content/common/autofill_driver.mojom File components/autofill/content/common/autofill_driver.mojom (right): https://codereview.chromium.org/2604453003/diff/160001/components/autofill/content/common/autofill_driver.mojom#newcode103 components/autofill/content/common/autofill_driver.mojom:103: nit: Extra blank line? https://codereview.chromium.org/2604453003/diff/160001/components/password_manager/core/browser/password_autofill_manager_unittest.cc File components/password_manager/core/browser/password_autofill_manager_unittest.cc ...
3 years, 11 months ago (2017-01-04 00:03:11 UTC) #25
estark
https://codereview.chromium.org/2604453003/diff/160001/chrome/renderer/DEPS File chrome/renderer/DEPS (right): https://codereview.chromium.org/2604453003/diff/160001/chrome/renderer/DEPS#newcode28 chrome/renderer/DEPS:28: "+components/security_state/core", On 2017/01/03 17:12:16, jochen wrote: > Will security_state/core ...
3 years, 11 months ago (2017-01-04 01:03:14 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2604453003/180001
3 years, 11 months ago (2017-01-04 01:04:20 UTC) #29
commit-bot: I haz the power
Committed patchset #4 (id:180001)
3 years, 11 months ago (2017-01-04 01:53:19 UTC) #32
commit-bot: I haz the power
3 years, 11 months ago (2017-01-04 01:55:21 UTC) #34
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/50592c0e5e6c21d5b11f3a5f1515d9afcd5fe1a7
Cr-Commit-Position: refs/heads/master@{#441289}

Powered by Google App Engine
This is Rietveld 408576698