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

Side by Side Diff: chrome/test/data/download-anchor-attrib.html

Issue 9762002: Disable downloads from "file:" or "data:" URLs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changed test to make sure to run message loop while pinging IO thread. Created 8 years, 9 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
1 <html> 1 <html>
2 <head><title>Download Test for &lt;a download&gt;</title></head> 2 <head><title>Download Test for &lt;a download&gt;</title></head>
3 <body> 3 <body>
4 <a id='red-dot' href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYA AACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg== " download='a_red_dot.png'>Download Red Dot!</a> 4 <a id='red-dot' href="anchor_download_test.png" download='a_red_dot.png'>Downloa d Red Dot!</a>
5 <script> 5 <script>
6 window.setTimeout(function() { 6 window.setTimeout(function() {
7 var evt = document.createEvent("MouseEvent"); 7 var evt = document.createEvent("MouseEvent");
8 evt.initMouseEvent('click', true, true); 8 evt.initMouseEvent('click', true, true);
9 document.getElementById('red-dot').dispatchEvent(evt); 9 document.getElementById('red-dot').dispatchEvent(evt);
10 }, 0); 10 }, 0);
11 </script> 11 </script>
12 </body> 12 </body>
13 </html> 13 </html>
OLDNEW
« no previous file with comments | « chrome/browser/download/download_browsertest.cc ('k') | chrome/test/data/extensions/api_test/downloads/test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698