-
Notifications
You must be signed in to change notification settings - Fork 16.2k
fix: SimpleURLLoaderWrapper redirects #21630
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like a reasonable fix, thanks for looking into this.
Also, it'd be great if you could add a test for this behavior so we can avoid regressing it in future! |
@nornagon It would be great if you can take over this PR, create a validation build, add the necessary tests and port the fix to 7-1-x. As mentioned in the PR description my machine hangs trying to build Electron locally and I've spent enough time tracking down the regression you introduced. |
This fix is urgently needed, as nearly all Electron In-App updates via GitHub using Please fast-track this. |
Congrats on merging your first pull request! 🎉🎉🎉 |
Release Notes Persisted
|
I have automatically backported this PR to "8-x-y", please check out #21644 |
I have automatically backported this PR to "7-1-x", please check out #21645 |
Description of Change
Fix #21566.
PR #21304 regressed
electron-updater
as it raises an error ifrequest.abort()
is called in a redirect handler. For all apps that shipped withelectron-updater
since 7.1.3+ auto-update is not working and users will be stranded with outdated bits. Fix is to not raise an error if the request was aborted within the handler.@nornagon @MarshallOfSound, I was unable to build and verify this change (mac stuck for many hours in
gclient sync
). Since you introduced this regression, can you help or commit the correct fix and publish an Electron 7.1.x release including the fix?Checklist
npm test
passes@nornagon @MarshallOfSound
Notes: Fixed an issue in the
net
module where aborting a request during a redirect could cause an error to be thrown.