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

Fix download button waiting if document has started but not completed downloading #4455

Merged
merged 1 commit into from
Apr 3, 2014

Conversation

aib
Copy link
Contributor

@aib aib commented Mar 14, 2014

Fixes #1826

The "download from cache" feature works like a charm but is currently triggered when a document starts downloading/displaying. (A plain "download from URL" is used when the document has not even started that). This commit keeps track of a document's download completion status and falls back to "download from URL" if it is not in the cache, making the download button consistently responsive.

@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

From: Bot.io (Linux)


Received

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

Live output at: http://107.21.233.14:8877/51e08113710fdcf/output.txt

@timvandermeij
Copy link
Contributor

Great! This has been bugging me for a while, so it's nice to see a patch for this.

yurydelendik added a commit that referenced this pull request Apr 3, 2014
Fix download button waiting if document has started but not completed downloading
@yurydelendik yurydelendik merged commit 9c59437 into mozilla:master Apr 3, 2014
@yurydelendik
Copy link
Contributor

Thanks

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

Successfully merging this pull request may close these issues.

Download button should not wait for the entire download
4 participants