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)
Core
Layout
Tracking
()
RESOLVED
FIXED
People
(Reporter: mozilla, Assigned: uriber)
References
Details
Attachments
(2 files)
2.55 KB,
patch
|
roc
:
review+
roc
:
superreview+
|
Details | Diff | Splinter Review |
2.30 KB,
patch
|
roc
:
review+
roc
:
superreview+
|
Details | Diff | Splinter Review |
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!
Reporter | ||
Comment 1•19 years ago
|
||
You have to type a character first, so modify step two to say:
"Type any key, then press DEL then END then ENTER."
Comment 2•19 years ago
|
||
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b4) Gecko/20050819
Firefox/1.0+ ID:2005081911
WFM (Branch)
Comment 3•19 years ago
|
||
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
Reporter | ||
Comment 4•19 years ago
|
||
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.
Reporter | ||
Comment 5•19 years ago
|
||
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.
Comment 6•19 years ago
|
||
mrbkap, this bug is dying for you to fix it! ;-)
/be
Comment 7•19 years ago
|
||
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.
Updated•19 years ago
|
Assignee: nobody → mrbkap
Updated•19 years ago
|
Summary: Text is Entered Backwards → Text is entered invisible and backwards into <textarea>
Comment 8•19 years ago
|
||
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
Updated•19 years ago
|
Assignee: dveditz → nobody
Component: Form Manager → Layout
QA Contact: layout
Updated•19 years ago
|
Assignee: nobody → mrbkap
Comment 10•19 years ago
|
||
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(
Assignee | ||
Comment 11•19 years ago
|
||
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)
Assignee | ||
Comment 12•19 years ago
|
||
*** Bug 305183 has been marked as a duplicate of this bug. ***
Assignee | ||
Updated•19 years ago
|
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
Comment 14•19 years ago
|
||
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
Comment 15•19 years ago
|
||
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)
Assignee | ||
Comment 16•19 years ago
|
||
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 → ---
Assignee | ||
Comment 17•19 years ago
|
||
... and pressing HOME on a blank line has the same effect.
Comment 18•19 years ago
|
||
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.
Assignee | ||
Comment 19•19 years ago
|
||
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 ago → 19 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•