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

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

Issue 2561903002: [downloads] Set initiator when handling downloads via a[download] (Closed)
Patch Set: Fix compilation Created 4 years 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
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