RESOLVED FIXED 56931
Web Inspector: fix breakpoints positions in formatted scripts.
https://bugs.webkit.org/show_bug.cgi?id=56931
Summary Web Inspector: fix breakpoints positions in formatted scripts.
Pavel Podivilov
Reported 2011-03-23 09:41:07 PDT
Web Inspector: fix breakpoints positions in formatted scripts. Add async requestMapping method to SourceFile interface as required for populating breakpoints sidebar pane when in "format all scripts" mode.
Attachments
Patch. (17.85 KB, patch)
2011-03-23 09:41 PDT, Pavel Podivilov
yurys: review+
Pavel Podivilov
Comment 1 2011-03-23 09:41:38 PDT
Yury Semikhatsky
Comment 2 2011-03-25 05:34:06 PDT
Comment on attachment 86629 [details] Patch. View in context: https://bugs.webkit.org/attachment.cgi?id=86629&action=review > Source/WebCore/inspector/front-end/DebuggerPresentationModel.js:276 > + function loadSnippet(callback) Can you turn it into a method on the PresentationBreakpoint? We don't usually set closures as object methods. > Source/WebCore/inspector/front-end/SourceFile.js:65 > + requestMapping: function(callback) It's not clear from the method name what kind of mapping is requested, consider renaming it to requestPosistionMapping or requestSourceMapping. Also why is this a request and not a synchronous getter? > Source/WebCore/inspector/front-end/SourceFile.js:190 > + this._scripts = scripts; You lean on the fact that the scripts are sorted, can you use a name reflecting this?
Pavel Podivilov
Comment 3 2011-03-28 04:57:55 PDT
Pavel Podivilov
Comment 4 2011-03-28 05:00:42 PDT
(In reply to comment #2) > (From update of attachment 86629 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=86629&action=review > > > Source/WebCore/inspector/front-end/DebuggerPresentationModel.js:276 > > + function loadSnippet(callback) > > Can you turn it into a method on the PresentationBreakpoint? We don't usually set closures as object methods. Done. > > > Source/WebCore/inspector/front-end/SourceFile.js:65 > > + requestMapping: function(callback) > > It's not clear from the method name what kind of mapping is requested, consider renaming it to requestPosistionMapping or requestSourceMapping. Done. > > Also why is this a request and not a synchronous getter? When we are in formatted scripts mode, we need to format the script to obtain source mapping which is done asynchronously. > > > Source/WebCore/inspector/front-end/SourceFile.js:190 > > + this._scripts = scripts; > > You lean on the fact that the scripts are sorted, can you use a name reflecting this? Done.
Note You need to log in before you can comment on or make changes to this bug.