From 0f5c7b96097654f594fd3dcffc498d903de24701 Mon Sep 17 00:00:00 2001 From: Vivien Nicolas <21@vingtetun.org> Date: Mon, 15 Jun 2009 08:44:30 -0400 Subject: [PATCH] Bug 495435: cmd_close does not work, r=combee --- mobile/chrome/content/browser-ui.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mobile/chrome/content/browser-ui.js b/mobile/chrome/content/browser-ui.js index 53814899aad5..e30fbbeafc56 100644 --- a/mobile/chrome/content/browser-ui.js +++ b/mobile/chrome/content/browser-ui.js @@ -439,7 +439,8 @@ var BrowserUI = { }, closeTab : function closeTab(aTab) { - Browser.closeTab(aTab); + // If no tab is passed in, assume the current tab + Browser.closeTab(aTab || Browser.selectedTab); }, selectTab : function selectTab(aTab) {