Summary: | Web Inspector: creating conditional breakpoint doesn't work if breakpoint moves | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Pavel Podivilov <podivilov> | ||||
Component: | Web Inspector (Deprecated) | Assignee: | Pavel Podivilov <podivilov> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | apavlov, bweinstein, joepeck, keishi, loislo, pfeldman, pmuellr, rik, timothy, yurys | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Attachments: |
|
Description
Pavel Podivilov
2010-12-10 06:40:26 PST
Created attachment 76188 [details]
Patch.
Comment on attachment 76188 [details] Patch. View in context: https://bugs.webkit.org/attachment.cgi?id=76188&action=review > WebCore/inspector/front-end/SourceFrame.js:452 > + lineNumber -= 1; Why do you need this? It should be extracted into a method with descriptive name. (In reply to comment #2) > (From update of attachment 76188 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=76188&action=review > > > WebCore/inspector/front-end/SourceFrame.js:452 > > + lineNumber -= 1; > > Why do you need this? It should be extracted into a method with descriptive name. This is because we use zero-based line numbers in text viewer. We may add addDecoration/removeDecoration methods to SourceFrame and extract it there. Committed r74350: <http://trac.webkit.org/changeset/74350> |