pasting from crlf file into firefox textarea results in crlfcrlf line endings

Bug #670018 reported by MarkJ
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
firefox (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Binary package hint: firefox

I downloaded a text file with CRLF line endings. Pasted it from gedit/geany (the result is the same) into a firefox textarea (in my case the textarea was at http://pinyintools.zedwood.com/tojavascript ). When you push submit you can see the lines are delimited with \r\n\r\n (crlfcrlf instead of crlf). To confirm it wasn't the server that was doing anything funny I used the firefox tamperdata plug-in and captured the outgoing HTTP POST and looked at it, and it definitely had crlfcrlf. I'll upload a screenshot of that too in a sec.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: firefox 3.6.11+build3+nobinonly-0ubuntu0.10.04.1
ProcVersionSignature: Ubuntu 2.6.32-25.45-generic 2.6.32.21+drm33.7
Uname: Linux 2.6.32-25-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Tue Nov 2 10:24:16 2010
EcryptfsInUse: Yes
FirefoxPackages:
 firefox 3.6.11+build3+nobinonly-0ubuntu0.10.04.1
 firefox-gnome-support 3.6.11+build3+nobinonly-0ubuntu0.10.04.1
 firefox-branding 3.6.11+build3+nobinonly-0ubuntu0.10.04.1
 abroswer N/A
 abrowser-branding N/A
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100429)
ProcEnviron:
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: firefox

Revision history for this message
MarkJ (marker) wrote :
Revision history for this message
MarkJ (marker) wrote :

Screenshot of newlines in geany.

Revision history for this message
MarkJ (marker) wrote :

Screenshot of tamperdata plugin, note %0D is \r (CR) and %0A is \n (LF).

Revision history for this message
MarkJ (marker) wrote :

Screenshot of the json_encode of the text after the post. Notice it has \r\n\r\n instead of just \r\n

Revision history for this message
MarkJ (marker) wrote :

Pasting into google chrome doesn't insert CRLFs like firefox does, so is the fix to use chrome? :)

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in firefox (Ubuntu):
status: New → Confirmed
Revision history for this message
Peter Alderson (ubuntu-beyondboothambar) wrote :

I have exactly the same problem - and the same solution: use Chrome instead of Firefox!

Revision history for this message
Paul White (paulw2u) wrote :

We are sorry that we do not always have the capacity to review all reported bugs in a timely manner. This bug was reported some time ago and there have been many changes in Ubuntu since that time.

Does anyone still see a problem related to the one that was reported when using a currently supported version of Ubuntu? Please let us know if you do otherwise this report can be left to expire in approximately 60 days time.

Thank you for helping make Ubuntu better.

Paul White
[Ubuntu Bug Squad]

Changed in firefox (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for firefox (Ubuntu) because there has been no activity for 60 days.]

Changed in firefox (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.