Fix for bug 229668 (Hang after typing keywords into address bar for "I'm feeling lucky" google search). Patch by jtalkington@users.sourceforge.net, r=jshin, sr=peterv.

git-svn-id: svn://10.0.0.236/trunk@150846 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
peter%propagandism.org
2004-01-03 16:28:45 +00:00
parent c68eb50374
commit 8ec81ee110

View File

@@ -862,8 +862,11 @@ nsresult nsWebShell::EndPageLoad(nsIWebProgress *aProgress,
if(keywordsEnabled && (-1 == dotLoc)) {
// only send non-qualified hosts to the keyword server
nsCAutoString keywordSpec("keyword:");
keywordSpec += host;
NS_NewURI(getter_AddRefs(newURI),
NS_LITERAL_CSTRING("keyword:") + host, nsnull);
keywordSpec, nsnull);
} // end keywordsEnabled
}