New issue
Advanced search Search tips

Issue 597003 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 595305
Owner: ----
Closed: Mar 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

Cannot download files created within JS

Reported by kwpol...@gmail.com, Mar 22 2016

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2679.0 Safari/537.36

Steps to reproduce the problem:
1a. Go to https://getbootstrap.com/customize/
2a. Press “Compile and Download”

1b. Alternatively, try saving the code at: https://microbit.pythonanywhere.com/editor.html

What is the expected behavior?

What went wrong?
A “Failed - No file” message appears in the download tracker.

Did this work before? Yes a few months ago

Chrome version: 51.0.2679.0  Channel: dev
OS Version: Arch Linux
Flash Version: Shockwave Flash 21.0 r0

Might or might not be related to: https://github.com/eligrey/FileSaver.js/
 

Comment 1 by tkent@chromium.org, Mar 23 2016

Labels: Needs-TestConfirmation
I couldn't reproduce this with 51.0.2687.0 canary.

Comment 2 by tkent@chromium.org, Mar 24 2016

Labels: Needs-Bisect Needs-Reduction
Labels: TE-Hardware-Dependency
Unable to reproduce the above issue on Ubuntu 14.04 with chrome versions 51.0.2687.0(Dev), 51.0.2692.0(Canary), 50.0.2661.49(Beta) & 49.0.2623.108(Stable) & no error message seen in the downloads.

Below is the scree-recording for the same.
Compile and download.ogv
2.9 MB Download
Components: -Blink UI>Browser>Downloads

Comment 5 by asanka@chromium.org, Mar 28 2016

Labels: -Needs-Reduction -Needs-TestConfirmation -Needs-Bisect M-50
Mergedinto: 595305
Status: Duplicate (was: Unconfirmed)
FileSaver.js revokes an object URL based on a timeout after invoking a download using the same URL. The reproduction would be very racy (i.e. not reliably reproducible). You can make the reproduction deterministic by removing the timeout in https://github.com/eligrey/FileSaver.js/blob/master/FileSaver.js#L46.

That said, this is a known issue and should be fixed on Dev/Canary builds. Beta should receive the fix in the next refresh.

Comment 6 by kwpol...@gmail.com, Mar 28 2016

Great, thank you for debugging!

Sign in to add a comment