зеркало из https://github.com/mozilla/pjs.git
Putting fix for nsbeta2+ bug # 47126 into tip: fix simple mode searching. r=ben
This commit is contained in:
Родитель
68a4a3dd66
Коммит
80d091459e
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче