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)
Toolkit
View Source
Tracking
()
VERIFIED
FIXED
People
(Reporter: masa141421356, Assigned: masa141421356)
References
()
Details
Attachments
(1 file, 1 obsolete file)
764 bytes,
patch
|
mconnor
:
review+
roc
:
superreview+
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Comment 1•17 years ago
|
||
I think same fix is needed for
http://bonsai.mozilla.org/cvsblame.cgi?file=/mozilla/suite/browser/viewsource.js&rev=1.50
Attachment #312187 -
Flags: superreview?(roc)
Attachment #312187 -
Flags: review?(peterv)
Comment 2•17 years ago
|
||
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?
Assignee | ||
Updated•17 years ago
|
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+
Updated•16 years ago
|
Product: Firefox → Toolkit
Comment 4•16 years ago
|
||
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+
Assignee | ||
Comment 5•16 years ago
|
||
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+
Assignee | ||
Comment 6•16 years ago
|
||
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)
Comment 7•16 years ago
|
||
In toolkit, superreview is not needed and review is enough, isn't it?
Attachment #351692 -
Flags: superreview?(roc) → superreview+
Updated•15 years ago
|
Attachment #351692 -
Flags: review?(mconnor) → review+
Updated•15 years ago
|
Keywords: checkin-needed
Comment 8•15 years ago
|
||
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.
Assignee | ||
Comment 9•15 years ago
|
||
-->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.
Description
•