Bug 307126 Closing tabs should return to 'parent' tab.

r=db48x sr=neil
This commit is contained in:
cst%andrew.cmu.edu 2006-07-29 05:44:32 +00:00
parent b739dfcb25
commit 627696954b

View File

@ -165,15 +165,13 @@ function openNewTabWith(url, sendReferrer, reverseBackgroundPref)
}
// open link in new tab
var tab = browser.addTab(url, referrer, originCharset);
var loadInBackground = false;
if (pref) {
var loadInBackground = pref.getBoolPref("browser.tabs.loadInBackground");
loadInBackground = pref.getBoolPref("browser.tabs.loadInBackground");
if (reverseBackgroundPref)
loadInBackground = !loadInBackground;
if (!loadInBackground)
browser.selectedTab = tab;
}
browser.addTab(url, referrer, originCharset, !loadInBackground);
}
// Clientelle: (Make sure you don't break any of these)