Issue 377317 in chromium: <a> download attribute no longer working

30 views
Skip to first unread message

chro...@googlecode.com

unread,
May 25, 2014, 5:24:55 PM5/25/14
to chromi...@chromium.org
Status: Unconfirmed
Owner: ----
Labels: Cr-Content Pri-2 Via-Wizard Type-Bug OS-Linux

New issue 377317 by p...@lucidchart.com: <a> download attribute no longer
working
http://code.google.com/p/chromium/issues/detail?id=377317

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

Example URL:
http://jsfiddle.net/2PCU2/

Steps to reproduce the problem:
1. Create a link element with a download attribute
of "my-downloaded-file.html".
2. Click on the link.

What is the expected behavior?
A file should download with the name "my-downloaded-file.html".

What went wrong?
A file downloads with the name "download.html".

Does it occur on multiple sites: Yes

Is it a problem with a plugin? No

Did this work before? Yes 34

Does this work in other browsers? Yes

Chrome version: 35.0.1916.114 Channel: stable
OS Version:
Flash Version: Shockwave Flash 13.0 r0

Works in Firefox 29.
See also https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

chro...@googlecode.com

unread,
May 25, 2014, 5:27:13 PM5/25/14
to chromi...@chromium.org

chro...@googlecode.com

unread,
May 25, 2014, 5:28:55 PM5/25/14
to chromi...@chromium.org

Comment #2 on issue 377317 by joeytj...@gmail.com: <a> download attribute
This is not entirely correct. Only data-URIs don't work anymore. Simple
http:// links still do work: http://jsfiddle.net/Cf48L/

chro...@googlecode.com

unread,
May 25, 2014, 5:33:35 PM5/25/14
to chromi...@chromium.org

Comment #3 on issue 377317 by p...@lucidchart.com: <a> download attribute
The posted example actually does not work in FF (cross-origin concerns).
Updated example: http://jsfiddle.net/2PCU2/1/

chro...@googlecode.com

unread,
May 26, 2014, 5:23:22 AM5/26/14
to chromi...@chromium.org

Comment #4 on issue 377317 by guilla...@teleportd.com: <a> download
As stated ion SO, this seems to only fail with data URIs cf.
http://jsfiddle.net/Cf48L/

chro...@googlecode.com

unread,
May 26, 2014, 7:24:41 AM5/26/14
to chromi...@chromium.org

Comment #5 on issue 377317 by joeytj...@gmail.com: <a> download attribute
Well it also seems to fail when using non-relative urls (so it's probably a
cross-domain thing)

chro...@googlecode.com

unread,
May 26, 2014, 11:58:26 AM5/26/14
to chromi...@chromium.org

Comment #6 on issue 377317 by p...@lucidchart.com: <a> download attribute
http://jsfiddle.net/Cf48L/ fails for me as well. I see download.png and
download.html.

chro...@googlecode.com

unread,
May 26, 2014, 2:30:28 PM5/26/14
to chromi...@chromium.org

Comment #7 on issue 377317 by joeytj...@gmail.com: <a> download attribute
http://jsfiddle.net/Cf48L/1/ relative URLs do still work. Non-relative URLs
don't though.

chro...@googlecode.com

unread,
May 27, 2014, 2:13:37 AM5/27/14
to chromi...@chromium.org
Updates:
Status: Duplicate
Mergedinto: 376197

Comment #8 on issue 377317 by tk...@chromium.org: <a> download attribute no
longer working
http://code.google.com/p/chromium/issues/detail?id=377317

(No comment was entered for this change.)

chro...@googlecode.com

unread,
May 27, 2014, 5:28:05 AM5/27/14
to chromi...@chromium.org

Comment #9 on issue 377317 by dhirendr...@gmail.com: <a> download attribute
I have Tried with all 3 browser , it's not working for me it all . not able
to download changed file name
Reply all
Reply to author
Forward
0 new messages