Bug 271426 Make it possible for extensions to call BrowserHome() without parameters again subsequent to bug 267169 p=cst@andrew.cmu.edu r=timeless sr=me

This commit is contained in:
neil%parkwaycc.co.uk 2006-09-14 06:10:15 +00:00
parent dc2c1a2bc7
commit 56528f1cff

View File

@ -902,7 +902,7 @@ function BrowserHome(aEvent)
{ {
var tab; var tab;
var homePage = getHomePage(); var homePage = getHomePage();
var target = BookmarksUtils.getBrowserTargetFromEvent(aEvent); var target = aEvent ? BookmarksUtils.getBrowserTargetFromEvent(aEvent) : "current";
if (homePage.length == 1) { if (homePage.length == 1) {
switch (target) { switch (target) {