Partially closes #13 on Firefox in order to prepare to Chrome future release #261
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Since #13 was reported, Chrome had an issue where
StreamSaver.js/sw.js
Line 66 in cd8e32a
Also, reported on #13, ticket was filled in for the chrome team (ticket #638494) a few years ago and it got merged last week.
Testing on Canary version
99.0.4828.0
, cancellation event still not being triggered but worker seems to be killed on user cancellation causing stream saver to write to throw atwrite()
. (more investigation on this behaviour is actually needed but it does not allow more writing on the main thread as expected).Now, to make sure we do abort the operation at user cancellation on Firefox, that does not kill the worker but just closes the file descriptor and maintains the worker running without sending any signal to the main thread the proposed changes are implemented.