Bug 513234: don't show the 'New tab opened' alert if the new tab is the current tab, r=mfinkle
authorVivien Nicolas <21@vingtetun.org>
Sun, 30 Aug 2009 02:32:56 -0400
changeset 65487 61a684a960d53fe6400718432d51f9f8294f1851
parent 65486 d821b2869242acaf4a7d40aa2094ad124084cb21
child 65488 8ff9bcdafb49fb6059d98c37c01de8f1990f8ecf
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs513234
Bug 513234: don't show the 'New tab opened' alert if the new tab is the current tab, r=mfinkle
mobile/chrome/content/browser-ui.js
--- a/mobile/chrome/content/browser-ui.js
+++ b/mobile/chrome/content/browser-ui.js
@@ -612,17 +612,18 @@ var BrowserUI = {
         break;
       case "UIShowSelect":
         SelectHelper.show(aEvent.target);
         break;
       case "TabSelect":
         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
       case "click":
         this.doCommand("cmd_openLocation");
         break;
       case "keypress":
         if (aEvent.keyCode == aEvent.DOM_VK_ESCAPE) {