|
[ServiceWorker] Set FetchRequestMode and handle wasFetchedViaServiceWorker.
This cl sets FetchRequestMode in the renderer process.
These flags are used in the ServiceWorker.
This cl also includes the network fallback logic in the renderer process.
Currently the network fallback which is executed when FetchEvent.respondWith() is not called in the ServiceWorker is executed in the browser process.
But if we send a CORS fetch request the network fallback should be executed in the renderer process.
In such a case wasFetchedViaServiceWorker flag of the response from the browser process is set.
This cl adds the check of the flag and introduces the fallback logic in ResourceLoader and DocumentThreadableLoader.
This cl depends on 634813002, 629953003 and 635693003.
BUG= 416371, 408507
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=183502
Total comments: 23
Total comments: 10
Total comments: 14
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+652 lines, -173 lines) |
Patch |
 |
M |
LayoutTests/http/tests/serviceworker/fetch-access-control.html
|
View
|
|
1 chunk |
+4 lines, -19 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/serviceworker/fetch-canvas-tainting.html
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+12 lines, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/serviceworker/fetch-cors-xhr.html
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+12 lines, -1 line |
0 comments
|
Download
|
 |
D |
LayoutTests/http/tests/serviceworker/fetch-cors-xhr-expected.txt
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+0 lines, -8 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/http/tests/serviceworker/fetch-request-image.html
|
View
|
1
2
3
4
5
|
1 chunk |
+53 lines, -0 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/serviceworker/resources/fetch-canvas-tainting-iframe.html
|
View
|
|
2 chunks |
+214 lines, -44 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/serviceworker/resources/fetch-cors-xhr-iframe.html
|
View
|
1
2
3
4
|
2 chunks |
+160 lines, -62 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/http/tests/serviceworker/resources/fetch-request-image-iframe.html
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+27 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/http/tests/serviceworker/resources/fetch-request-image-worker.js
|
View
|
1
2
3
|
1 chunk |
+20 lines, -0 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/serviceworker/resources/fetch-request-xhr-iframe.html
|
View
|
1
2
3
4
|
7 chunks |
+32 lines, -6 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/serviceworker/resources/fetch-request-xhr-worker.js
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/serviceworker/resources/test-helpers.js
|
View
|
|
1 chunk |
+18 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/fetch/FetchRequest.cpp
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/fetch/ResourceFetcher.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/fetch/ResourceFetcher.cpp
|
View
|
1
2
3
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/fetch/ResourceLoader.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/fetch/ResourceLoader.cpp
|
View
|
1
2
3
4
5
6
|
2 chunks |
+31 lines, -12 lines |
0 comments
|
Download
|
 |
M |
Source/core/fetch/ResourceLoaderHost.h
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/loader/DocumentThreadableLoader.h
|
View
|
1
2
3
4
5
6
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/loader/DocumentThreadableLoader.cpp
|
View
|
1
2
3
4
5
6
|
5 chunks |
+49 lines, -20 lines |
0 comments
|
Download
|
Total messages: 74 (37 generated)
|