bug 244754 : URL is not shown in the status bar when hovering over a url-escaped URL in an encoding different from the document enecoding (r=darin, sr=bzbarsky)
git-svn-id: svn://10.0.0.236/trunk@169604 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -322,10 +322,11 @@ nsMediaDocument::UpdateTitleAndCharset(const nsACString& aTypeStr,
|
||||
nsCOMPtr<nsITextToSubURI> textToSubURI =
|
||||
do_GetService(NS_ITEXTTOSUBURI_CONTRACTID, &rv);
|
||||
if (NS_SUCCEEDED(rv))
|
||||
rv = textToSubURI->UnEscapeURIForUI(docCharset, fileName, fileStr);
|
||||
// UnEscapeURIForUI always succeeds
|
||||
textToSubURI->UnEscapeURIForUI(docCharset, fileName, fileStr);
|
||||
else
|
||||
CopyUTF8toUTF16(fileName, fileStr);
|
||||
}
|
||||
if (fileStr.IsEmpty())
|
||||
CopyUTF8toUTF16(fileName, fileStr);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user