mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-21 09:49:14 +00:00
Bug 355657 don't let target="foo" links open in a hidden browser (undo-close-tab regression)
r+sr=neil
This commit is contained in:
parent
d3a5a39398
commit
3294dd981a
@ -1198,8 +1198,8 @@
|
||||
// Remove our title change listener
|
||||
oldBrowser.removeEventListener("DOMTitleChanged", this.onTitleChanged, true);
|
||||
|
||||
// We are no longer the primary content area.
|
||||
oldBrowser.setAttribute("type", "content-targetable");
|
||||
// We are no longer a targetable content area
|
||||
oldBrowser.setAttribute("type", "content");
|
||||
|
||||
// Now select the new tab before nuking the old one.
|
||||
var currentIndex = this.mTabContainer.selectedIndex;
|
||||
@ -1265,7 +1265,7 @@
|
||||
// and also saves RAM by allowing bfcache to evict the full page
|
||||
|
||||
this.savedBrowsers.unshift({browser: oldBrowser, history: oldSH});
|
||||
|
||||
|
||||
var newSH = Components.classes["@mozilla.org/browser/shistory;1"]
|
||||
.createInstance(Components.interfaces.nsISHistoryInternal);
|
||||
oldBrowser.webNavigation.sessionHistory = newSH;
|
||||
|
Loading…
x
Reference in New Issue
Block a user