rem: Components.classes[WSTRING_CONTRACTID].createInstance(nsISupportsWString); 
add: Components.classes[WSTRING_CONTRACTID].createInstance(nsISupportsString); 
context: function BeginDragTree (event){  if (event.target.localName != "treechildren")    return true;      var dragStarted = false;  try {    // determine which treeitem was dragged    var tree = document.getElementById("tree");    var row = {}, colId = {}, child = {};    tree.treeBoxObject.getCellAt(event.clientX, event.clientY, row, colId, child);    var item = tree.contentView.getItemAtIndex(row.value);    // get information from treeitem for drag    var url = item.getAttributeNS(NC_NS, "url");    var desc = item.getAttributeNS(NC_NS, "desc");        var RDF = Components.classes[RDFSERVICE_CONTRACTID].getService(nsIRDFService);    var transferable =       Components.classes[TRANSFERABLE_CONTRACTID].createInstance(nsITransferable);    var genDataURL =       Components.classes[WSTRING_CONTRACTID].createInstance(nsISupportsWString);    var genDataHTML =       Components.classes[WSTRING_CONTRACTID].createInstance(nsISupportsWString);    var genData =       Components.classes[WSTRING_CONTRACTID].createInstance(nsISupportsWString);    var genDataURL =       Components.classes[WSTRING_CONTRACTID].createInstance(nsISupportsWString);    transferable.addDataFlavor("text/x-moz-url");    transferable.addDataFlavor("text/html");    transferable.addDataFlavor("text/unicode");        genDataURL.data = url + "\n" + desc;    genDataHTML.data = "<a href=\"" + url + "\">" + desc + "</a>";    genData.data = url;    transferable.setTransferData("text/x-moz-url", genDataURL, genDataURL.data.length * 2);    transferable.setTransferData("text/html", genDataHTML, genDataHTML.data.length * 2);    transferable.setTransferData("text/unicode", genData, genData.data.length * 2);    var transArray =       Components.classes[ARRAY_CONTRACTID].createInstance(nsISupportsArray);    // put it into the transferable as an |nsISupports|    var genTrans = transferable.QueryInterface(Components.interfaces.nsISupports);    transArray.AppendElement(genTrans);        var dragService =       Components.classes[DRAGSERVICE_CONTRACTID].getService(nsIDragService);    dragService.invokeDragSession(event.target, transArray, null, nsIDragService.DRAGDROP_ACTION_COPY +                                   nsIDragService.DRAGDROP_ACTION_MOVE);      dragStarted = true;  } catch (ex) { }    return !dragStarted;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/f7ad4265ef6a40ea01c54009718ef28974e67fe9/directory.js/buggy/xpfe/components/directory/directory.js