Chromium Code Reviews| Index: third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js |
| diff --git a/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js b/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js |
| index 1a77e9750f7711779fb9fda5e39656600c8e6b52..a3bc1c99a497585d9398849741d8f62c6c7fef04 100644 |
| --- a/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js |
| +++ b/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js |
| @@ -617,7 +617,8 @@ WebInspector.ConsoleView.prototype = { |
| _saveConsole: function() |
| { |
| var url = WebInspector.targetManager.mainTarget().inspectedURL(); |
| - var filename = String.sprintf("%s-%d.log", url.asParsedURL().host, Date.now()); |
| + var parsedURL = url.asParsedURL(); |
| + var filename = String.sprintf("%s-%d.log", parsedURL ? parsedURL.host : WebInspector.UIString("log"), Date.now()); |
|
dgozman
2016/08/22 17:05:42
- log -> console;
- remove UIString, as it's not a
luoe
2016/08/22 17:40:40
Done.
|
| var stream = new WebInspector.FileOutputStream(); |
| var progressIndicator = new WebInspector.ProgressIndicator(); |