You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sounds reasonable to me. I think it is good idea to abort fetch in PDFFetchStream when document destroy.
I think all we need is to have a property something like this.controller = new AbortController() in PDFFetchStreamReader and PDFFetchStreamRangeReader and pass it to the fetch(url, { this.controller.signal, ... }) and call this.controller.abort() in cancel method.
Steps to reproduce the problem:
What is the expected behavior?
Fetch request should be aborted when cancel is called on
PDFFetchStreamReader
andPDFFetchStreamRangeReader
.Context
It seems when fetch was implemented (#6126 (comment))
abort
on fetch was still in flux.It seems now that has settled and chromium has also implemented aborting fetch requests in 66 (https://bugs.chromium.org/p/chromium/issues/detail?id=750599)
The text was updated successfully, but these errors were encountered: