bug 101562 - dont' use necko to unnecessarily create URIs just to load a string bundle. r=harishd, sr=attinasi
This commit is contained in:
@@ -534,16 +534,16 @@ nsGfxButtonControlFrame::GetDefaultLabel(nsString& aString)
|
||||
PRInt32 type;
|
||||
GetType(&type);
|
||||
if (IsReset(type)) {
|
||||
rv = nsFormControlHelper::GetLocalizedString(propname, "Reset", aString);
|
||||
rv = nsFormControlHelper::GetLocalizedString(propname, NS_LITERAL_STRING("Reset").get(), aString);
|
||||
}
|
||||
else if (IsSubmit(type)) {
|
||||
rv = nsFormControlHelper::GetLocalizedString(propname, "Submit", aString);
|
||||
rv = nsFormControlHelper::GetLocalizedString(propname, NS_LITERAL_STRING("Submit").get(), aString);
|
||||
}
|
||||
else if (IsBrowse(type)) {
|
||||
rv = nsFormControlHelper::GetLocalizedString(propname, "Browse", aString);
|
||||
rv = nsFormControlHelper::GetLocalizedString(propname, NS_LITERAL_STRING("Browse").get(), aString);
|
||||
}
|
||||
else {
|
||||
aString.AssignWithConversion(" ");
|
||||
aString.Assign(NS_LITERAL_STRING(" "));
|
||||
rv = NS_OK;
|
||||
}
|
||||
return rv;
|
||||
|
||||
Reference in New Issue
Block a user