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

Issue 2852423002: Expose passwords to JavaScript in Credential Manager API (Closed)

Created:
3 years, 7 months ago by jdoerrie
Modified:
3 years, 7 months ago
CC:
asvitkine+watch_chromium.org, blink-reviews, blink-reviews-frames_chromium.org, chromium-reviews, haraken, kinuko+watch
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Expose passwords to JavaScript in Credential Manager API This change implements the proposed change to the Credential Manager API to directly expose passwords to JavaScript. It also deprecates the existing PasswordCredential attributes and the ability to attach a Credential to fetch. See the corresponding GitHub issue and pull request for more details: - https://github.com/w3c/webappsec-credential-management/issues/75 - https://github.com/w3c/webappsec-credential-management/pull/76 - Intent to Deprecate: Custom fetch for Credential Manager API: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/WPckvg8JO0U - Intent to Implement and Ship: The password property of PasswordCredential: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/nT51eE7fWn4 BUG=718416 Review-Url: https://codereview.chromium.org/2852423002 Cr-Commit-Position: refs/heads/master@{#473576} Committed: https://chromium.googlesource.com/chromium/src/+/0ee82f7e38627cd7382166e219f4ec72631c816a

Patch Set 1 #

Patch Set 2 : Fix Tests #

Patch Set 3 : Fix More Tests #

Patch Set 4 : More Interface Listings #

Total comments: 9

Patch Set 5 : Tests and Deprecation in RequestInit #

Patch Set 6 : Rebase #

Patch Set 7 : WPT Tests and Readonly Password #

Total comments: 5

Patch Set 8 : Runtime Enabled #

Total comments: 8

Patch Set 9 : Address comments #

Patch Set 10 : Address comments #

Patch Set 11 : Rebase #

Patch Set 12 : Remove RuntimeEnabled #

Total comments: 4

Patch Set 13 : Rebase #

