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

Unified Diff: third_party/WebKit/Source/devtools/front_end/components/ObjectPopoverHelper.js

Issue 2122423002: [DevTools] Remove functionDetails from protocol.json (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove-generator-details-from-protocol
Patch Set: a 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/components/ObjectPopoverHelper.js
diff --git a/third_party/WebKit/Source/devtools/front_end/components/ObjectPopoverHelper.js b/third_party/WebKit/Source/devtools/front_end/components/ObjectPopoverHelper.js
index 4b9b2fe516537c9d689888884baad2891d1000fa..e06236f53c7579ca12b9afcc7bb7b247d54b013b 100644
--- a/third_party/WebKit/Source/devtools/front_end/components/ObjectPopoverHelper.js
+++ b/third_party/WebKit/Source/devtools/front_end/components/ObjectPopoverHelper.js
@@ -75,7 +75,7 @@ WebInspector.ObjectPopoverHelper.prototype = {
}
}
WebInspector.ObjectPropertiesSection.formatObjectAsFunction(funcObject, popoverValueElement, true);
- funcObject.functionDetails(didGetFunctionDetails.bind(this, popoverContentElement, anchorElement));
+ funcObject.debuggerModel().functionDetailsPromise(funcObject).then(didGetFunctionDetails.bind(this, popoverContentElement, anchorElement));
}
/**
@@ -95,7 +95,6 @@ WebInspector.ObjectPopoverHelper.prototype = {
functionName.textContent = WebInspector.beautifyFunctionName(response.functionName);
var rawLocation = response.location;
- var sourceURL = response.sourceURL;
var linkContainer = title.createChild("div", "function-title-link-container");
if (rawLocation && Runtime.experiments.isEnabled("continueToFirstInvocation")) {
var sectionToolbar = new WebInspector.Toolbar("function-location-step-into", linkContainer);
@@ -103,6 +102,7 @@ WebInspector.ObjectPopoverHelper.prototype = {
stepInto.addEventListener("click", () => rawLocation.continueToLocation());
sectionToolbar.appendToolbarItem(stepInto);
}
+ var sourceURL = rawLocation.script() ? rawLocation.script().sourceURL : null;
if (rawLocation && sourceURL) {
var link = this._lazyLinkifier().linkifyRawLocation(rawLocation, sourceURL);
linkContainer.appendChild(link);

Powered by Google App Engine
This is Rietveld 408576698