mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 561229 - Copy/Paste bookmarks is broken. r=dietrich
This commit is contained in:
parent
4fb284fec0
commit
f3bcbe0252
@ -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))
|
||||
|
@ -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",
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user