rem: if (parentContainer) { 
add: if (parentContainer) { 
context:   onDrop: function (aEvent, aXferData, aDragSession)     {      var dropElement = aEvent.target.id;      var elementRes = RDFUtils.getResource(aXferData.data);      var dropElementRes = RDFUtils.getResource(dropElement);      var personalToolbarRes = RDFUtils.getResource("NC:PersonalToolbarFolder");            var childDB = document.getElementById("innermostBox").database;      const kCtrContractID = "@mozilla.org/rdf/container;1";      const kCtrIID = Components.interfaces.nsIRDFContainer;      var rdfContainer = Components.classes[kCtrContractID].getService(kCtrIID);            var parentContainer = this.findParentContainer(aDragSession.sourceElement);      if (parentContainer)         {           rdfContainer.Init(childDB, parentContainer);          rdfContainer.RemoveElement(elementRes, true);        }      else        {          // look up this URL's title in global history          var potentialTitle = null;          var historyDS = gRDFService.GetDataSource("rdf:history");          var historyTitleProperty = RDFUtils.getResource(NC_RDF("Name"));          var titleFromHistory = historyDS.GetTarget(elementRes, historyTitleProperty, true);          if (titleFromHistory)            titleFromHistory = titleFromHistory.QueryInterface(Components.interfaces.nsIRDFLiteral);          if (titleFromHistory)            potentialTitle = titleFromHistory.Value;          linkTitle = potentialTitle ? potentialTitle : element;          childDB.Assert(elementRes, historyTitleProperty,                          gRDFService.GetLiteral(linkTitle), true);        }      rdfContainer.Init (childDB, personalToolbarRes);      var dropIndex = rdfContainer.IndexOf(dropElementRes);      // determine the drop position      var dropPosition = this.determineDropPosition(aEvent);      switch (dropPosition) {      case -1:        rdfContainer.Init(childDB, personalToolbarRes);        dump("*** elt= " + elementRes.Value + "\n");        rdfContainer.InsertElementAt(elementRes, dropIndex, true);        break;      case 0:        // do something here to drop into subfolders        rdfContainer.Init(childDB, dropElementRes);        rdfContainer.AppendElement(elementRes);        break;      case 1:      default:        rdfContainer.Init (childDB, personalToolbarRes);        rdfContainer.InsertElementAt(elementRes, dropIndex+1, true);        break;      }      return true;    },
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/32219f88c6a0c495f8a61874cdd3ff75f7f0836f/navigatorDD.js/buggy/suite/browser/navigatorDD.js