Putting fix for nsbeta2+ bug # 47126 into tip: fix simple mode searching. r=ben

This commit is contained in:
rjc%netscape.com 2000-08-02 05:30:08 +00:00
Родитель 68a4a3dd66
Коммит 80d091459e
1 изменённых файлов: 14 добавлений и 1 удалений

Просмотреть файл

@ -875,8 +875,21 @@ function OpenSearch( aSearchStr, engineURIs )
debug("No engines, default to '" + searchEngineURI + "'\n");
}
if ((!searchEngineURI) || (searchEngineURI == ""))
{
searchEngineURI = bundle.GetStringFromName("defaultSearchURL");
}
// look up the correct search URL format for the given engine
var searchURL = searchDS.GetInternetSearchURL( searchEngineURI, escapedSearchStr );
try
{
var searchURL = searchDS.GetInternetSearchURL( searchEngineURI, escapedSearchStr );
}
catch(ex)
{
searchURL = "";
}
if (searchURL)
{
defaultSearchURL = searchURL;