rem: var target = BookmarksUtils.getBrowserTargetFromEvent(aEvent); 
add: var target = aEvent ? BookmarksUtils.getBrowserTargetFromEvent(aEvent) : "current"; 
context: function BrowserHome(aEvent){  var tab;  var homePage = getHomePage();  var target = BookmarksUtils.getBrowserTargetFromEvent(aEvent);  if (homePage.length == 1) {    switch (target) {    case "current":      loadURI(homePage[0]);      break;    case "tab":      tab = gBrowser.addTab(homePage[0]);      if (!BookmarksUtils.shouldLoadTabInBackground(aEvent))        gBrowser.selectedTab = tab;      break;    case "window":      openDialog(getBrowserURL(), "_blank", "chrome,all,dialog=no", homePage[0]);    }  } else {    if (target == "window")      openDialog(getBrowserURL(), "_blank", "chrome,all,dialog=no", homePage.join("\n"));    else {      var URIs = [];      for (var i in homePage)        URIs.push({URI: homePage[i]});      tab = gBrowser.loadGroup(URIs);            if (!BookmarksUtils.shouldLoadTabInBackground(aEvent))        gBrowser.selectedTab = tab;    }  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/a597c068def5452ae31baacb2a28fe2203ef74d0/navigator.js/buggy/xpfe/browser/resources/content/navigator.js