[ResourceTiming]: Improve alignment with spec for exposing `nextHopProtocol` across origin boundaries
- Category
- Security
- Type
- Chromium catches up
- Status
- In development (Chrome In development)
- Intent stage
- Prepare to ship
Summary
The Resource Timing(RT) API exposes the `nextHopProtocol` field to describe the underlying connection type used to fetch a resource. We're removing an old special-case where the `nextHopProtocol` of cross-origin requests were exposed more broadly than other fields in RT. This means we will more closely follow the relevant specifications and prevent leaking potentially sensitive connection information across origin boundaries.
Standards & signals
- Specification: https://www.w3.org/TR/resource-timing-2/
- Firefox: No signal — I posted an update to the linked (already-open, but directly related) bug, sent email to two @mozilla.com folks but haven't heard back from either channel.
- Safari: Shipped/Shipping — The linked bug might not be visible to all but I filed it to help give Safari folks a heads up... they fixed it before we did :D
- Web developers: No signals — Also reached out on blink-dev: https://groups.google.com/a/chromium.org/g/blink-dev/c/K13rq9Cxnpo/m/Swd9e6OVEAAJ The w3.org posts remains unanswered on the list. I received personal communication from a RUM provider who did a review of the changes and didn't have any concerns (🎉) but I think that doesn't count for public signals (😞). Blink-dev traffic was neutral; no red flags were raised nor any "we need this ASAP" kind of messages. It did, however, contribute some great advice for how to move the shipping process forward and solicit feedback from other folks.
- Tracking bug: https://crbug.com/1184726
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=resourcetiming-improve-alignment-with-spec-for-exposing-nexthopprotocol-across-origin-boundaries
- Chrome Platform Showcase: https://chrome-platform-showcase.paulkinlan-ea.deno.net/features
- GenDN reference: https://gendn.paulkinlan-ea.deno.net/features
- chrome.dev demos search: https://www.google.com/search?q=site%3Achrome.dev+%5BResourceTiming%5D%3A%20Improve%20alignment%20with%20spec%20for%20exposing%20%60nextHopProtocol%60%20across%20origin%20boundaries
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=%5BResourceTiming%5D%3A%20Improve%20alignment%20with%20spec%20for%20exposing%20%60nextHopProtocol%60%20across%20origin%20boundaries
- Baseline status: https://webstatus.dev/?q=%5BResourceTiming%5D%3A%20Improve%20alignment%20with%20spec%20for%20exposing%20%60nextHopProtocol%60%20across%20origin%20boundaries