WICG / scroll-to-text-fragment

Proposal to allow specifying a text snippet in a URL fragment
Other
589 stars 42 forks source link

Sec-Fetch-Site header inspection is wrong #179

Closed annevk closed 10 months ago

annevk commented 2 years ago

You cannot inspect the Sec-Fetch-Site header as it's only appended just before the request hits the network. You cannot observe it from the code that deals with navigation.

bokand commented 1 year ago

If I'm reading it right, headers are appended in HTTP-network-or-cache fetch. It looks like that happens on httpRequest, a clone of the request so the request, which is what's given to the new Document as navigationParams won't include headers. Do I have that right?

If so, I'll have to find another way to get or propagate that information along to/frame the new document.

annevk commented 1 year ago

That's right. Abstracting it somehow might make sense.