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

Issue 106053008: [Mac] Passwords: Don't always prompt to access passwords saved by other browsers (Closed)

Created:
7 years ago by Patrick Dubroy
Modified:
7 years ago
CC:
chromium-reviews
Visibility:
Public.

Description

[Mac] Passwords: Don't always prompt to access passwords saved by other browsers Disable Keychain password access prompts when Chrome's "Ask to save passwords" option is disabled. This gives users an escape hatch other than clicking "Always allow" or "Deny" for each password prompt when they have passwords saved from other browsers. This previously regressed with http://crrev.com/166878. R=stuartmorgan@chromium.org TBR=atwilson@chromium.org BUG=178358 TEST= 1. In *Safari*, navigate to a login page for which you can save a password. 2. Log in, and instruct Safari to save the password. 3. In *Chrome*, under Advanced Settings, disable password management. 4. Navigate to the same login page. At step (4), there should be no prompt for authorization to access the password saved in Safari. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=241255

Patch Set 1 #

Patch Set 2 : Fix tests. #

Patch Set 3 : Fix compile failures. #

Patch Set 4 : Fix another compile error. #

Patch Set 5 : Update comment. #

Patch Set 6 : Rebase and a couple more tests. #

Patch Set 7 : Fix yet another compile failure. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -53 lines) Patch
M chrome/browser/password_manager/mock_password_store.h View 1 2 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/password_manager/password_form_manager.h View 1 2 3 4 5 3 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/password_manager/password_form_manager.cc View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/password_manager/password_form_manager_unittest.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/password_manager/password_manager.cc View 1 2 3 4 5 1 chunk +8 lines, -1 line 0 comments Download
chrome/browser/password_manager/password_manager_unittest.cc View 1 2 3 4 5 6 13 chunks +27 lines, -26 lines 0 comments Download
M chrome/browser/password_manager/password_store.h View 1 2 3 4 3 chunks +14 lines, -1 line 0 comments Download
M chrome/browser/password_manager/password_store.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/password_manager/password_store_default.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/password_manager/password_store_default.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/password_manager/password_store_mac.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/password_manager/password_store_mac.cc View 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/password_manager/password_store_mac_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/password_manager/password_store_unittest.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/password_manager/password_store_win.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/password_manager/password_store_win.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/password_manager/password_store_win_unittest.cc View 1 2 3 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/password_manager/password_store_x.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/password_manager/password_store_x.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/password_manager/test_password_store.h View 1 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/password_manager/test_password_store.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sync/test/integration/passwords_helper.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
Patrick Dubroy
Ilya, please take a look. This seems like a simpler way to solve the problem. ...
7 years ago (2013-12-11 13:36:41 UTC) #1
Ilya Sherman
Very nice, LG2M -- thanks! However, I'd really like to get Stuart's review as well, ...
7 years ago (2013-12-12 08:41:14 UTC) #2
Patrick Dubroy
Stuart: ping?
7 years ago (2013-12-14 10:50:26 UTC) #3
stuartmorgan
Mac parts LGTM (didn't look at the rest). Please put a big warning in the ...
7 years ago (2013-12-16 17:42:01 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dubroy@chromium.org/106053008/80001
7 years ago (2013-12-16 18:06:34 UTC) #5
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=204949
7 years ago (2013-12-16 19:50:08 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dubroy@chromium.org/106053008/80001
7 years ago (2013-12-16 20:37:26 UTC) #7
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=205157
7 years ago (2013-12-16 22:25:50 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dubroy@chromium.org/106053008/80001
7 years ago (2013-12-16 22:52:32 UTC) #9
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=205363
7 years ago (2013-12-17 00:45:16 UTC) #10
Patrick Dubroy
Committed patchset #7 manually as r241255 (presubmit successful).
7 years ago (2013-12-17 11:41:01 UTC) #11
Patrick Dubroy
7 years ago (2013-12-17 13:26:14 UTC) #12
Message was sent while issue was closed.
On 2013/12/16 17:42:01, stuartmorgan wrote:
> Mac parts LGTM (didn't look at the rest). Please put a big warning in the
> PasswordStore API though, pointing out that calling it with different prompt
> arguments could result in different sets of passwords being returned. (I want
it
> to be very clear to a caller that they could, e.g., confuse sync by calling it
> different ways from the sync system.)
> 
> 
> FWIW, I understand this as an incremental improvement, but I'm not wild about
> this approach. It feels like we're punting the real question of what the
> password autofill behavior should be, and instead just exposing fiddly details
> of the Keychain implementation in the form of inconsistent end-user behavior.
> After this patch, how would you clearly and succinctly explain to a user not
> familiar with terms like "keychain ACL" whether or not a password will be
filled
> in, and why, with the 'save' pref turned off, and how would you explain why a
> pref about *saving* changes how some passwords fill, but not others?

As I mentioned in my comments (http://goo.gl/y3q4vu), I agree. I wanted to land
something for M33, but I plan to work on a better fix in M34.

> I don't think there are good ways, which points to this not actually being a
> good solution; hopefully someone will drive a better fix to this in the longer
> term.

Powered by Google App Engine
This is Rietveld 408576698