Closed Bug 305239 Opened 19 years ago Closed 19 years ago

Text is entered invisible and backwards into <textarea> after pressing END

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: mozilla, Assigned: uriber)

References

Details

Attachments

(2 files)

20050818 trunk

STEP TO REPRODUCE:

1. Place your cursor into the textarea in this bug report (DESCRIPTION).
2. Press DEL then END then ENTER.
3. Now type something.

RESULT:

You will see nothing as you type. Press reload and you will see everything you
typed ... BACKWARDS!
You have to type a character first, so modify step two to say:

"Type any key, then press DEL then END then ENTER."
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b4) Gecko/20050819
Firefox/1.0+ ID:2005081911

WFM (Branch)
I can reproduce this. One thing to note is that I found the input cursor seemed
to vanish. After clicking away then back to the textbox I could type normally
again, though the input cursor still didnt flash and any text I had entered and
not seen was still there and gets submitted with the text (see my bizarre
comment at the end of bug 305232)

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20050819
Firefox/1.6a1 ID:2005081907
That's how I discovered this thing. I posted a message to a Web message board
and all the stuff I thought was not there was posted ... and backwards.
Reduced steps to reproduce:

1. Place cursor in textarea of this bug (DESCRIPTION).
2. Type any letter and then press END.
3. Type some more.
mrbkap, this bug is dying for you to fix it! ;-)

/be
There are situations other than pressing END that trigger this. I haven't
managed to reproduce one, but I almost never use the END key but today I have
hit this bug 3/4 times.
Assignee: nobody → mrbkap
Summary: Text is Entered Backwards → Text is entered invisible and backwards into <textarea>
Blocks: 16311
This is a regression from bug 16311.  And it's not Firefox-specific; I have no
idea why this bug was filed in this product.
Assignee: mrbkap → dveditz
Flags: blocking1.9a1+
OS: Windows XP → All
Product: Firefox → Core
QA Contact: form.manager
Hardware: PC → All
Assignee: dveditz → nobody
Component: Form Manager → Layout
QA Contact: layout
Assignee: nobody → mrbkap
Passing onto Uri since it's his regression.
Assignee: mrbkap → uriber
Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.9a1) Gecko/20050819 SeaMonkey/1.0a
happened to me in Bug 305181 comment 10
Suddenly I noticed some stuff I had zyped wasn't seen, I repositioned the
cursor, went on, looked if the lost stuff was somewhere else, and submitted.

When I was looking next, I found junk at the end of the comment, seems to be the
lost characters read RTL.

ravitca sediseb ,liamg)c2w( 

Attached patch patchSplinter Review
Restore the code in nsFrame::DrillDownToEndOfLine() which ensures that a
BRFrame will not be returned (unless it's the only frame on the line).

This also makes the change to nsSelection::GetFrameForNodeOffset() (which I
added in the final version of the 16311 patch) unnecessary, so reverted it.

I have no idea how this slipped by me when I tested the original patch. I'll
try to be more careful in the future.
Attachment #193276 - Flags: superreview?(roc)
Attachment #193276 - Flags: review?(roc)
No longer depends on: 305183
*** Bug 305183 has been marked as a duplicate of this bug. ***
Summary: Text is entered invisible and backwards into <textarea> → Text is entered invisible and backwards into <textarea> after pressing END
Attachment #193276 - Flags: superreview?(roc)
Attachment #193276 - Flags: superreview+
Attachment #193276 - Flags: review?(roc)
Attachment #193276 - Flags: review+
checked in
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Not completely fixed with following steps...reproduced a few times by users on
mozillazine forums.

To reproduce put focus/cursor into a textarea (Quick Reply here for example),
hit enter, hit end, type something and hit refresh
This still happens on 20050822 build (win32).

1. Put cursor into a textarea
2. Hit Enter
3. Hit End (cursor disappears at this point)
4. Type something (nothing seems to happen)
5. Hit Reload (text you typed appears backwards)
Right - I just discovered this myself. Pressing END on a blank line still
creates the problem. I'm working on a fix, but this is a bit tricky.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
... and pressing HOME on a blank line has the same effect.
Seeing it in Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1)
Gecko/20050822 Firefox/1.6a1 with these steps

>1. Place your cursor into the textarea in this bug report (DESCRIPTION).
>2. Press DEL then END then ENTER.
>3. Now type something.
If the frame we really want to be in isn't a text frame (but is, say, a
BRFrame), don't return it as the mResultContent (with mContentOffset=0), but
instead return its parent content, with the appropreate offset to the content
itself.

This emulates the behaviour of the original code in this case.

And also set the hint to PR_TRUE because otherwise it's wrong. (sorry, i wish I
had a better explanation for this part).
Attachment #193507 - Flags: superreview?(roc)
Attachment #193507 - Flags: review?(roc)
checked in. I forgot what Uri's comment was so I wrote my own.
Attachment #193507 - Flags: superreview?(roc)
Attachment #193507 - Flags: superreview+
Attachment #193507 - Flags: review?(roc)
Attachment #193507 - Flags: review+
Status: REOPENED → RESOLVED
Closed: 19 years ago19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: