rem: var count = gHistoryTree.view.selection.count; if (count != 1) return;  var currentIndex = gHistoryTree.currentIndex; if (isContainer(gHistoryTree, currentIndex)) return;  var builder = gHistoryTree.builder.QueryInterface(Components.interfaces.nsIXULTreeBuilder); var url = builder.getResourceAtIndex(currentIndex).ValueUTF8;  if (!checkURLSecurity(url)) return;  if (aWhere == 0) openTopWin(url); else if (aWhere == 1) openNewWindowWith(url, null, false); else openNewTabWith(url, null, event, false); 
add: OpenURLIn(whereToOpenLink(event)); 
context: function OpenURL(aWhere, event){  var count = gHistoryTree.view.selection.count;  if (count != 1)    return;  var currentIndex = gHistoryTree.currentIndex;       if (isContainer(gHistoryTree, currentIndex))    return;   var builder = gHistoryTree.builder.QueryInterface(Components.interfaces.nsIXULTreeBuilder);  var url = builder.getResourceAtIndex(currentIndex).ValueUTF8;    if (!checkURLSecurity(url))     return;  if (aWhere == 0)    openTopWin(url);  else if (aWhere == 1)    openNewWindowWith(url, null, false);  else    openNewTabWith(url, null, event, false);     }
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/865bfc75b23ed219acdbb216fba1abcd6d531fc1/history.js/clean/browser/components/history/content/history.js