Changed to apply UTF-8 to UCS2 conversion before assigning the string to nsString, bug 42873, r=cata.
This commit is contained in:
@@ -1203,7 +1203,7 @@ nsWebShell::OnEndDocumentLoad(nsIDocumentLoader* loader,
|
||||
{
|
||||
// only send non-qualified hosts to the keyword server
|
||||
nsAutoString keywordSpec; keywordSpec.AssignWithConversion("keyword:");
|
||||
keywordSpec.AppendWithConversion(host);
|
||||
keywordSpec.Append(NS_ConvertUTF8toUCS2(host));
|
||||
return LoadURI(keywordSpec.GetUnicode());
|
||||
} // end keywordsEnabled
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user