diff --git a/content/base/src/nsCopySupport.cpp b/content/base/src/nsCopySupport.cpp
index 0b50d0eef5b0..cf3a8f3a3723 100644
--- a/content/base/src/nsCopySupport.cpp
+++ b/content/base/src/nsCopySupport.cpp
@@ -188,10 +188,6 @@ SelectionCopyHelper(nsISelection *aSel, nsIDocument *aDoc,
if (NS_FAILED(rv))
return rv;
- // Emulate the collateral damage from bug 564737. Remove the following
- // line to fix bug 739537.
- plaintextBuffer.Trim(" ", true, false);
-
// Now create the version that shows HTML context
mimeType.AssignLiteral(kHTMLMime);
diff --git a/content/base/test/test_copypaste.html b/content/base/test/test_copypaste.html
index cf693ec8e9e0..7fb8193649a1 100644
--- a/content/base/test/test_copypaste.html
+++ b/content/base/test/test_copypaste.html
@@ -132,35 +132,35 @@ function testCopyPaste () {
copyChildrenToClipboard("alist");
testSelectionToString(" bla\n\n foo\n bar\n\n");
- testClipboardValue("text/unicode", "bla\n\n foo\n bar\n\n");
+ testClipboardValue("text/unicode", " bla\n\n foo\n bar\n\n");
testClipboardValue("text/html", "
");
- testPasteText("bla\n\n foo\n bar\n\n");
+ testPasteText(" bla\n\n foo\n bar\n\n");
copyChildrenToClipboard("blist");
testSelectionToString(" mozilla\n\n foo\n bar\n\n");
- testClipboardValue("text/unicode", "mozilla\n\n foo\n bar\n\n");
+ testClipboardValue("text/unicode", " mozilla\n\n foo\n bar\n\n");
testClipboardValue("text/html", "\n mozilla\n
\n - foo
\n \n - bar
\n
\n
");
- testPasteText("mozilla\n\n foo\n bar\n\n");
+ testPasteText(" mozilla\n\n foo\n bar\n\n");
copyChildrenToClipboard("clist");
testSelectionToString(" mzla\n\n foo\n bazzinga!\n bar\n\n");
- testClipboardValue("text/unicode", "mzla\n\n foo\n bazzinga!\n bar\n\n");
+ testClipboardValue("text/unicode", " mzla\n\n foo\n bazzinga!\n bar\n\n");
testClipboardValue("text/html", "");
- testPasteText("mzla\n\n foo\n bazzinga!\n bar\n\n");
+ testPasteText(" mzla\n\n foo\n bazzinga!\n bar\n\n");
copyChildrenToClipboard("div4");
testSelectionToString(" Tt t t ");
- testClipboardValue("text/unicode", "Tt t t ");
+ testClipboardValue("text/unicode", " Tt t t ");
testClipboardValue("text/html", "\n T\n
");
testInnerHTML("div4", "\n T\n");
- testPasteText("Tt t t ");
+ testPasteText(" Tt t t ");
copyChildrenToClipboard("div5");
testSelectionToString(" T ");
- testClipboardValue("text/unicode", "T ");
+ testClipboardValue("text/unicode", " T ");
testClipboardValue("text/html", "\n T\n
");
testInnerHTML("div5", "\n T\n");
- testPasteText("T ");
+ testPasteText(" T ");
copyRangeToClipboard($("div6").childNodes[0],0, $("div6").childNodes[1],1);
testSelectionToString("");