User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9) Gecko/2008061015 Firefox/3.0 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:22.214.171.124) Gecko/2008070206 Firefox/3.0.1 Copying an entire line of text from a text file to other programs on Linux causes the newline at the end to be pasted too. This is not how it worked in Firefox 2. Reproducible: Always Steps to Reproduce: Good Case: 1. Go to http://www.ietf.org/rfc/rfc2648.txt 2. Select an entire line by triple clicking 3. Pasting with middle-click paste pastes the line you selected with no extra newline. Failure Case: 1. Go to http://www.ietf.org/rfc/rfc2648.txt 2. Select an entire line by dragging a selection from the left of a line to the right of the line (make sure you move the cursor beyond the last character on the line) 3. Pasting with middle-click paste in gedit pastes the line you selected including a newline at the end. Actual Results: Text pasted with unwanted newline at the end. Expected Results: Text that appeared as selected/highlighted should be pasted, but no newline at the end if the selection did not go over onto the next line. If you drag to select the entire line being careful to not to move over the end of the last character, the newline is not pasted. If you drag carelessly and select to a point further to the right of the end of the line of text, the newline will be pasted. In this case on Firefox 2 the newline would still not be printed. If copying commands and pasting into a terminal this newline at the end causes the command being pasted to be executed immediately, which may not always be wanted if the command needs modified before execution. Additionally it seems that if pasting to OpenOffice (2.4) the newline is always pasted, but that may be an unrelated OpenOffice bug. The difference in behaviour demonstrated by using gedit proves that Firefox puts different contents on the clipboard depending on how the selection was made. Its important to note that in all cases above it will be the exact same text that appears as highlighted on the page, so the difference in behaviour is confusing and inconsistent. I mention text files because I can reproduce it 100% of the time with text files, I believe I have seen it in some HTML pages too but not always. This is related to bug 435704 but the behaviour is different for me (ie you need to select beyond the end of the line), and I cannot reproduce the issue with the HTML file attached to that bug.
It just copys the one line for me. Does this happen in other programs also or is it limited to Firefox? If it is only Firefox try safe mode. http://support-stage.mozilla.org/kb/Safe+Mode Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1a1pre) Gecko/2008071702 Minefield/3.1a1pre ID:2008071702
It only happens in Firefox (copying the same line in gedit and pasting it again does not result in the same behaviour). Also it is only since Firefox 3. I just reproduced the same issue on the latest nightly build. I tried both in normal mode and with -safe-mode enabled. I confirmed it on two systems, both running Ubuntu 8.04.1 Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1a1pre) Gecko/2008071802 Minefield/3.1a1pre
I have the latest build and I can not reproduce the problem. How far are you going beyond the end of the line? I went pretty far. Does it copy right to any program? What about within Firefox?
I just played with how far you have to go past the end of the line. When the mouse cursor is still over the text you are selecting it turns into the I-bar, as soon as you go over the end of the text the cursor changes back to the normal pointer icon. It seems that the exact pixel where it changes back to the pointer is far enough. I am testing this right now by pasting the first line from your last comment into the "Additional Comments" box at the bottom of this bug report where I'm typing this and it is happening here, IF I move the mouse to the right of the line of text (cursor turns to pointer) before I release the mouse button when selecting. I also just pasted the same line into chat windows in Skype and Pidgin, and the extra line appeared on both of those too. I have spoken to a few other people in work who have also noticed the same problem separately, I'll try to get them to put some details in about their setup in the next few days. What OS are you using Myles? Possibly it only occurs on Ubuntu? If I can provide any other details about my setup please let me know so we can narrow down the cause, thanks for looking into this.
I am using Ubuntu, 1.9.1a1pre, that might be the difference.
I'm confused, I don't see a difference in that version number to mine, here is mine again: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1a1pre) Gecko/2008071802 Minefield/3.1a1pre I got it this morning (18/July/2008) from here: http://www.mozilla.org/developer/#builds This is the exact link I downloaded: http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/firefox-3.1a1pre.en-US.linux-i686.tar.bz2
You are looking at the Firefox version. Mine: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1a1pre) Gecko/2008071702 Minefield/3.1a1pre ID:2008071702 Yours: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:126.96.36.199) Gecko/2008070206 Firefox/3.0.1 See my rv: is 1.9.1a1pre. That means I am running 1.9.1 alpha 1 pre-release. While you are just running 188.8.131.52. We are both running the same version of Firefox.
Sorry. Yes that's what I posted originally, but today I have reproduced the problem on the latest nightly (see comment #2) which also says "rv:1.9.1a1pre" in the version string.
I can reproduce this on OpenSolaris and MacOS. So change the bug to New But on Windows, it works.
so Daryl, you are running Ubuntu 1.9.1a1pre?
ok, rv is something different. To summarize, Daryl can reproduce on 3.1a1pre, emily can reproduce on OpenSolaris and MAC, and I can't reproduce.
I can reproduce the issue on the Ubuntu 8.04.1 Live CD (i386). I used the Firefox version (3.0) that is installed on that. I also tried to reproduce on the livecd with the latest downloaded nightly but it wouldn't run for me. The livecd might be a way you can reproduce it Myles because the environment is identical for us all then.
I have some friends on Ubuntu and I will see if they can reproduce also. If it only happens on the Live CD, then it is a setting change. One that I have changed and that you didn't. Emily: Did you change any settings or was it a fresh install?
Hi Myles, Its not only on the LiveCD, I tried it that way additionally to see if it would help you reproduce it. It has happened to me consistently on at least 2 different (long standing) installs plus the livecd. I have not seen an Ubuntu/Firefox 3 installation where it didn't happen.
Right, I understand that. What I am saying is that maybe I changed a setting and you didn't. I am not sure what that setting would be, but that would be the only difference in our computers. Can you please try a new profile. http://support.mozilla.com/en-US/kb/Profiles
I've just tried the latest nightly (version string below) with a newly created profile. I ran ./firefox -ProfileManager to create a new one. I didn't change any setting or preferences in the new profile before I tested. The result is the same. Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1a1pre) Gecko/2008072102 Minefield/3.1a1pre
The bug can be reproduced in Firefox3 under OpenSolaris, Windows, Ubuntu, Solaris, and Firefox2 under all above OS does not have the bug, so changed OS to All.