Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(335)

Side by Side Diff: content/test/data/download/download-attribute.html

Issue 246893006: [Downloads] Clear suggested filename on cross origin redirect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Simplify use of EmbeddedTestServer Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <a download="suggested-filename" href="">link</a>
5 <script>
6 var anchorElement = document.querySelector('a[download]');
7 url = window.location.href;
8 anchorElement.href = url.substr(url.indexOf('=') + 1);
9 anchorElement.click();
10 </script>
11 </body>
12 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698