new tabs opened by selection search from the context menu never became children of the current tab

This commit is contained in:
SHIMODA Hiroshi 2011-01-06 11:46:20 +09:00
parent f3915ced9f
commit f48c5744bd

View File

@ -514,6 +514,19 @@ var TreeStyleTabService = {
)
);
if ('BrowserSearch' in window &&
'loadSearch' in BrowserSearch) {
eval('BrowserSearch.loadSearch = '+
BrowserSearch.loadSearch.toSource().replace(
'if (useNewTab) {',
<![CDATA[$&
if (TreeStyleTabService.shouldOpenSearchResultAsChild(arguments[0]))
TreeStyleTabService.readyToOpenChildTab();
]]>
)
);
}
this._splitFunctionNames(<![CDATA[
window.duplicateTab.handleLinkClick
window.__treestyletab__highlander__origHandleLinkClick