Closed Bug 425588 Opened 17 years ago Closed 15 years ago

"Go to line" should always parse line number as decimal

Categories

(Toolkit :: View Source, defect)

defect
Not set
minor

Tracking

()

VERIFIED FIXED

People

(Reporter: masa141421356, Assigned: masa141421356)

References

()

Details

Attachments

(1 file, 1 obsolete file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9pre) Gecko/2008032705 Minefield/3.0pre Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9pre) Gecko/2008032705 Minefield/3.0pre "Go to line" of View Source parses inputred line number with parseInt(arg). When arg is "010", it jumps to line 8, not line 10. When arg is "08", error message is displayed, not goes to line 8. I think , we use parseInt(arg,10) instead of parseInt(arg) Reproducible: Always Steps to Reproduce: 1.Show source of some web page 2.Open Go To Line dialog via Edit > Go to line 3.enter "010" Actual Results: It jumps to line 8. Expected Results: it should jump to line 10.
Attached patch Patch rev.1.0 (obsolete) — Splinter Review
Attachment #312187 - Flags: superreview?(roc)
Attachment #312187 - Flags: review?(peterv)
Comment on attachment 312187 [details] [diff] [review] Patch rev.1.0 Looks fine to me, but please get review from a toolkit peer (see http://www.mozilla.org/projects/toolkit/review.html).
Attachment #312187 - Flags: review?(peterv) → review?
Attachment #312187 - Flags: review? → review?(mconnor)
Comment on attachment 312187 [details] [diff] [review] Patch rev.1.0 does toolkit need sr?
Attachment #312187 - Flags: superreview?(roc) → superreview+
Product: Firefox → Toolkit
Comment on attachment 312187 [details] [diff] [review] Patch rev.1.0 r=me (wow latency) uber-nit: space after comma.
Attachment #312187 - Flags: review?(mconnor) → review+
Comment on attachment 312187 [details] [diff] [review] Patch rev.1.0 line 153 is not correct part to fix on this bug.
Attachment #312187 - Flags: superreview-
Attachment #312187 - Flags: superreview+
Attachment #312187 - Flags: review-
Attachment #312187 - Flags: review+
Attached patch Patch Rev.2.0Splinter Review
Previous patch cannot fix this problem. Sorry for spam.
Assignee: nobody → masa141421356
Attachment #312187 - Attachment is obsolete: true
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attachment #351692 - Flags: superreview?(roc)
Attachment #351692 - Flags: review?(mconnor)
In toolkit, superreview is not needed and review is enough, isn't it?
Attachment #351692 - Flags: superreview?(roc) → superreview+
Attachment #351692 - Flags: review?(mconnor) → review+
http://hg.mozilla.org/mozilla-central/rev/ca8cf5405bd4 (In reply to comment #7) > In toolkit, superreview is not needed and review is enough, isn't it? Exactly.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
-->VERIFIED Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2a1pre) Gecko/20090618 Minefield/3.6a1pre
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: