rem: var propWin = this.openBookmarkProperties(selection);  function canceledNewResource() { 
add: ok = this.openBookmarkProperties(selection); if (!ok) 
context:   createNewResource: function(aResource, aTarget, aTxnType)  {    var selection = BookmarksUtils.getSelectionFromResource(aResource, aTarget.parent);    var ok        = BookmarksUtils.insertAndCheckSelection(aTxnType, selection, aTarget);    if (ok) {      var propWin = this.openBookmarkProperties(selection);            function canceledNewResource()      {        BookmarksCommand.deleteBookmark(selection);        propWin.document.documentElement.removeEventListener("dialogcancel", canceledNewResource, false);        propWin.removeEventListener("load", propertiesWindowLoad, false);      }            function propertiesWindowLoad()      {        propWin.document.documentElement.addEventListener("dialogcancel", canceledNewResource, false);      }      propWin.addEventListener("load", propertiesWindowLoad, false);    }  },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/00de4479206446cee765f3a13178af4ec6d270fd/bookmarks.js/buggy/browser/components/bookmarks/content/bookmarks.js