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

Issue 464783003: Credential manager: Convert strings to URLs early. (Closed)

Created:
6 years, 4 months ago by Mike West
Modified:
6 years, 4 months ago
CC:
abarth-chromium, blink-reviews, dglazkov+blink, jamesr
Project:
blink
Visibility:
Public.

Description

Credential manager: Convert strings to URLs early. We don't want to pass strings into the browser process for conversion into URL objects; we should validate input when creating data from JavaScript. This patch adjusts {Local,Federated}Credential objects to throw exceptions in their constructors if URL validation fails, and changes both Web*Credential and Platform*Credential objects to accept WebURL/KURL objects rather than strings. BUG=400674 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=180120

Patch Set 1 #

Total comments: 3

Patch Set 2 : Feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -55 lines) Patch
M LayoutTests/http/tests/credentialmanager/federatedcredential-basics.html View 1 1 chunk +12 lines, -0 lines 0 comments Download
M LayoutTests/http/tests/credentialmanager/localcredential-basics.html View 1 1 chunk +6 lines, -0 lines 0 comments Download
M Source/modules/credentialmanager/Credential.h View 1 1 chunk +9 lines, -3 lines 0 comments Download
M Source/modules/credentialmanager/Credential.cpp View 1 2 chunks +22 lines, -3 lines 0 comments Download
M Source/modules/credentialmanager/CredentialsContainer.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/credentialmanager/FederatedCredential.h View 1 1 chunk +4 lines, -3 lines 0 comments Download
M Source/modules/credentialmanager/FederatedCredential.cpp View 1 1 chunk +11 lines, -5 lines 0 comments Download
M Source/modules/credentialmanager/FederatedCredential.idl View 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/credentialmanager/LocalCredential.h View 1 1 chunk +3 lines, -2 lines 0 comments Download
M Source/modules/credentialmanager/LocalCredential.cpp View 1 1 chunk +8 lines, -3 lines 0 comments Download
M Source/modules/credentialmanager/LocalCredential.idl View 1 chunk +1 line, -0 lines 0 comments Download
M Source/platform/credentialmanager/PlatformCredential.h View 2 chunks +5 lines, -4 lines 0 comments Download
M Source/platform/credentialmanager/PlatformCredential.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/platform/credentialmanager/PlatformFederatedCredential.h View 1 chunk +4 lines, -4 lines 0 comments Download
M Source/platform/credentialmanager/PlatformFederatedCredential.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/platform/credentialmanager/PlatformLocalCredential.h View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/platform/credentialmanager/PlatformLocalCredential.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/platform/exported/WebCredential.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/platform/exported/WebFederatedCredential.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/platform/exported/WebLocalCredential.cpp View 1 chunk +1 line, -1 line 0 comments Download
M public/platform/WebCredential.h View 3 chunks +6 lines, -5 lines 0 comments Download
M public/platform/WebCredentialManager.h View 1 chunk +1 line, -1 line 0 comments Download
M public/platform/WebFederatedCredential.h View 1 chunk +6 lines, -5 lines 0 comments Download
M public/platform/WebLocalCredential.h View 1 chunk +5 lines, -4 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
Mike West
Jochen, would you mind stamping the platformy bits?
6 years, 4 months ago (2014-08-12 09:07:18 UTC) #1
Mike West
Philip, would you mind reviewing this patch? It's not terribly complex: it just replaces some ...
6 years, 4 months ago (2014-08-12 09:09:38 UTC) #2
philipj_slow
LGTM, but I am powerless outside of Source/core/ https://codereview.chromium.org/464783003/diff/1/LayoutTests/http/tests/credentialmanager/federatedcredential-basics.html File LayoutTests/http/tests/credentialmanager/federatedcredential-basics.html (right): https://codereview.chromium.org/464783003/diff/1/LayoutTests/http/tests/credentialmanager/federatedcredential-basics.html#newcode28 LayoutTests/http/tests/credentialmanager/federatedcredential-basics.html:28: var ...
6 years, 4 months ago (2014-08-12 09:42:40 UTC) #3
Mike West
On 2014/08/12 09:42:40, philipj wrote: > LGTM, but I am powerless outside of Source/core/ Thanks! ...
6 years, 4 months ago (2014-08-12 11:32:27 UTC) #4
jochen (gone - plz use gerrit)
lgtm
6 years, 4 months ago (2014-08-12 14:53:30 UTC) #5
Mike West
The CQ bit was checked by mkwst@chromium.org
6 years, 4 months ago (2014-08-12 15:02:06 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkwst@chromium.org/464783003/20001
6 years, 4 months ago (2014-08-12 15:02:50 UTC) #7
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_blink_rel on tryserver.blink ...
6 years, 4 months ago (2014-08-12 15:26:36 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-12 15:54:38 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/22300)
6 years, 4 months ago (2014-08-12 15:54:38 UTC) #10
Mike West
The CQ bit was checked by mkwst@chromium.org
6 years, 4 months ago (2014-08-12 16:03:00 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkwst@chromium.org/464783003/20001
6 years, 4 months ago (2014-08-12 16:03:59 UTC) #12
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_blink_rel on tryserver.blink ...
6 years, 4 months ago (2014-08-12 17:41:28 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-12 18:10:09 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/22322)
6 years, 4 months ago (2014-08-12 18:10:10 UTC) #15
Mike West
The CQ bit was checked by mkwst@chromium.org
6 years, 4 months ago (2014-08-12 18:15:14 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkwst@chromium.org/464783003/20001
6 years, 4 months ago (2014-08-12 18:17:39 UTC) #17
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_blink_rel on tryserver.blink ...
6 years, 4 months ago (2014-08-12 18:51:05 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-12 19:23:11 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/22340)
6 years, 4 months ago (2014-08-12 19:23:13 UTC) #20
Mike West
The CQ bit was checked by mkwst@chromium.org
6 years, 4 months ago (2014-08-12 22:57:20 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkwst@chromium.org/464783003/20001
6 years, 4 months ago (2014-08-12 22:58:27 UTC) #22
commit-bot: I haz the power
6 years, 4 months ago (2014-08-12 23:31:24 UTC) #23
Message was sent while issue was closed.
Change committed as 180120

Powered by Google App Engine
This is Rietveld 408576698