Bug 1284947 - Update tab's permanentKey in _swapBrowserDocShells. r=dao

This commit is contained in:
Allasso Travesser 2016-07-09 05:13:25 +02:00
parent fde1299fb6
commit 2d3d8fad74

View File

@ -2730,6 +2730,13 @@
let ourPermanentKey = ourBrowser.permanentKey;
ourBrowser.permanentKey = aOtherBrowser.permanentKey;
aOtherBrowser.permanentKey = ourPermanentKey;
aOurTab.permanentKey = ourBrowser.permanentKey;
if (remoteBrowser) {
let otherTab = remoteBrowser.getTabForBrowser(aOtherBrowser);
if (otherTab) {
otherTab.permanentKey = aOtherBrowser.permanentKey;
}
}
// Restore the progress listener
tabListener = this.mTabProgressListener(aOurTab, ourBrowser, false, false);