From 333142b5af61c3fd67ad4e79467c03efb3641b20 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Fri, 15 Jun 2018 17:52:59 +0200 Subject: Transfer findbar data to torn-off tabs. --- application/palemoon/base/content/tabbrowser.xml | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'application/palemoon/base/content/tabbrowser.xml') diff --git a/application/palemoon/base/content/tabbrowser.xml b/application/palemoon/base/content/tabbrowser.xml index 2db38e56f..74bd04467 100644 --- a/application/palemoon/base/content/tabbrowser.xml +++ b/application/palemoon/base/content/tabbrowser.xml @@ -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); -- cgit v1.2.3