Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Backout changeset b8d354d37128 (bug 574005) for Linux M3 orange; a=bb…
Browse files Browse the repository at this point in the history
…ondy
  • Loading branch information
Ed Morley committed Sep 12, 2011
1 parent a124c96 commit b922991
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
9 changes: 8 additions & 1 deletion editor/libeditor/html/tests/test_CF_HTML_clipboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,14 @@
}, SimpleTest.finish);
}

SimpleTest.waitForFocus(runTest);
var isMac = ("nsILocalFileMac" in Components.interfaces);
if (isMac)
SimpleTest.waitForFocus(runTest);
else {
// This test is not yet supported on non-Mac platforms, see bug 574005.
todo(false, "Test not supported on this platform");
SimpleTest.finish();
}

</script>
</pre>
Expand Down
9 changes: 0 additions & 9 deletions widget/src/xpwidgets/nsPrimitiveHelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,15 +143,6 @@ nsPrimitiveHelpers :: CreateDataFromPrimitive ( const char* aFlavor, nsISupports
plainText->GetData ( data );
*aDataBuff = ToNewCString(data);
}
// CF_HTML only supports single byte.
// Reference: http://msdn.microsoft.com/en-us/library/aa767917(v=vs.85).aspx
} else if ( strcmp(aFlavor,kNativeHTMLMime) == 0 ) {
nsCOMPtr<nsISupportsCString> plainText ( do_QueryInterface(aPrimitive) );
if ( plainText ) {
nsCAutoString data;
plainText->GetData ( data );
*aDataBuff = ToNewUnicode(data);
}
}
else {
nsCOMPtr<nsISupportsString> doubleByteText ( do_QueryInterface(aPrimitive) );
Expand Down

0 comments on commit b922991

Please sign in to comment.