| 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 504b8d3d0a79e07f01755997ac2ccff539e2f084..a806360c4e7987d27d7a136579afd8ae89fd2e16 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/sources/CallStackSidebarPane.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/sources/CallStackSidebarPane.js
|
| @@ -274,10 +274,9 @@ Sources.CallStackSidebarPane = class extends UI.SimpleView {
|
| contextMenu.appendItem(Common.UIString('Restart frame'), () => item.debuggerCallFrame.restart());
|
| contextMenu.appendItem(Common.UIString('Copy stack trace'), this._copyStackTrace.bind(this));
|
| var location = this._itemLocation(item);
|
| - if (location) {
|
| - var uiLocation = Bindings.debuggerWorkspaceBinding.rawLocationToUILocation(location);
|
| + var uiLocation = location ? Bindings.debuggerWorkspaceBinding.rawLocationToUILocation(location) : null;
|
| + if (uiLocation)
|
| this.appendBlackboxURLContextMenuItems(contextMenu, uiLocation.uiSourceCode);
|
| - }
|
| contextMenu.show();
|
| }
|
|
|
| @@ -361,10 +360,9 @@ Sources.CallStackSidebarPane = class extends UI.SimpleView {
|
| continue;
|
| var itemText = this._itemTitle(item);
|
| var location = this._itemLocation(item);
|
| - if (location) {
|
| - var uiLocation = Bindings.debuggerWorkspaceBinding.rawLocationToUILocation(location);
|
| + var uiLocation = location ? Bindings.debuggerWorkspaceBinding.rawLocationToUILocation(location) : null;
|
| + if (uiLocation)
|
| itemText += ' (' + uiLocation.linkText(true /* skipTrim */) + ')';
|
| - }
|
| text.push(itemText);
|
| }
|
| InspectorFrontendHost.copyText(text.join('\n'));
|
|
|