Closed Bug 716795 Opened 12 years ago Closed 12 years ago

Newlines printed twice as tall, after the first visible character is typed in a textarea

Categories

(Core :: Layout, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 716229

People

(Reporter: dholbert, Unassigned)

Details

STR:
 1. Visit http://pastebin.mozilla.org/ (or any other site with a textarea; e.g. a bugzilla comment field or a new-bug description field like the one I'm typing into now)
 2. Type "a" and press Return

ACTUAL RESULTS: Cursor drops down *two* lines (as if I hit return twice).  Basically, all newlines behave as if they were doubled.
EXPECTED RESULTS: Cursor drops down one line.

NOTE: This bug only manifests itself after you've typed a visible character.  So if you e.g. insert 4 newlines before anything else, and *then* type an "a", then your cursor suddenly jumps down a bunch as all the previously-inserted newlines expand to be twice as tall.
NOTE: If you type a space character instead of an "a", the bug doesn't happen.  This appears to only happen with *visible* characters.
I've encountered this with the last few nightlies on my 32-bit linux machine running Ubuntu 11.04.
Mozilla/5.0 (X11; Linux i686; rv:12.0a1) Gecko/20120109 Firefox/12.0a1
I was unable to reproduce on a 64-bit machine running Ubuntu 12.04 prerelease.
Summary: Extra newlines inserted in textareas → Newlines printed twice as tall, after the first visible character is typed in a textarea
Regression pushlog on inbound:
http://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=2c1e788aea4e&tochange=a8504f167770

Regression pushlog on m-c:
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=c7e27452a143&tochange=5a446202be5f

Narrowed regression pushlog taking both of the above into account:
http://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=511078d51f71&tochange=a8504f167770

In that range, bug 703100 looks most likely to be related.  And looking at that bug's dependencies led me to bug 716229, which this appears to be a dupe of.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.