mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-12 17:22:04 +00:00
Bug 307126 Closing tabs should return to 'parent' tab.
r=db48x sr=neil
This commit is contained in:
parent
b739dfcb25
commit
627696954b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user