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] Avoid displaying the indeterminate loadingBar when disableStream=true is set (PR 10714 follow-up) #10742

Conversation

Snuffleupagus
Copy link
Collaborator

@Snuffleupagus Snuffleupagus commented Apr 16, 2019

While PR #10714 did address the disableRange=true case, it also managed to "break" the disableStream=true case instead since the indeterminate loadingBar is now displayed when it shouldn't; sorry about that!
The solution is simple enough though, don't attempt to fallback to _fullRequestReader.onProgress when handling "incomplete" loading information. Edit: Smaller diff with https://github.com/mozilla/pdf.js/pull/10742/files?w=1

/cc @timvandermeij

…Stream=true` is set (PR 10714 follow-up)

While PR 10714 did address the `disableRange=true` case, it also managed to "break" the `disableStream=true` case instead since the indeterminate loadingBar is now displayed when it shouldn't; sorry about that!
The solution is simple enough though, don't attempt to fallback to `_fullRequestReader.onProgress` when handling "incomplete" loading information.
@Snuffleupagus Snuffleupagus force-pushed the firefox-transport-disableStream-progress branch from bf04f18 to 5e9b606 Compare April 16, 2019 13:35
@timvandermeij
Copy link
Contributor

/botio unittest

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

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

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

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://54.215.176.217:8877/0cc8bf2274066de/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

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

Total script time: 2.75 mins

  • Unit Tests: Passed

@pdfjsbot
Copy link

From: Bot.io (Windows)


Success

Full output at http://54.215.176.217:8877/0cc8bf2274066de/output.txt

Total script time: 5.76 mins

  • Unit Tests: Passed

@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

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

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/271b7dbe85d2260/output.txt

Total script time: 1.88 mins

Published

@timvandermeij timvandermeij merged commit 48f1002 into mozilla:master Apr 16, 2019
@timvandermeij
Copy link
Contributor

Thank you!

@Snuffleupagus Snuffleupagus deleted the firefox-transport-disableStream-progress branch April 16, 2019 23:31
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.

None yet

3 participants