Brush up DevTools SignedExchange support
This incorporats with dgozman's comments in crrev.com/c/1004890
- Change "from SignedExchange" to "from signed-exchange" in NetworkRequestNode.
- Show the signed exchagne url as the initiator of certificate request.
- Show "from signed-exchange" in the headers tab of the inner request.
- Add "View request" link in the preview tab of signed exchange to show the inner request.
- Add "Learn more" link in the preview tab of signed exchange.
Bug: 830505
Change-Id: Ica7ae52e563efb283c600c812be196951a12a336
Reviewed-on: https://chromium-review.googlesource.com/1065558
Commit-Queue: Tsuyoshi Horo <[email protected]>
Reviewed-by: Dmitry Gozman <[email protected]>
Reviewed-by: Kunihiko Sakamoto <[email protected]>
Cr-Original-Commit-Position: refs/heads/master@{#560287}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 4ac04d63b06db0e81a986691346f67ba8ad7f865
diff --git a/front_end/network/RequestHeadersView.js b/front_end/network/RequestHeadersView.js
index 6d4ad1a..5c5b4de 100644
--- a/front_end/network/RequestHeadersView.js
+++ b/front_end/network/RequestHeadersView.js
@@ -396,6 +396,9 @@
if (this._request.fetchedViaServiceWorker) {
statusText += ' ' + Common.UIString('(from ServiceWorker)');
statusTextElement.classList.add('status-from-cache');
+ } else if (this._request.redirectSource() && this._request.redirectSource().signedExchangeInfo()) {
+ statusText += ' ' + Common.UIString('(from signed-exchange)');
+ statusTextElement.classList.add('status-from-cache');
} else if (this._request.cached()) {
if (this._request.cachedInMemory())
statusText += ' ' + Common.UIString('(from memory cache)');