GoogleChrome / GoogleChrome/lighthouse

Support Network requestWillBeSentExtraInfo and responseReceivedExtraInfo events

Open
#9,738 4 comments 0 reactions 0 assignees View on GitHub
P2
Dominant language
JavaScript
Stars
30.8k
Forks
9.8k
Avg merge
1d 20h
Merged PRs (30d)
19

Description

[`Network.requestWillBeSentExtraInfo`](https://chromedevtools.github.io/devtools-protocol/tot/Network#event-requestWillBeSentExtraInfo)
[`Network.responseReceivedExtraInfo`](https://chromedevtools.github.io/devtools-protocol/tot/Network#event-responseReceivedExtraInfo)

Added in July. From the change (https://chromium-review.googlesource.com/c/chromium/src/+/1592771), looks like it was to include updated information about blocked cookies and for better [dealing with request information coming from outside of the renderer process](https://bugs.chromium.org/p/chromium/issues/detail?id=849483). See also e.g. previous issues like https://github.com/GoogleChrome/puppeteer/issues/487#issuecomment-324237551

One real example already is my confusion in https://github.com/GoogleChrome/lighthouse/pull/9731#issuecomment-535163364 :)

Biggest pain adapting our current setup will be the event ordering, since "there is no guarantee whether requestWillBeSent or requestWillBeSentExtraInfo will be fired first for the same request" (and same for `responseReceivedExtraInfo`)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.