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

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

Issue 9834039: Remove resource_request_info_impl.h dependency from chrome. This also makes blob/file system urls w… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/url_constants.cc ('k') | content/browser/net/view_blob_internals_job_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/downloads/download-dangerous-blob.html
===================================================================
--- chrome/test/data/downloads/download-dangerous-blob.html (revision 0)
+++ chrome/test/data/downloads/download-dangerous-blob.html (revision 0)
@@ -0,0 +1,15 @@
+<html>
+<body>
+<a download="foo.exe" href="">link</a>
+<script>
+ bb = new WebKitBlobBuilder
+ bb.append('foo')
+ b = bb.getBlob()
+ document.querySelector('a[download]').href = webkitURL.createObjectURL(b)
+
+ url = window.location.href
+ document.querySelector('a[download]').download = url.substr(url.indexOf('=') + 1)
+ document.querySelector('a[download]').click()
+</script>
+</body>
+</html>
Property changes on: chrome\test\data\downloads\download-dangerous-blob.html
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome/common/url_constants.cc ('k') | content/browser/net/view_blob_internals_job_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698