From 8ec81ee110a27abf8b16396fdc057cd4d84f918d Mon Sep 17 00:00:00 2001 From: "peter%propagandism.org" Date: Sat, 3 Jan 2004 16:28:45 +0000 Subject: [PATCH] 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 --- mozilla/docshell/base/nsWebShell.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mozilla/docshell/base/nsWebShell.cpp b/mozilla/docshell/base/nsWebShell.cpp index 36ce6e403a5..c5945736b6e 100644 --- a/mozilla/docshell/base/nsWebShell.cpp +++ b/mozilla/docshell/base/nsWebShell.cpp @@ -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 }