Skip to content
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

[Firefox] Ensure that loading progress is reported, and the loadingBar updated, when disableRange=true is set #10714

Conversation

Snuffleupagus
Copy link
Collaborator

@Snuffleupagus Snuffleupagus commented Apr 6, 2019

With PR #10675 having fixed the completely broken disableRange=true setting in the Firefox version of PDF.js, I couldn't help but noticing that loading progress is never reported properly in that case.
Currently loading progress is only reported for the rangeProgress chrome-event, which obviously isn't dispatched with disableRange=true set. However, the progressiveRead chrome-event includes loading progress as well, but this information isn't being used in any way.
Furthermore, the PDFDataRangeTransport.onDataProgress method wasn't able to handle "complete" loading information, and neither was PDFDataTransportStream._onProgress since that method would only ever attempt to report it through a RangeReader (which won't exist when disableRange=true is set).

@Snuffleupagus Snuffleupagus force-pushed the firefox-transport-stream-progress branch from e73634f to b24723d Compare April 6, 2019 09:21
…r updated, when `disableRange=true` is set

With PR 10675 having fixed the completely broken `disableRange=true` setting in the Firefox version of PDF.js, I couldn't help but noticing that loading progress is never reported properly in that case.
Currently loading progress is only reported for the `rangeProgress` chrome-event, which obviously isn't dispatched with `disableRange=true` set. However, the `progressiveRead` chrome-event includes loading progress as well, but this information isn't being used in any way.
Furthermore, the `PDFDataRangeTransport.onDataProgress` method wasn't able to handle "complete" loading information, and neither was `PDFDataTransportStream._onProgress` since that method would only ever attempt to report it through a RangeReader (which won't exist when `disableRange=true` is set).
@Snuffleupagus Snuffleupagus force-pushed the firefox-transport-stream-progress branch from b24723d to f0a28b3 Compare April 6, 2019 10:53
@Snuffleupagus
Copy link
Collaborator Author

/botio unittest

@pdfjsbot
Copy link

pdfjsbot commented Apr 6, 2019

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/f90838320854bf6/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Apr 6, 2019

From: Bot.io (Windows)


Received

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

Live output at: http://54.215.176.217:8877/6b1f6b4b3e01c16/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Apr 6, 2019

From: Bot.io (Linux m4)


Success

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

Total script time: 2.80 mins

  • Unit Tests: Passed

@pdfjsbot
Copy link

pdfjsbot commented Apr 6, 2019

From: Bot.io (Windows)


Success

Full output at http://54.215.176.217:8877/6b1f6b4b3e01c16/output.txt

Total script time: 6.07 mins

  • Unit Tests: Passed

@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

pdfjsbot commented Apr 6, 2019

From: Bot.io (Linux m4)


Received

Command cmd_preview from @timvandermeij received. Current queue size: 0

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

@pdfjsbot
Copy link

pdfjsbot commented Apr 6, 2019

From: Bot.io (Linux m4)


Success

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

Total script time: 1.88 mins

Published

@timvandermeij timvandermeij merged commit 2a9d195 into mozilla:master Apr 6, 2019
@timvandermeij
Copy link
Contributor

Looks good!

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

Successfully merging this pull request may close these issues.

3 participants