-
Notifications
You must be signed in to change notification settings - Fork 10k
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
[Firefox] Ensure that loading progress is reported, and the loadingBar updated, when disableRange=true
is set
#10714
Conversation
e73634f
to
b24723d
Compare
…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).
b24723d
to
f0a28b3
Compare
/botio unittest |
From: Bot.io (Linux m4)ReceivedCommand cmd_unittest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.67.70.0:8877/f90838320854bf6/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_unittest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.215.176.217:8877/6b1f6b4b3e01c16/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.67.70.0:8877/f90838320854bf6/output.txt Total script time: 2.80 mins
|
From: Bot.io (Windows)SuccessFull output at http://54.215.176.217:8877/6b1f6b4b3e01c16/output.txt Total script time: 6.07 mins
|
/botio-linux preview |
From: Bot.io (Linux m4)ReceivedCommand cmd_preview from @timvandermeij received. Current queue size: 0 Live output at: http://54.67.70.0:8877/ad82f4dd3e28e88/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.67.70.0:8877/ad82f4dd3e28e88/output.txt Total script time: 1.88 mins Published |
Looks good! |
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 withdisableRange=true
set. However, theprogressiveRead
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 wasPDFDataTransportStream._onProgress
since that method would only ever attempt to report it through a RangeReader (which won't exist whendisableRange=true
is set).