RESOLVED FIXED 62282
Web Inspector: script links are displayed with original line number in pretty-print mode.
https://bugs.webkit.org/show_bug.cgi?id=62282
Summary Web Inspector: script links are displayed with original line number in pretty...
Pavel Podivilov
Reported 2011-06-08 07:59:06 PDT
Web Inspector: script links are displayed with original line number in pretty-print mode.
Attachments
Patch. (10.23 KB, patch)
2011-06-08 08:00 PDT, Pavel Podivilov
no flags
Patch. (10.98 KB, patch)
2011-06-09 02:04 PDT, Pavel Podivilov
eric: review-
Added test. (13.83 KB, patch)
2011-06-15 03:32 PDT, Pavel Podivilov
yurys: review+
Pavel Podivilov
Comment 1 2011-06-08 08:00:25 PDT
Yury Semikhatsky
Comment 2 2011-06-08 08:31:01 PDT
Comment on attachment 96422 [details] Patch. View in context: https://bugs.webkit.org/attachment.cgi?id=96422&action=review > Source/WebCore/inspector/front-end/Panel.js:394 > + linkText += ":" + (lineNumber + 1); Common panel code shouldn't contain lineNumber arithmetic. > Source/WebCore/inspector/front-end/inspector.js:1280 > + var node = this.panels[preferredPanel].createAnchor(url, lineNumber - 1, classes, tooltipText); This method shouldn't modify lineNumber.
Yury Semikhatsky
Comment 3 2011-06-08 08:34:07 PDT
Comment on attachment 96422 [details] Patch. View in context: https://bugs.webkit.org/attachment.cgi?id=96422&action=review > Source/WebCore/inspector/front-end/DebuggerPresentationModel.js:106 > + { Anchors may be removed so there should be corresponding method that would remove them from _anchors here.
Pavel Podivilov
Comment 4 2011-06-09 02:04:15 PDT
(In reply to comment #2) > (From update of attachment 96422 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=96422&action=review > > > Source/WebCore/inspector/front-end/Panel.js:394 > > + linkText += ":" + (lineNumber + 1); > > Common panel code shouldn't contain lineNumber arithmetic. > > > Source/WebCore/inspector/front-end/inspector.js:1280 > > + var node = this.panels[preferredPanel].createAnchor(url, lineNumber - 1, classes, tooltipText); > > This method shouldn't modify lineNumber. Added fixme to make console call frame line/column numbers zero-based just like in debugger call frames. > Anchors may be removed so there should be corresponding method that would remove them from _anchors here. Anchors are cleared on navigation, so we may keep removed anchors in the list.
Pavel Podivilov
Comment 5 2011-06-09 02:04:30 PDT
Eric Seidel (no email)
Comment 6 2011-06-13 15:27:34 PDT
Comment on attachment 96564 [details] Patch. How do we test this?
Pavel Podivilov
Comment 7 2011-06-15 03:32:47 PDT
Created attachment 97268 [details] Added test.
Yury Semikhatsky
Comment 8 2011-06-15 03:59:29 PDT
Comment on attachment 97268 [details] Added test. View in context: https://bugs.webkit.org/attachment.cgi?id=97268&action=review > Source/WebCore/inspector/front-end/inspector.js:1281 > + // FIXME: stack trace line/column numbers are one-based. Please file a bug on this.
Pavel Podivilov
Comment 9 2011-06-15 07:31:48 PDT
Pavel Podivilov
Comment 10 2011-06-16 02:54:14 PDT
(In reply to comment #8) > (From update of attachment 97268 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=97268&action=review > > > Source/WebCore/inspector/front-end/inspector.js:1281 > > + // FIXME: stack trace line/column numbers are one-based. > > Please file a bug on this. https://bugs.webkit.org/show_bug.cgi?id=62725.
Note You need to log in before you can comment on or make changes to this bug.