Transfer findbar data to torn-off tabs.

This commit is contained in:
wolfbeast 2018-06-15 17:52:59 +02:00 committed by Roy Tam
commit 6e95f87e3b

View file

@ -2277,6 +2277,17 @@
this._swapBrowserDocShells(aOurTab, otherBrowser);
}
// Handle findbar data (if any)
let otherFindBar = aOtherTab._findBar;
if (otherFindBar &&
otherFindBar.findMode == otherFindBar.FIND_NORMAL) {
let ourFindBar = this.getFindBar(aOurTab);
ourFindBar._findField.value = otherFindBar._findField.value;
if (!otherFindBar.hidden) {
ourFindBar.onFindCommand();
}
}
// Finish tearing down the tab that's going away.
remoteBrowser._endRemoveTab(aOtherTab);