-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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-Commit-Position: refs/heads/master@{#445630}
- Loading branch information
Showing
4 changed files
with
20 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters