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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js

Issue 2857453002: DevTools: support resolving a UILocation to multiple raw script locations (Closed)
Patch Set: Created 3 years, 8 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/sources/SourcesPanel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js b/third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js
index 09cf0a8058b8f3b613ca0164b9fb8b043216be28..5536fa264f5cd1b1b9fd1bbe152c8e821e8cb046 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js
@@ -645,14 +645,14 @@ Sources.SourcesPanel = class extends UI.Panel {
if (!executionContext)
return;
// Always use 0 column.
- var rawLocation =
- Bindings.debuggerWorkspaceBinding.uiLocationToRawLocation(uiLocation.uiSourceCode, uiLocation.lineNumber, 0);
- if (!rawLocation || rawLocation.debuggerModel !== executionContext.debuggerModel)
+ var rawLocations =
+ Bindings.debuggerWorkspaceBinding.uiLocationToRawLocations(uiLocation.uiSourceCode, uiLocation.lineNumber, 0);
+ if (!rawLocations.length || rawLocations[0].debuggerModel !== executionContext.debuggerModel)
dgozman 2017/05/02 19:47:41 TODO(kozyatinskiy): make it possible to continue t
return;
if (!this._prepareToResume())
return;
- rawLocation.continueToLocation();
+ rawLocations[0].continueToLocation();
}
_toggleBreakpointsActive() {

Powered by Google App Engine
This is Rietveld 408576698