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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 <html>
2 <body>
3 <a download="foo.exe" href="">link</a>
4 <script>
5 bb = new WebKitBlobBuilder
6 bb.append('foo')
7 b = bb.getBlob()
8 document.querySelector('a[download]').href = webkitURL.createObjectURL(b)
9
10 url = window.location.href
11 document.querySelector('a[download]').download = url.substr(url.indexOf('=') + 1)
12 document.querySelector('a[download]').click()
13 </script>
14 </body>
15 </html>
OLDNEW
« 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