hack for BrowserSearch.loadSearch() didn't work on Firefox 4 or later.
This commit is contained in:
parent
5e26c9de1e
commit
7ced731636
@ -187,11 +187,19 @@ var TreeStyleTabWindowHelper = {
|
||||
'loadSearch' in BrowserSearch) {
|
||||
eval('BrowserSearch.loadSearch = '+
|
||||
BrowserSearch.loadSearch.toSource().replace(
|
||||
// for old Firefox 3.6 or olders
|
||||
'if (useNewTab) {',
|
||||
<![CDATA[$&
|
||||
if (TreeStyleTabService.shouldOpenSearchResultAsChild(arguments[0]))
|
||||
TreeStyleTabService.readyToOpenChildTab();
|
||||
]]>
|
||||
).replace(
|
||||
// for old Firefox 4 or later
|
||||
'openLinkIn(',
|
||||
<![CDATA[
|
||||
if (useNewTab && TreeStyleTabService.shouldOpenSearchResultAsChild(arguments[0]))
|
||||
TreeStyleTabService.readyToOpenChildTab();
|
||||
$&]]>
|
||||
)
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user