rem: var menuTarget = target.localName == "toolbarbutton" || target.localName == "menu"          && 
add: var menuTarget = (target.localName == "toolbarbutton" || target.localName == "menu")         && 
context:   onDrop: function (aEvent, aXferData, aDragSession)  {    var target = aEvent.originalTarget;    this.onDragRemoveFeedBack(target);    var bt        = document.getElementById("bookmarks-toolbar");    var selection = BookmarksUtils.getSelectionFromXferData(aDragSession);    // if the personal toolbar does not exist, recreate it    if (target == "bookmarks-toolbar") {      //BookmarksUtils.recreatePersonalToolbarFolder(transactionSet);      //target = { parent: "NC:PersonalToolbarFolder", index: 1 };    } else {      var orientation = bt.getBTOrientation(aEvent);      var selTarget   = bt.getBTTarget(aEvent.originalTarget, orientation);    }    const kDSIID      = Components.interfaces.nsIDragService;    const kCopyAction = kDSIID.DRAGDROP_ACTION_COPY + kDSIID.DRAGDROP_ACTION_LINK;    // hide the 'open in tab' menuseparator because bookmarks    // can be inserted after it if they are dropped after the last bookmark    // a more comprehensive fix would be in the menupopup template builder    var menuTarget = target.localName == "toolbarbutton" ||                     target.localName == "menu"          &&                      orientation == BookmarksUtils.DROP_ON?                     target.lastChild:target.parentNode;    if (menuTarget.hasChildNodes() &&        menuTarget.lastChild.id == "openintabs-menuitem") {      menuTarget.removeChild(menuTarget.lastChild.previousSibling);    }    if (aDragSession.dragAction & kCopyAction)      BookmarksUtils.insertSelection("drag", selection, selTarget, true);    else      BookmarksUtils.moveSelection("drag", selection, selTarget);    // show again the menuseparator    if (menuTarget.hasChildNodes() &&        menuTarget.lastChild.id == "openintabs-menuitem") {      var element = document.createElementNS(XUL_NS, "menuseparator");      menuTarget.insertBefore(element, menuTarget.lastChild);    }  },
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/c3441f7620518b727a247d9f1ab06a7a98eb270a/browser.js/buggy/browser/base/content/browser.js