Bug 9708 - REGRESSION: NativeTextArea: "invisible blank lines" added after unfocus+focus
Summary: REGRESSION: NativeTextArea: "invisible blank lines" added after unfocus+focus
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P1 Normal
Assignee: Nobody
URL:
Keywords: InRadar, Regression
: 9997 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-07-03 05:46 PDT by jonathanjohnsson
Modified: 2007-01-17 13:21 PST (History)
8 users (show)

See Also:


Attachments
testcase (289 bytes, text/html)
2006-07-12 20:12 PDT, Justin Garcia
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description jonathanjohnsson 2006-07-03 05:46:55 PDT
Copying text from text area adds a "blank line" for every newline, but you can't see this by just pasting in the same text area. Steps to see some of the weirdness:

1. Type "test" return "test" in the comment field above (or any text area).
2. Click outside the text area, or make it lose focus in any other way.
3. Focus the text area and select all and copy.
4. Paste into TextEdit.app
5. There is now a blank line between the to test lines.

If you want to see more strangeness, copy the resulting text from TextEdit, and paste it into the text area. Then you cannot move the cursor from the upper line to the lower by pressing the down arrow.

I couldn't find this bug in bugzilla, but as there are many bugs filed on NativeTextArea, I may have missed it.
Comment 1 Alice Liu 2006-07-05 13:53:49 PDT
<rdar://problem/4614187>
Comment 2 Justin Garcia 2006-07-12 20:12:45 PDT
Created attachment 9420 [details]
testcase

automated testcase that illustrates the bug
Comment 3 Justin Garcia 2006-07-12 20:13:16 PDT
Comment on attachment 9420 [details]
testcase

oops this is a testcase for a different bug
Comment 4 David Kilzer (:ddkilzer) 2006-07-15 14:27:55 PDT
Here is another way to reproduce this bug with the down arrow.

Steps to reproduce:

1. Open a page with a text area (like this bug).
2. Type "abc".
3. Hit Enter.
4. Type "123".
5. Hit Enter.
6. Cmd-A to select all.
7. Cmd-X to cut.
8. Hit Enter.
9. Hit Cmd-V to paste.
10. Click the mouse on the first line (which is blank) to position the cursor.
11. Click the down arrow THREE times.

Expected results:

The cursor should be at the beginning of the third line.

Actual results:

The cursor is at the end of the second line, and hitting the down arrow ad infinitum does nothing.

Comment 5 David Kilzer (:ddkilzer) 2006-07-15 14:30:03 PDT
Here is another way to reproduce this bug with the RIGHT ARROW.

Steps to reproduce:

1. Open a page with a text area (like this bug).
2. Type "abc".
3. Hit Enter.
4. Type "123".
5. Hit Enter.
6. Cmd-A to select all.
7. Cmd-X to cut.
8. Hit Enter.
9. Hit Cmd-V to paste.
10. Click the mouse on the first line (which is blank) to position the cursor.
11. Click the right arrow FIVE times.

Expected results:

The cursor should be at the beginning of the third line.

Actual results:

The cursor is at the end of the second line.  Hitting the right arrow a sixth time places the cursor AFTER the first character ("1") on the third line.

Comment 6 Alexander Kellett 2006-07-19 04:25:07 PDT
*** Bug 9997 has been marked as a duplicate of this bug. ***
Comment 7 Vladimir Olexa (vladinecko) 2007-01-17 08:13:31 PST
I followed all test cases and couldn't reproduce any of the reported symptoms.  

using 10.4.8, ToT b.18737
Comment 8 jonathanjohnsson 2007-01-17 13:21:52 PST
This works for me now as well. Thanks Vladimir for testing.

Closing as WORKSFORME, as I don't know when or how it got fixed.