[Bug]: URL did not change after 302 response using protocol handler #42219
Labels
30-x-y
31-x-y
bug 🪲
component/protocol
has-repro-gist
Issue can be reproduced with code at https://gist.github.com/
status/confirmed
A maintainer reproduced the bug or agreed with the feature
Preflight Checklist
Electron Version
30.0.6
What operating system are you using?
Windows
Operating System Version
Windows 10 22H2 19045.4291
What arch are you using?
x64
Last Known Working Electron version
Unknown
Expected Behavior
When using
http
/https
protocol.handle withnet.fetch
in Electron and the server returns a 302 status code with a new Location header, although Electron accurately shows the correct header and status code in theonHeadersReceived
andonBeforeRedirect
events, it returns a 200 status code to the browser and the URL is not changed.The browser should be redirected to
https://www.google.com
, and the status code should be 302.Actual Behavior
The browser returns a 200 status code, and the URL is not changed, but the content from the new page is displayed
Testcase Gist URL
https://gist.github.com/shadaxv/fe1242885053bdf4ed6a27c9ecc97049
Additional Information
No response
The text was updated successfully, but these errors were encountered: