Bug 104158: Use NS_LITERAL_STRING instead of XXXWithConversion("..."). r=bryner, rs=alecf
git-svn-id: svn://10.0.0.236/trunk@110579 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -969,9 +969,9 @@ nsScriptSecurityManager::ReportErrorToConsole(nsIURI* aTarget)
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
nsAutoString msg;
|
||||
msg.AssignWithConversion("The link to ");
|
||||
msg.Assign(NS_LITERAL_STRING("The link to "));
|
||||
msg.AppendWithConversion(spec);
|
||||
msg.AppendWithConversion(" was blocked by the security manager.\nRemote content may not link to local content.");
|
||||
msg.Append(NS_LITERAL_STRING(" was blocked by the security manager.\nRemote content may not link to local content."));
|
||||
// Report error in JS console
|
||||
nsCOMPtr<nsIConsoleService> console(do_GetService("@mozilla.org/consoleservice;1"));
|
||||
if (console)
|
||||
|
||||
Reference in New Issue
Block a user