[Webkit-unassigned] [Bug 191858] [GTK] Unexpected User-Agent on redirect

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 2 02:54:38 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=191858

--- Comment #26 from youenn fablet <youennf at gmail.com> ---
> > In general, navigation loads are not handling redirections so it is fine to
> > hope that a new user agent will be created.
> 
> You mean because of PSON?

Fetch spec is defining https://fetch.spec.whatwg.org/#requestredirect.
All navigation loads use 'manual'.
In that sense, user agent is making a navigation request and getting a response.
If the response is a redirection, it will do another navigation load, with a brand new request, possibly with a different user agent.

It would be interesting to understand why gtk is not able to override the User-Agent for navigation redirections (probably it is preserving the user agent and will not override it since present) while MacOS has not that issue.

For subresource loads, redirect mode is usually "follow".
https://fetch.spec.whatwg.org/#concept-http-redirect-fetch will most probably preserve the user-agent header and fetch spec will not override it.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200902/b11648fa/attachment-0001.htm>


More information about the webkit-unassigned mailing list