From 943b8ce48e0982306e189011208d7d88dab3b307 Mon Sep 17 00:00:00 2001 From: "reed@reedloden.com" Date: Wed, 13 Feb 2008 02:21:54 -0800 Subject: [PATCH] =?UTF-8?q?Bug=20416710=20-=20"When=20opening=20a=20tab=20?= =?UTF-8?q?in=20the=20foreground,=20we=20set=20selectedTab=20twice"=20[p?= =?UTF-8?q?=3Ddao@mozilla.com=20(D=C3=A3o=20Gottwald)=20r=3Dgavin=20a1.9?= =?UTF-8?q?=3Dschrep]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- browser/base/content/tabbrowser.xml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/browser/base/content/tabbrowser.xml b/browser/base/content/tabbrowser.xml index c3588755a61..695092cfc18 100644 --- a/browser/base/content/tabbrowser.xml +++ b/browser/base/content/tabbrowser.xml @@ -1018,17 +1018,9 @@ var owner = bgLoad ? null : this.selectedTab; var tab = this.addTab(aURI, aReferrerURI, aCharset, aPostData, owner, aAllowThirdPartyFixup); - // Set newly selected tab after quick timeout, otherwise hideous focus problems - // can occur when "browser.tabs.loadInBackground" is false and presshell is not ready - if (!bgLoad) { - function selectNewForegroundTab(browser, tab) { - browser.selectedTab = tab; - } - setTimeout(selectNewForegroundTab, 0, getBrowser(), tab); - } if (!bgLoad) this.selectedTab = tab; - + return tab; ]]>