Bug 561229 - Copy/Paste bookmarks is broken. r=dietrich

This commit is contained in:
Marco Bonardo 2010-04-26 21:04:20 +02:00
parent 4fb284fec0
commit f3bcbe0252
3 changed files with 3 additions and 10 deletions

View File

@ -1181,7 +1181,7 @@ PlacesController.prototype = {
copiedFolders.push(node);
function generateChunk(type, overrideURI) {
let suffix = i < (nodes.length - 1) ? NEWLINE : "";
let suffix = i < (nodes.length - 1) ? PlacesUtils.endl : "";
let uri = overrideURI;
if (PlacesUtils.nodeIsLivemarkContainer(node))

View File

@ -59,15 +59,6 @@ XPCOMUtils.defineLazyGetter(this, "PlacesUtils", function() {
return PlacesUtils;
});
#ifdef XP_MACOSX
// On Mac OSX, the transferable system converts "\r\n" to "\n\n", where we
// really just want "\n".
const NEWLINE= "\n";
#else
// On other platforms, the transferable system converts "\r\n" to "\n".
const NEWLINE = "\r\n";
#endif
var PlacesUIUtils = {
ORGANIZER_LEFTPANE_VERSION: 6,
ORGANIZER_FOLDER_ANNO: "PlacesOrganizer/OrganizerFolder",

View File

@ -128,6 +128,8 @@ var PlacesUtils = {
asContainer: function(aNode) asContainer(aNode),
asQuery: function(aNode) asQuery(aNode),
endl: NEWLINE,
/**
* Makes a URI from a spec.
* @param aSpec