|
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
Total comments: 3
|
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
|
Total messages: 23 (0 generated)
|