rem: tree.selectItem(children.firstChild); 
add: if (children.firstChild) tree.selectItem(children.firstChild); 
context: function HistoryInit() {    var tree = document.getElementById("bookmarksTree");    debug("adding controller to tree");    tree.controllers.appendController(HistoryController);    var children = document.getElementById('treechildren-bookmarks');    tree.selectItem(children.firstChild);    tree.focus();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/791fa6e33d402209e793ba58fb9c8a33c5312edc/history.js/clean/xpfe/components/history/resources/history.js