|
Show service worker navigation preload requests in DevTools Network tab.
Demo: https://youtu.be/I-Qe_Y-xYxE
Navigation Preload requests are initiated from the browser process.
This is different from the normal network requests which are initiated from the
renderer process.
When the DevTools show the normal requests in the Network tab, DevTool's
Network events (requestWillBeSent, responseReceived, loadingFinished etc) are
dispatched via InspectorInstrumentation and InspectorNetworkAgent.
This CL introduces new DevTool's Network events (navigationPreloadSent,
navigationPreloadResponseReceived, navigationPreloadFailed,
navigationPreloadFinished) which are dispatched via InspectorInstrumentation and
InspectorNetworkAgent from ServiceWorkerContextClient.
In the normal requests case, we record the request sending timestamp when the
renderer process will send the request in InspectorNetworkAgent::
willSendRequestInternal(). But in the navigation preload case, we record the
timestamp in the browser process, and send it to the service worker's renderer
process using FetchEventPreloadHandle.
BUG= 649558
Review-Url: https://codereview.chromium.org/2620463002
Cr-Original-Commit-Position: refs/heads/master@{#445630}
Committed: https://chromium.googlesource.com/chromium/src/+/4c6b3b0f11b62e069d9d84ba99dbe94a45a5c622
Review-Url: https://codereview.chromium.org/2620463002
Cr-Commit-Position: refs/heads/master@{#445699}
Committed: https://chromium.googlesource.com/chromium/src/+/23276c71698583a0142e8213bada22e3ae8d0a0e
Total comments: 18
Total comments: 14
Total comments: 2
Total comments: 2
Total comments: 10
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+400 lines, -92 lines) |
Patch |
|
M |
content/browser/loader/resource_dispatcher_host_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+6 lines, -1 line |
0 comments
|
Download
|
|
M |
content/browser/service_worker/service_worker_browsertest.cc
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
content/browser/service_worker/service_worker_fetch_dispatcher.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/renderer/service_worker/service_worker_context_client.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
content/renderer/service_worker/service_worker_context_client.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
5 chunks |
+13 lines, -9 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/http/tests/inspector/service-workers/resources/navigation-preload-scope.php
|
View
|
1
2
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/http/tests/inspector/service-workers/resources/navigation-preload-worker.php
|
View
|
1
2
3
4
5
6
|
1 chunk |
+29 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/http/tests/inspector/service-workers/service-workers-navigation-preload.html
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+130 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/http/tests/inspector/service-workers/service-workers-navigation-preload-expected.txt
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+29 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/inspector/InspectorInstrumentation.cpp
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/inspector/InspectorInstrumentation.idl
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+5 lines, -5 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.h
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+6 lines, -8 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp
|
View
|
1
2
3
4
5
6
7
8
9
|
11 chunks |
+44 lines, -27 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/inspector/WorkerInspectorController.h
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/inspector/WorkerInspectorController.cpp
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+12 lines, -4 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/inspector/browser_protocol.json
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
|
View
|
1
2
3
4
5
6
7
8
9
|
4 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/loader/PingLoader.cpp
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/workers/DedicatedWorkerTest.cpp
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/workers/ThreadedWorkletMessagingProxy.cpp
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/workers/ThreadedWorkletTest.cpp
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/workers/WorkerThread.cpp
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/workers/WorkerThreadStartupData.h
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+8 lines, -3 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/workers/WorkerThreadStartupData.cpp
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/workers/WorkerThreadTest.cpp
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/workers/WorkerThreadTestHelper.h
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/devtools/front_end/network/NetworkDataGridNode.js
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/devtools/front_end/sdk/NetworkLog.js
|
View
|
1
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/devtools/front_end/sdk/NetworkRequest.js
|
View
|
1
2
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/devtools/front_end/sdk/SubTargetsManager.js
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+10 lines, -3 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/compositorworker/AnimationWorkletThreadTest.cpp
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThreadTest.cpp
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/webaudio/AudioWorkletThreadTest.cpp
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.h
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp
|
View
|
1
2
3
4
5
6
7
8
9
|
6 chunks |
+27 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextProxy.h
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
Total messages: 131 (107 generated)
|