Skip to content

Implement PDFNetworkStreamRangeRequestReader._onError, to handle range request errors with XMLHttpRequest (issue 9883) #13945

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

Merged
merged 2 commits into from
Sep 1, 2021

Conversation

Snuffleupagus
Copy link
Collaborator

@Snuffleupagus Snuffleupagus commented Aug 30, 2021

  • Use optional chaining more in the src/display/network.js file

    Also changes the different _onDone/_onProgress methods to use consistent parameter names, and some other small improvements.

  • Implement PDFNetworkStreamRangeRequestReader._onError, to handle range request errors with XMLHttpRequest (issue 9883)

    Given that the Fetch API is normally being used now, these changes are probably less important now than they used to be. However, given that it's simple enough to implement this I figured why not just fix issue Unhandled range-request errors #9883 (better late than never I suppose).

Fixes #9883

@Snuffleupagus
Copy link
Collaborator Author

/botio unittest

Also changes the different `_onDone`/`_onProgress` methods to use consistent parameter names, and some other small improvements.
…nge request errors with XMLHttpRequest (issue 9883)

Given that the Fetch API is normally being used now, these changes are probably less important now than they used to be. However, given that it's simple enough to implement this I figured why not just fix issue 9883 (better late than never I suppose).
@mozilla mozilla deleted a comment from pdfjsbot Aug 31, 2021
@mozilla mozilla deleted a comment from pdfjsbot Aug 31, 2021
@mozilla mozilla deleted a comment from pdfjsbot Aug 31, 2021
@mozilla mozilla deleted a comment from pdfjsbot Aug 31, 2021
@Snuffleupagus
Copy link
Collaborator Author

/botio unittest

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

Command cmd_unittest from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.67.70.0:8877/bafbf206afcfa08/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_unittest from @Snuffleupagus received. Current queue size: 0

Live output at: http://3.101.106.178:8877/65505656d06bb21/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/bafbf206afcfa08/output.txt

Total script time: 3.99 mins

  • Unit Tests: Passed

@pdfjsbot
Copy link

From: Bot.io (Windows)


Success

Full output at http://3.101.106.178:8877/65505656d06bb21/output.txt

Total script time: 5.43 mins

  • Unit Tests: Passed

@timvandermeij timvandermeij merged commit 2ed133b into mozilla:master Sep 1, 2021
@timvandermeij
Copy link
Contributor

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unhandled range-request errors
3 participants