rem: var charSet = aDragSession.sourceDocument ? aDragSession.sourceDocument.characterSet : null; rSource = BookmarksUtils.createBookmark(null, uri, charSet, extra); 
add: rSource = BookmarksUtils.createBookmark(null, uri, null, extra); 
context:   getSelectionFromXferData: function (aDragSession)  {    var selection    = {};    selection.item   = [];    selection.parent = [];    var trans = Components.classes["@mozilla.org/widget/transferable;1"]                          .createInstance(Components.interfaces.nsITransferable);    trans.addDataFlavor("moz/rdfitem");    trans.addDataFlavor("text/x-moz-url");    trans.addDataFlavor("text/unicode");    var uri, extra, rSource, rParent, parent;    for (var i = 0; i < aDragSession.numDropItems; ++i) {      var bestFlavour = {}, dataObj = {}, len = {};      aDragSession.getData(trans, i);      trans.getAnyTransferData(bestFlavour, dataObj, len);      dataObj = dataObj.value.QueryInterface(Components.interfaces.nsISupportsString);      if (!dataObj)        continue;      dataObj = dataObj.data.substring(0, len.value).split("\n");      uri     = dataObj[0];      if (dataObj.length > 1 && dataObj[1] != "")        extra = dataObj[1];      else        extra = null;      switch (bestFlavour.value) {      case "moz/rdfitem":        rSource = RDF.GetResource(uri);        parent  = extra;        break;      case "text/x-moz-url":      case "text/unicode":        var charSet = aDragSession.sourceDocument ?                       aDragSession.sourceDocument.characterSet : null;        rSource = BookmarksUtils.createBookmark(null, uri, charSet, extra);        parent = null;        break;      }      selection.item.push(rSource);      if (parent)        rParent = RDF.GetResource(parent);      else        rParent = null;      selection.parent.push(rParent);    }    selection.length = selection.item.length;    BookmarksUtils.checkSelection(selection);    return selection;  },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/d5c046d8e86de5f9c5d4d98d2bcad80f11e376a0/bookmarks.js/buggy/browser/components/bookmarks/content/bookmarks.js