зеркало из https://github.com/mozilla/pjs.git
Bug 307126 Closing tabs should return to 'parent' tab.
r=db48x sr=neil
This commit is contained in:
Родитель
6fabbdb66f
Коммит
4d0572b2e2
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче