rem: gHistoryOutliner.outlinerBoxObject.view.selection.getRangeAt(i, min, max); 
add: gHistoryTree.treeBoxObject.view.selection.getRangeAt(i, min, max); 
context: function historyAddBookmarks(){  var count = gHistoryOutliner.outlinerBoxObject.view.selection.count;  var url;  var title;  if (count == 1) {    var currentIndex = gHistoryOutliner.currentIndex;    url = gHistoryOutliner.outlinerBoxObject.view.getCellText(currentIndex, "URL");    title = gHistoryOutliner.outlinerBoxObject.view.getCellText(currentIndex, "Name");    BookmarksUtils.addBookmark(url, title, undefined, true);  }  else if (count > 1) {    var min = new Object();     var max = new Object();    var rangeCount = gHistoryOutliner.outlinerBoxObject.view.selection.getRangeCount();    for (var i = 0; i < rangeCount; ++i) {      gHistoryOutliner.outlinerBoxObject.view.selection.getRangeAt(i, min, max);      for (var k = max.value; k >= min.value; --k) {        url = gHistoryOutliner.outlinerBoxObject.view.getCellText(k, "URL");        title = gHistoryOutliner.outlinerBoxObject.view.getCellText(k, "Name");        BookmarksUtils.addBookmark(url, title, undefined, false);      }    }  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/a376ddc0531725ad80728692bef9c8ab8b17636c/history.js/buggy/suite/common/history/history.js