context: function onBeginLinkDrag(event,urlField,descField){  if (event.originalTarget.localName != "treechildren")    return;  var tree = event.target;  if (!("treeBoxObject" in tree))    tree = tree.parentNode;  var row = {};  var col = {};  var elt = {};  tree.treeBoxObject.getCellAt(event.clientX, event.clientY, row, col, elt);  if (row.value == -1)    return;  // Getting drag-system needed services  var dragService = Components.classes[DRAGSERVICE_CONTRACTID].getService().QueryInterface(Components.interfaces.nsIDragService);  var transArray = Components.classes[ARRAY_CONTRACTID].createInstance(Components.interfaces.nsISupportsArray);  if (!transArray)    return;  var trans = Components.classes[TRANSFERABLE_CONTRACTID].createInstance(Components.interfaces.nsITransferable);  if (!trans)    return;    // Adding URL flavor  trans.addDataFlavor("text/x-moz-url");  var url = tree.treeBoxObject.view.getCellText(row.value, urlField);  var desc = tree.treeBoxObject.view.getCellText(row.value, descField);  var stringURL = Components.classes[STRING_CONTRACTID].createInstance(Components.interfaces.nsISupportsString);  stringURL.data = url + "\n"+desc;  trans.setTransferData("text/x-moz-url", stringURL, stringURL.data.length * 2 );  transArray.AppendElement(trans.QueryInterface(Components.interfaces.nsISupports));  dragService.invokeDragSession(event.target, transArray, null, dragService.DRAGDROP_ACTION_NONE);}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/3c4b298aa6840ad7a68bbbfab9346d7bc8af0755/pageInfo.js/buggy/xpfe/browser/resources/content/pageInfo.js