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

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

Issue 2198443004: [DevTools] Fix location.script().sourceURL (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/sources/CallStackSidebarPane.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/CallStackSidebarPane.js b/third_party/WebKit/Source/devtools/front_end/sources/CallStackSidebarPane.js
index ab74c7e4a4861e3c6e2d2048c50adb340c51bd0d..a1762546a0166c0be897462d15813305eddd2a23 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/CallStackSidebarPane.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/CallStackSidebarPane.js
@@ -447,7 +447,8 @@ WebInspector.CallStackSidebarPane.CallFrame = function(functionName, location, l
this._asyncCallFrame = asyncCallFrame;
if (asyncCallFrame) {
- var locationElement = linkifier.linkifyRawLocation(location, location.script().sourceURL);
+ var script = location.script();
lushnikov 2016/07/29 23:37:43 while we're here, let's change the WebInspector.De
kozy 2016/07/29 23:54:12 Done.
+ var locationElement = linkifier.linkifyRawLocation(location, script ? script.sourceURL : "");
this.subtitleElement.appendChild(locationElement);
} else {
this._liveLocationPool = new WebInspector.LiveLocationPool();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698