rem: var name      = BookmarksUtils.getLocaleString("ile_newfolder"); var rFolder   = BMSVC.createFolder(name);  var selection = BookmarksUtils.getSelectionFromResource(rFolder, aTarget.parent); var ok        = BookmarksUtils.insertSelection("newfolder", selection, aTarget); if (ok) { var propWin = this.openBookmarkProperties(selection);  function canceledNewFolder() { BookmarksCommand.deleteBookmark(selection); propWin.document.documentElement.removeEventListener("dialogcancel", canceledNewFolder, false); propWin.removeEventListener("load", propertiesWindowLoad, false); }  function propertiesWindowLoad() { propWin.document.documentElement.addEventListener("dialogcancel", canceledNewFolder, false); } propWin.addEventListener("load", propertiesWindowLoad, false); } 
add: var name     = BookmarksUtils.getLocaleString("ile_newfolder"); var resource = BMSVC.createFolder(name); this.createNewResource(resource, aTarget, "newfolder"); 
context:   createNewFolder: function (aTarget)  {    var name      = BookmarksUtils.getLocaleString("ile_newfolder");    var rFolder   = BMSVC.createFolder(name);        var selection = BookmarksUtils.getSelectionFromResource(rFolder, aTarget.parent);    var ok        = BookmarksUtils.insertSelection("newfolder", selection, aTarget);    if (ok) {      var propWin = this.openBookmarkProperties(selection);            function canceledNewFolder()      {        BookmarksCommand.deleteBookmark(selection);        propWin.document.documentElement.removeEventListener("dialogcancel", canceledNewFolder, false);        propWin.removeEventListener("load", propertiesWindowLoad, false);      }            function propertiesWindowLoad()      {        propWin.document.documentElement.addEventListener("dialogcancel", canceledNewFolder, false);      }      propWin.addEventListener("load", propertiesWindowLoad, false);    }  },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/da1d3f24d4e18696b0a03b143c18126d06413bb0/bookmarks.js/buggy/browser/components/bookmarks/content/bookmarks.js