зеркало из https://github.com/mozilla/gecko-dev.git
Changed to apply UTF-8 to UCS2 conversion before assigning the string to nsString, bug 42873, r=cata.
This commit is contained in:
Родитель
e1ca0a01b8
Коммит
bb6a6e9f54
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче