Open Bug 957046 Opened 10 years ago Updated 3 years ago

Pasting long words of code into a textarea fields line breaks are inserted within a 'word'.

Categories

(Core :: DOM: Editor, defect, P5)

x86
macOS
defect

Tracking

()

UNCONFIRMED

People

(Reporter: inbox, Unassigned)

Details

Attachments

(1 file)

Attached file longword.txt
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:27.0) Gecko/20100101 Firefox/27.0 (Beta/Release)
Build ID: 20131216183647

Steps to reproduce:

Pasting a RSA public key into a textarea field of FF 27.0 beta I find that the key has been corrupted by line breaks before forward slashes that are followed by a letter. The issue was reproduced on a second site but originaly found by pasting into a text area: <textarea id="public_key_key" class="key_value" rows="20" name="public_key[key]" cols="40"></textarea> as part of https://github.com/settings/ssh. A sample piece of text to paste is attached to this report.


Actual results:

The line break appears to occur on lines after the first line of the input and just before the forward slash closest to the right edge of the input field. The forward slash is followed by a letter. The edit activity behaves as if the line break was not there. Attempting to delete it deletes the last character of the prior line. The POSTed textarea field is found to be corrupt due to the line break. 


Expected results:

The pasted code (A long word as far as the application knows) should appear without line breaks as it does in Safari.

Bulk-downgrade of unassigned, >=5 years untouched DOM/Storage bugs' priority.

If you have reason to believe this is wrong (especially for the severity), please write a comment and ni :jstutte.

Severity: normal → S4
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: