rem: folder = BookmarksUtils.getParentOfContainer(folder); 
add: folder = BookmarksUtils.getParentOfResource(folder); 
context:   isContainerChildOrSelf: function (aContainer, aSelection)  {    var folder = aContainer;    do {      for (var i=0; i<aSelection.length; ++i) {        if (aSelection.isContainer[i] && aSelection.item[i] == folder)          return true;      }      folder = BookmarksUtils.getParentOfContainer(folder);      if (!folder)        return false; // sanity check    } while (folder.Value != "NC:BookmarksRoot")    return false;  },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/ac77f358a61b45de690bdb84b46470c08b2a00a8/bookmarks.js/buggy/browser/components/bookmarks/content/bookmarks.js