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

Unified Diff: third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js

Issue 2186753002: [DevTools] Track URL through the target (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: InspectedURLChanged now sends target and not just URL Created 4 years, 5 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
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 f41672c9b35a9187a1f414a30b8484b5c94d47c0..dc81ab5b263a32335b84b90925c756975ef4a6d3 100644
--- a/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js
+++ b/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js
@@ -599,7 +599,8 @@ WebInspector.ConsoleView.prototype = {
_saveConsole: function()
{
- var filename = String.sprintf("%s-%d.log", WebInspector.targetManager.inspectedPageDomain(), Date.now());
+ var target = WebInspector.context.flavor(WebInspector.ExecutionContext).target();
dgozman 2016/07/27 20:24:23 Use mainTarget.
eostroukhov-old 2016/07/27 21:39:46 Done. I just wanted to be smart here :)
+ var filename = String.sprintf("%s-%d.log", target.inspectedDomain(), Date.now());
var stream = new WebInspector.FileOutputStream();
var progressIndicator = new WebInspector.ProgressIndicator();

Powered by Google App Engine
This is Rietveld 408576698