mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-02 15:15:23 +00:00
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:
parent
dc2c1a2bc7
commit
56528f1cff
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user