-
Notifications
You must be signed in to change notification settings - Fork 15.7k
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
Downloads are failing with state 'interrupted' from custom protocols in 1.8.2-beta.3 #11657
Comments
Im booting up my linux box to do some debugging on the electron codebase. Will report what I find (hopefully will be able to PR a fix). |
This is getting logged by chromium:
|
I found the issue. It was introduced by this commit: 6b2ddc4 @tarruda It looks like |
Would anybody object to a PR which reverts 6b2ddc4 ? |
The main reason I added 6b2ddc4 is to allow In any case, my approach to breaking the infinite loop was was kinda hacky and needs to be fixed. A possible solution is to put |
Ok solid, I appreciate it. |
I've been quite busy these days so couldn't find the time to do it yet, but will probably be able to do this on the weekend. |
net::URLRequest inherits from base::SupportsUserData, which allows associating arbitrary data with the request. Use this mechanism as a condition for filtering requests from custom protocols. Fix #11657
net::URLRequest inherits from base::SupportsUserData, which allows associating arbitrary data with the request. Use this mechanism as a condition for filtering requests from custom protocols. Close #11657
net::URLRequest inherits from base::SupportsUserData, which allows associating arbitrary data with the request. Use this mechanism as a condition for filtering requests from custom protocols. Close #11657
net::URLRequest inherits from base::SupportsUserData, which allows associating arbitrary data with the request. Use this mechanism as a condition for filtering requests from custom protocols. Close #11657
@alexeykuzmin I'll backport to 1-8-x |
Was backported in #12100. |
net::URLRequest inherits from base::SupportsUserData, which allows associating arbitrary data with the request. Use this mechanism as a condition for filtering requests from custom protocols. Close electron#11657
Expected behavior
File downloads from custom protocols should complete without issue.
Actual behavior
Before even triggering the custom protocol handler, the download-item emits 'done' with a state of 'interrupted'. In my demo linked below, I use the new registerStreamProtocol, but I was able to reproduce using registerHttpProtocol as well.
How to reproduce
Use https://github.com/pfrazee/electron-download-interrupt-bug
The text was updated successfully, but these errors were encountered: