Bug 513234: don't show the 'New tab opened' alert if the new tab is the current tab, r=mfinkle

This commit is contained in:
Vivien Nicolas 2009-08-30 02:32:56 -04:00
Родитель 4d46272cf5
Коммит 1522f204a3
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -617,7 +617,8 @@ var BrowserUI = {
this._tabSelect(aEvent);
break;
case "TabOpen":
if (!this.isTabsVisible())
if (!this.isTabsVisible() &&
Browser.selectedTab.chromeTab != aEvent.target)
NewTabPopup.show(aEvent.target);
break;
// URL textbox events