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

Side by Side Diff: chrome/test/data/downloads/download-dangerous-blob.html

Issue 121203002: Use window.URL instead of window.webkitURL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: window.URL -> URL in user_images_grid.js Created 6 years, 11 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 <html> 1 <html>
2 <body> 2 <body>
3 <a download="foo.exe" href="">link</a> 3 <a download="foo.exe" href="">link</a>
4 <script> 4 <script>
5 var blob = new Blob(['foo']); 5 var blob = new Blob(['foo']);
6 document.querySelector('a[download]').href = webkitURL.createObjectURL(blob); 6 document.querySelector('a[download]').href = URL.createObjectURL(blob);
7 7
8 url = window.location.href 8 url = window.location.href
9 document.querySelector('a[download]').download = url.substr(url.indexOf('=') + 1) 9 document.querySelector('a[download]').download = url.substr(url.indexOf('=') + 1)
10 document.querySelector('a[download]').click() 10 document.querySelector('a[download]').click()
11 </script> 11 </script>
12 </body> 12 </body>
13 </html> 13 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698