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

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

Issue 1891623003: [Downloads] Set the Referrer header for resumed requests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Catch up with ToT Created 4 years, 7 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <body> 3 <body>
4 <a download="suggested-filename" href="">link</a> 4 <a href="">link</a>
5 <script> 5 <script>
6 var anchorElement = document.querySelector('a[download]'); 6 var anchorElement = document.querySelector('a');
7 url = window.location.href; 7 url = window.location.href;
8 anchorElement.href = url.substr(url.indexOf('=') + 1); 8 anchorElement.href = url.substr(url.indexOf('=') + 1);
9 anchorElement.click(); 9 anchorElement.click();
10 </script> 10 </script>
11 </body> 11 </body>
12 </html> 12 </html>
OLDNEW
« no previous file with comments | « content/public/test/test_download_request_handler.cc ('k') | content/test/data/download/download-link.html.mock-http-headers » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698