WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED MOVED
261332
Statuscodes 305,306,309, ... redirect even though they should not
https://bugs.webkit.org/show_bug.cgi?id=261332
Summary
Statuscodes 305,306,309, ... redirect even though they should not
jannis.rautenstrauch
Reported
2023-09-08 07:31:31 PDT
According to the fetch specification: "A redirect status is a status that is 301, 302, 303, 307, or 308.", i.e., all other status codes should not redirect. (
https://fetch.spec.whatwg.org/#statuses
) WebKit redirect for many other status codes such as 305, 306, 309. Test:
https://echo.sectec.rocks/echo/?location=https://example.org&ecohd_status=305
Attachments
Add attachment
proposed patch, testcase, etc.
Ahmad Saleem
Comment 1
2023-09-09 04:28:36 PDT
I am able to reproduce this in Safari / WebKit ToT, where the URL redirects to example.com while Chrome Canary 118 and Firefox Nightly 118 does not redirect. Adding 'BrowserCompat' because both other browsers are matching each other and WebKit is behaving different.
Radar WebKit Bug Importer
Comment 2
2023-09-10 18:26:34 PDT
<
rdar://problem/115264053
>
Karl Dubost
Comment 3
2023-09-10 19:42:25 PDT
Confirmed.
Karl Dubost
Comment 4
2023-09-10 21:18:49 PDT
This can't be solved on the WebKit Project but this will be taken care of in the Radar.
Karl Dubost
Comment 5
2023-09-10 22:17:27 PDT
Jannis, Thanks a lot if you have more like these, do not hesitate to report them. Super appreciated.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug