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 2004-11-26 17:30:16 +00:00
parent 60a5cfabbc
commit a597c068de

View File

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