Closed Bug 612271 Opened 10 years ago Closed 10 years ago
Cursor jumps back to the end of the previous line after pressing enter at the end of a textarea managed by the j
Query auto Resize plugin
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b8pre) Gecko/20101115 Firefox/4.0b8pre Build Identifier: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b8pre) Gecko/20101115 Firefox/4.0b8pre Pretty sure this happened after the new JS backend landed a while back, since I didn't have this problem with Firefox 3.6. Essentially, what happens is that once the textarea automatically resizes, every time you press Enter to make a new line, Minefield will jump up to the previous line instead of staying on the new line. Reproducible: Always Steps to Reproduce: 1. After loading the webpage, click on the end of the text in the textbox. 2. Press Enter. 3. After pressing Enter a few times, the problem should reveal itself. Actual Results: Cursor "jumps" back up to the previous line instead of staying on the new line. Expected Results: Cursor should stay on the new line.
Mozilla/5.0 (Windows NT 6.1; rv:2.0b8pre) Gecko/20101114 Firefox/4.0b8pre I can confirm this also on yesterday's nightly.
Status: UNCONFIRMED → NEW
Ever confirmed: true
This also happens on ubuntu8.04. pushlog: http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=b829cf5debce&tochange=178f26e21cfc
Ehsan, maybe bug 597331?
blocking2.0: ? → betaN+
Component: General → Editor
Product: Firefox → Core
QA Contact: general → editor
(In reply to comment #3) > Ehsan, maybe bug 597331? Yep, that's definitely the culprit. (In reply to comment #4) > foojkdjkfdjkfjkdjfkdjkfjkdjfkjdkfjkdjkfjdkfjk I'm sorry David, but I can't really parse that! ;-)
Assignee: nobody → ehsan
Status: NEW → ASSIGNED
Summary: jQuery autoResize plugin regression in Firefox 4.0 → Cursor jumps back to the end of the previous line after pressing enter at the end of a textarea managed by the jQuery autoResize plugin
Actually, this is really a regression from bug 240933 <http://hg.mozilla.org/mozilla-central/rev/c3236786510b>; it's only being exposed by bug 597331. The root cause is that nsTextControlFrame::OffsetToDOMPoint violates the invariant that the selection must be set on the trailing BR node if it's at the end of the text.
Attachment #495760 - Flags: review?(roc) → review+
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [needs landing]
Target Milestone: --- → mozilla2.0b8
You need to log in before you can comment on or make changes to this bug.