Don't let success of string bundle calls dictate the return value, continue to return errors. Still bug 214050.
git-svn-id: svn://10.0.0.236/trunk@145325 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -778,12 +778,12 @@ nsScriptSecurityManager::CheckPropertyAccessImpl(PRUint32 aAction,
|
||||
};
|
||||
|
||||
nsXPIDLString errorMsg;
|
||||
rv = sStrBundle->FormatStringFromName(stringName.get(),
|
||||
formatStrings,
|
||||
NS_ARRAY_LENGTH(formatStrings),
|
||||
getter_Copies(errorMsg));
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
nsresult rv2 = sStrBundle->FormatStringFromName(stringName.get(),
|
||||
formatStrings,
|
||||
NS_ARRAY_LENGTH(formatStrings),
|
||||
getter_Copies(errorMsg));
|
||||
NS_ENSURE_SUCCESS(rv2, rv2);
|
||||
|
||||
JS_SetPendingException(cx,
|
||||
STRING_TO_JSVAL(JS_NewUCStringCopyZ(cx,
|
||||
NS_REINTERPRET_CAST(const jschar*, errorMsg.get()))));
|
||||
|
||||
Reference in New Issue
Block a user