Index: Source/WebCore/inspector/front-end/ScriptsPanel.js |
=================================================================== |
--- Source/WebCore/inspector/front-end/ScriptsPanel.js (revision 113431) |
+++ Source/WebCore/inspector/front-end/ScriptsPanel.js (working copy) |
@@ -598,8 +598,13 @@ |
for (var i = 0; i < oldUISourceCodeList.length; ++i) |
this._removeBreakpointListeners(oldUISourceCodeList[i]); |
- for (var i = 0; i < uiSourceCodeList.length; ++i) |
- this._addBreakpointListeners(uiSourceCodeList[i]); |
+ for (var i = 0; i < uiSourceCodeList.length; ++i) { |
+ var uiSourceCode = uiSourceCodeList[i]; |
+ var breakpoints = uiSourceCode.breakpoints(); |
+ for (var lineNumber in breakpoints) |
+ this._uiBreakpointAdded({ data: breakpoints[lineNumber] }); |
+ this._addBreakpointListeners(uiSourceCode); |
+ } |
}, |
_sourceFrameLoaded: function(event) |