diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-06-15 17:52:59 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-06-15 17:52:59 +0200 |
commit | 333142b5af61c3fd67ad4e79467c03efb3641b20 (patch) | |
tree | 2b188bf6ba68e6a82c2199aabc8f6554ca46a4e8 /application/palemoon/base | |
parent | fb291846a59f9b8eaf8bba29e0d9794893e895bf (diff) | |
download | UXP-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/palemoon/base')
-rw-r--r-- | application/palemoon/base/content/tabbrowser.xml | 11 |
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); |