Index: Source/WebCore/inspector/front-end/ScriptsPanel.js |
=================================================================== |
--- Source/WebCore/inspector/front-end/ScriptsPanel.js (revision 98107) |
+++ Source/WebCore/inspector/front-end/ScriptsPanel.js (working copy) |
@@ -632,7 +632,7 @@ |
canShowAnchorLocation: function(anchor) |
{ |
- return this._debuggerEnabled && WebInspector.debuggerModel.scriptsForURL(anchor.href).length; |
+ return this._debuggerEnabled && anchor.uiSourceCode; |
}, |
showAnchorLocation: function(anchor) |
@@ -643,7 +643,8 @@ |
_showSourceLine: function(uiSourceCode, lineNumber) |
{ |
var sourceFrame = this._showSourceFrameAndAddToHistory(uiSourceCode); |
- sourceFrame.highlightLine(lineNumber); |
+ if (lineNumber) |
+ sourceFrame.highlightLine(lineNumber); |
}, |
_showSourceFrameAndAddToHistory: function(uiSourceCode) |