Patch Set 14 : Console Message #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -57 lines) Patch
M third_party/WebKit/LayoutTests/external/wpt/credential-management/credentialscontainer-create-basics.https.html View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/credential-management/idl.https.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -4 lines 0 comments Download
D third_party/WebKit/LayoutTests/external/wpt/credential-management/idl.https-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -39 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/credentialmanager/passwordcredential-basics.html View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +7 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/credentialmanager/passwordcredential-fetch-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/virtual/stable/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/virtual/stable/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/service-worker-navigation-preload-disabled/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/Deprecation.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +12 lines, -0 lines 1 comment Download
M third_party/WebKit/Source/core/frame/UseCounter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/credentialmanager/PasswordCredential.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/credentialmanager/PasswordCredential.cpp View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/modules/credentialmanager/PasswordCredential.idl View 1 2 3 4 5 6 8 9 10 11 1 chunk +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/credentialmanager/PasswordCredentialTest.cpp View 1 8 9 10 11 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/RequestInit.cpp View 1 2 3 4 8 9 10 11 2 chunks +4 lines, -0 lines 0 comments Download
M tools/metrics/histograms/enums.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 82 (64 generated)
jdoerrie
Hi Vasilii and Mike, please consider this a first draft of the upcoming change. At ...
3 years, 7 months ago (2017-05-04 08:41:34 UTC) #20
Mike West
Thanks for putting this together! It looks pretty reasonable... Please add some layout test coverage ...
3 years, 7 months ago (2017-05-04 11:13:33 UTC) #21
jdoerrie
Thanks, Mike! https://codereview.chromium.org/2852423002/diff/60001/third_party/WebKit/Source/core/frame/Deprecation.cpp File third_party/WebKit/Source/core/frame/Deprecation.cpp (right): https://codereview.chromium.org/2852423002/diff/60001/third_party/WebKit/Source/core/frame/Deprecation.cpp#newcode434 third_party/WebKit/Source/core/frame/Deprecation.cpp:434: return willBeRemoved("fetch.RequestInit.RequestCredentials.password", M62, On 2017/05/04 11:13:33, Mike ...
3 years, 7 months ago (2017-05-04 14:24:11 UTC) #25
Mike West
Thanks! Would you mind updating //LayoutTests/external/wpt/credential-management/idl.https.html as well? https://codereview.chromium.org/2852423002/diff/60001/third_party/WebKit/Source/modules/credentialmanager/PasswordCredential.h File third_party/WebKit/Source/modules/credentialmanager/PasswordCredential.h (right): https://codereview.chromium.org/2852423002/diff/60001/third_party/WebKit/Source/modules/credentialmanager/PasswordCredential.h#newcode48 third_party/WebKit/Source/modules/credentialmanager/PasswordCredential.h:48: void ...
3 years, 7 months ago (2017-05-05 11:35:10 UTC) #32
vasilii
Provisionally LGTM
3 years, 7 months ago (2017-05-05 15:36:06 UTC) #33
Mike West
Two more small comments. :) Will you send out an intent to ship? https://codereview.chromium.org/2852423002/diff/120001/third_party/WebKit/LayoutTests/external/wpt/credential-management/idl.https.html File ...
3 years, 7 months ago (2017-05-08 11:01:57 UTC) #38
jdoerrie
Thanks again, Mike. I will send out the intent to ship soon, but wanted to ...
3 years, 7 months ago (2017-05-08 14:03:17 UTC) #39
jdoerrie
https://codereview.chromium.org/2852423002/diff/120001/third_party/WebKit/LayoutTests/external/wpt/credential-management/idl.https.html File third_party/WebKit/LayoutTests/external/wpt/credential-management/idl.https.html (right): https://codereview.chromium.org/2852423002/diff/120001/third_party/WebKit/LayoutTests/external/wpt/credential-management/idl.https.html#newcode17 third_party/WebKit/LayoutTests/external/wpt/credential-management/idl.https.html:17: dictionary SiteBoundCredentialData : CredentialData { On 2017/05/08 14:03:17, jdoerrie ...
3 years, 7 months ago (2017-05-08 15:21:07 UTC) #40
jdoerrie
I added the corresponding Intent threads to the CL description and added jochen@ as an ...
3 years, 7 months ago (2017-05-09 15:50:02 UTC) #43
Mike West
https://codereview.chromium.org/2852423002/diff/140001/third_party/WebKit/LayoutTests/platform/mac/virtual/stable/webexposed/global-interface-listing-expected.txt File third_party/WebKit/LayoutTests/platform/mac/virtual/stable/webexposed/global-interface-listing-expected.txt (right): https://codereview.chromium.org/2852423002/diff/140001/third_party/WebKit/LayoutTests/platform/mac/virtual/stable/webexposed/global-interface-listing-expected.txt#newcode3820 third_party/WebKit/LayoutTests/platform/mac/virtual/stable/webexposed/global-interface-listing-expected.txt:3820: getter password The `//virtual/stable` tests won't change results until ...
3 years, 7 months ago (2017-05-16 09:30:45 UTC) #48
jdoerrie (Google - do not use)
Thanks, Mike! I left another comment where I would like to have your insight :) ...
3 years, 7 months ago (2017-05-16 10:08:01 UTC) #50
jdoerrie
https://codereview.chromium.org/2852423002/diff/140001/third_party/WebKit/Source/modules/credentialmanager/PasswordCredential.cpp File third_party/WebKit/Source/modules/credentialmanager/PasswordCredential.cpp (right): https://codereview.chromium.org/2852423002/diff/140001/third_party/WebKit/Source/modules/credentialmanager/PasswordCredential.cpp#newcode137 third_party/WebKit/Source/modules/credentialmanager/PasswordCredential.cpp:137: return RuntimeEnabledFeatures::passwordCredentialPasswordEnabled() On 2017/05/16 09:30:45, Mike West wrote: > ...
3 years, 7 months ago (2017-05-17 15:39:22 UTC) #58
Mike West
One nit about the developer-facing messaging. We need to do better than the current error ...
3 years, 7 months ago (2017-05-19 09:47:49 UTC) #65
jochen (gone - plz use gerrit)
API lgtm, please wait for Mike to approve as well
3 years, 7 months ago (2017-05-19 13:52:21 UTC) #70
jdoerrie
https://codereview.chromium.org/2852423002/diff/220001/third_party/WebKit/LayoutTests/http/tests/credentialmanager/passwordcredential-fetch-expected.txt File third_party/WebKit/LayoutTests/http/tests/credentialmanager/passwordcredential-fetch-expected.txt (right): https://codereview.chromium.org/2852423002/diff/220001/third_party/WebKit/LayoutTests/http/tests/credentialmanager/passwordcredential-fetch-expected.txt#newcode1 third_party/WebKit/LayoutTests/http/tests/credentialmanager/passwordcredential-fetch-expected.txt:1: CONSOLE WARNING: line 43: fetch.RequestInit.RequestCredentials.password is deprecated and will ...
3 years, 7 months ago (2017-05-22 11:35:32 UTC) #73
Mike West
LGTM. If there's a better spot for the migration suggestions, we can move it later. ...
3 years, 7 months ago (2017-05-22 14:37:13 UTC) #74
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/2852423002/260001
3 years, 7 months ago (2017-05-22 14:41:37 UTC) #79
commit-bot: I haz the power
3 years, 7 months ago (2017-05-22 14:47:53 UTC) #82
Message was sent while issue was closed.
Committed patchset #14 (id:260001) as
https://chromium.googlesource.com/chromium/src/+/0ee82f7e38627cd7382166e219f4...

Powered by Google App Engine
This is Rietveld 408576698