summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-06-15 17:52:59 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-06-15 17:52:59 +0200
commit333142b5af61c3fd67ad4e79467c03efb3641b20 (patch)
tree2b188bf6ba68e6a82c2199aabc8f6554ca46a4e8 /application
parentfb291846a59f9b8eaf8bba29e0d9794893e895bf (diff)
downloadUXP-333142b5af61c3fd67ad4e79467c03efb3641b20.tar
UXP-333142b5af61c3fd67ad4e79467c03efb3641b20.tar.gz
UXP-333142b5af61c3fd67ad4e79467c03efb3641b20.tar.lz
UXP-333142b5af61c3fd67ad4e79467c03efb3641b20.tar.xz
UXP-333142b5af61c3fd67ad4e79467c03efb3641b20.zip
Transfer findbar data to torn-off tabs.
Diffstat (limited to 'application')
-rw-r--r--application/palemoon/base/content/tabbrowser.xml11
1 files changed, 11 insertions, 0 deletions
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);