- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / test / data / downloads / download-dangerous-blob.html
1 <html>
2 <body>
3 <a download="foo.exe" href="">link</a>
4 <script>
5   var blob = new Blob(['foo']);
6   document.querySelector('a[download]').href = webkitURL.createObjectURL(blob);
7
8   url = window.location.href
9   document.querySelector('a[download]').download = url.substr(url.indexOf('=') + 1)
10   document.querySelector('a[download]').click() 
11 </script>
12 </body>
13 </html>