[DevTools]Plumb async chain from network requests to sw 'fetch'
This is based on https://chromium-review.googlesource.com/c/chromium/src/+/1725223 by Dmitry Gozman. Part to support "stepping back from fetch" is in a different CL. Explainer: https://docs.google.com/document/d/1WJcNA9PymdWQXOZ4b0xSPmqQCDplWO6c01Ve47lQ2xo/edit?usp=sharing This patch introduces debug header "X-Debug-Stack-Trace-Id", which is added when Network.setDebugHeaderEnabled is called. This header plumbs stack trace id and can be used to stitch async stacks between page and service worker, or between page and node.js backend (future work). The header is added by InspectorNetworkAgent and parsed by ServiceWorkerGlobalScope. Frontend changes to enable 'step into service workers': https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2292897 Screenshot before: https://imgur.com/pIxDfHa After: https://imgur.com/MHXM5BI Change-Id: I4aeeca29802318fe063459562c31e147e7b0d9e2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2335644 Commit-Queue: Songtao Xia <soxia@microsoft.com> Reviewed-by:Andrey Kosyakov <caseq@chromium.org> Cr-Commit-Position: refs/heads/master@{#802088}
Showing
Please register or sign in to comment