rem:      return; 
context: function BeginDragContentArea ( event ){  if ( event.target == null )    return;  var dragService = Components.classes["component://netscape/widget/dragservice"].getService(Components.interfaces.nsIDragService);  if ( dragService == null )    return;  var trans = Components.classes["component://netscape/widget/transferable"].createInstance(Components.interfaces.nsITransferable);  if ( trans == null )    return;  var genTextData = Components.classes["component://netscape/supports-wstring"].createInstance(Components.interfaces.nsISupportsWString);  var htmlData = Components.classes["component://netscape/supports-wstring"].createInstance(Components.interfaces.nsISupportsWString);  if ( (genTextData == null) || (htmlData == null) )    return;    var htmlstring = null;  var textstring = null;  var domselection = window.content.getSelection();  if ( domselection && !domselection.isCollapsed)  {    // the window has a selection so we should grab that rather than looking for specific elements//    dump(domselection);    htmlstring = domselection.toString("text/html", 128+256, 0);    textstring = domselection.toString("text/plain", 0, 0);    // The following return disables the ability to drag & drop    // the current selection. This temporarily fixes bug #39821    // so that others are unblocked. Remove it when drag & drop and    // selection cooperate better.    return;  }  else   {    switch (event.target.nodeName)    {      case 'AREA':      case 'IMG':        var imgsrc = event.target.getAttribute("src");        var baseurl = window.content.location.href;        textstring = imgsrc;        htmlstring = "<img src=\"" + textstring + "\">";        break;      case 'HR':        break;      case 'A':        if ( event.target.href )        {          // link          textstring = event.target.getAttribute("href");          htmlstring = "<a href=\"" + textstring + "\">" + textstring + "</a>";        }        else if (event.target.name )        {          // named anchor          textstring = event.target.getAttribute("name");          htmlstring = "<a name=\"" + textstring + "\">" + textstring + "</a>"        }        break;      default:      case '#text':      case 'LI':      case 'OL':      case 'DD':        textstring = enclosingLink(event.target);        if ( textstring != "" )          htmlstring = "<a href=\"" + textstring + "\">" + textstring + "</a>";        else          return;        break;    }  }    htmlData.data = htmlstring;  trans.addDataFlavor("text/html");  trans.setTransferData ( "text/html", htmlData, htmlstring.length * 2 );  // double byte data  if ( textstring && (textstring != "") )  {    genTextData.data = textstring;    trans.addDataFlavor("text/unicode");    trans.setTransferData ( "text/unicode", genTextData, textstring.length * 2 );  // double byte data  }  var transArray = Components.classes["component://netscape/supports-array"].createInstance(Components.interfaces.nsISupportsArray);  if ( transArray )  {    // put it into the transferable as an |nsISupports|    var genTrans = trans.QueryInterface(Components.interfaces.nsISupports);    transArray.AppendElement(genTrans);    var nsIDragService = Components.interfaces.nsIDragService;    dragService.invokeDragSession ( event.target, transArray, null, nsIDragService.DRAGDROP_ACTION_COPY +                                         nsIDragService.DRAGDROP_ACTION_MOVE );    event.preventBubble();  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/0c50e26102dcbe54f920ff46aec196aeb3b64a81/navigatorDD.js/buggy/suite/browser/navigatorDD.js