|
|
CREDENTIAL: Introduce an "attached credential" to requests.
The spec has been updated after some discussion with Mozilla about the
interaction between PasswordCredential objects and Service Workers.
Details are at [1], the TL;DR is that we'll now pass PasswordCredential
objects in as the RequestInit dictionary 'credentials' member. This will
produce a Request object whose visible 'credentials' attribute is
'password', and which carries a hidden PasswordCredential around for
serialization when we hit the network.
The current patch does the first part of the work, refactoring the
integration between modules/credentialmanager and modules/fetch. It
stops when the WebURLRequest is handed over to //content for processing.
Currently, this means that the credentials are visible in the Request
body that's presented to Service Workers. This isn't where we want to
end up, but it maintains the status quo while presenting developers with
the new interface, so it seems like a good place for this first patch to
stop.
[1]: https://w3c.github.io/webappsec-credential-management/#fetch-integration
BUG= 599597
Committed: https://crrev.com/5dc4a153d1ddc9b7083427fe2705cd1199795038
Cr-Commit-Position: refs/heads/master@{#385390}
Total comments: 6
Total comments: 4
Total comments: 4
Total comments: 8
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+247 lines, -65 lines) |
Patch |
 |
M |
content/child/web_url_request_util.cc
|
View
|
1
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/common/service_worker/service_worker_types.h
|
View
|
1
2
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/LayoutTests/http/tests/credentialmanager/passwordcredential-fetch.html
|
View
|
1
2
3
4
5
6
7
|
9 chunks |
+88 lines, -19 lines |
0 comments
|
Download
|
 |
A |
third_party/WebKit/LayoutTests/http/tests/credentialmanager/passwordcredential-redirect.html
|
View
|
1
2
3
6
|
1 chunk |
+35 lines, -0 lines |
0 comments
|
Download
|
 |
A |
third_party/WebKit/LayoutTests/http/tests/credentialmanager/resources/redirect-to-echo-post.php
|
View
|
1
2
3
4
5
6
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/bindings/modules/v8/DictionaryHelperForModules.cpp
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/modules/fetch/Body.h
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+0 lines, -6 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/modules/fetch/Body.cpp
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/modules/fetch/FetchManager.cpp
|
View
|
1
2
3
4
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/modules/fetch/FetchRequestData.h
|
View
|
1
2
3
4
5
6
7
|
5 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/modules/fetch/FetchRequestData.cpp
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/modules/fetch/Request.h
|
View
|
1
2
3
4
|
3 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/modules/fetch/Request.cpp
|
View
|
1
2
3
4
|
5 chunks |
+24 lines, -17 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/modules/fetch/RequestInit.h
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/modules/fetch/RequestInit.cpp
|
View
|
1
2
3
4
|
6 chunks |
+23 lines, -13 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/exported/WebURLRequest.cpp
|
View
|
1
2
3
4
|
2 chunks |
+16 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/network/ResourceRequest.h
|
View
|
1
2
3
4
|
3 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/network/ResourceRequest.cpp
|
View
|
1
2
3
4
|
3 chunks |
+13 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/public/platform/WebURLRequest.h
|
View
|
1
2
3
4
|
2 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
Total messages: 31 (8 generated)
|