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

Unified Diff: content/browser/resources/media/dump_creator.js

Issue 448503002: Set the file name of the webrtc-internals dump "webrtc_internals_dump.txt". (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/resources/media/dump_creator.js
diff --git a/content/browser/resources/media/dump_creator.js b/content/browser/resources/media/dump_creator.js
index 17329a29bcb9879d1cb66ebd8bc260a867c462a0..15d708b3daf3b1af00f431ed5096da458f8a1803 100644
--- a/content/browser/resources/media/dump_creator.js
+++ b/content/browser/resources/media/dump_creator.js
@@ -86,7 +86,9 @@ var DumpCreator = (function() {
{type: 'octet/stream'});
var URL = window.URL.createObjectURL(textBlob);
- this.root_.getElementsByTagName('a')[0].href = URL;
+ var anchor = this.root_.getElementsByTagName('a')[0];
+ anchor.href = URL;
+ anchor.download = 'webrtc_internals_dump.txt';
// The default action of the anchor will download the URL.
},
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698