RESOLVED FIXED 162531
[WK2] anchor.download attribute value is ignored by NETWORK_SESSION code path
https://bugs.webkit.org/show_bug.cgi?id=162531
Summary [WK2] anchor.download attribute value is ignored by NETWORK_SESSION code path
Chris Dumez
Reported 2016-09-24 09:53:52 PDT
anchor.download attribute value is ignored when href contains a data URL. Test case: http://jsfiddle.net/cW7W5/1582/ It should download the file as icon.gif but doesn't.
Attachments
Patch (13.02 KB, patch)
2016-09-24 16:04 PDT, Chris Dumez
no flags
Chris Dumez
Comment 1 2016-09-24 09:59:55 PDT
Chris Dumez
Comment 2 2016-09-24 10:01:57 PDT
We call WebFrame::startDownload() with the right URL and suggestedName. However, the suggested name apparently gets ignored later on somehow.
Chris Dumez
Comment 3 2016-09-24 10:03:45 PDT
Oh, it looks like the new NETWORK_SESSION code path completely ignores 'suggestedName' on Network process side. This bug is not specific to data URLs.
Chris Dumez
Comment 4 2016-09-24 10:05:34 PDT
Should be trivial to fix. I'll look into it after I am done with Bug 156099.
Chris Dumez
Comment 5 2016-09-24 16:04:54 PDT
Chris Dumez
Comment 6 2016-09-24 18:02:22 PDT
Comment on attachment 289764 [details] Patch Clearing flags on attachment: 289764 Committed r206355: <http://trac.webkit.org/changeset/206355>
Chris Dumez
Comment 7 2016-09-24 18:02:27 PDT
All reviewed patches have been landed. Closing bug.
Chris Dumez
Comment 8 2016-09-24 19:10:16 PDT
*** Bug 156067 has been marked as a duplicate of this bug. ***
Note You need to log in before you can comment on or make changes to this bug.