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

Unified Diff: third_party/WebKit/Source/devtools/front_end/console_model/ConsoleModel.js

Issue 2878053003: DevTools: Find executionContextId for console message from scriptId (Closed)
Patch Set: move into runtime Created 3 years, 7 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 | third_party/WebKit/Source/devtools/front_end/sdk/RuntimeModel.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/console_model/ConsoleModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/console_model/ConsoleModel.js b/third_party/WebKit/Source/devtools/front_end/console_model/ConsoleModel.js
index 17a224b720a28250be5b0a2c32ed8c2e8dfad7d2..3831e39dca6d283cbbcb7d21d8cca694e1c8d25c 100644
--- a/third_party/WebKit/Source/devtools/front_end/console_model/ConsoleModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/console_model/ConsoleModel.js
@@ -440,6 +440,12 @@ ConsoleModel.ConsoleMessage = class {
}
}
}
+ if (!this.executionContextId && this._runtimeModel) {
+ if (this.scriptId)
+ this.executionContextId = this._runtimeModel.executionContextIdForScriptId(this.scriptId);
+ else if (this.stackTrace)
+ this.executionContextId = this._runtimeModel.executionContextForStackTrace(this.stackTrace);
+ }
}
/**
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/sdk/RuntimeModel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698