|
[ServiceWorker] Propagates ServiceWorker fetched response's URL and wasFetchedViaServiceWorker flag.
If the request was fetched via a ServiceWorker, the URL of the response could be different from the URL of the original request.
The URL must be checked in the renderer process for CSP and CORS.
So in this patch I introduce was_fetched_via_service_worker flag and original_url_via_service_worker which are set in ServiceWorkerURLRequestJob and propagated to the renderer process.
This change depends on http://crrev.com/370733002 and http://crrev.com/378473002.
BUG= 373120
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284627
Total comments: 2
Total comments: 14
Total comments: 8
Total comments: 4
Total comments: 6
Total comments: 1
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+95 lines, -6 lines) |
Patch |
 |
M |
content/browser/loader/resource_loader.cc
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/embedded_worker_test_helper.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_context_request_handler.h
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_context_request_handler.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_controllee_request_handler.h
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_controllee_request_handler.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_request_handler.h
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_url_request_job.h
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_url_request_job.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+14 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_url_request_job_unittest.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/child/resource_dispatcher.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/child/web_url_loader_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/common/resource_messages.h
|
View
|
7
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/common/service_worker/service_worker_messages.h
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/common/service_worker/service_worker_types.h
|
View
|
1
2
3
4
5
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/common/service_worker/service_worker_types.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/public/common/resource_response_info.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/public/common/resource_response_info.cc
|
View
|
7
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/renderer/service_worker/embedded_worker_context_client.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
Total messages: 38 (0 generated)
|