do_GetService(kCStringBundleServiceCID, &rv);
do_GetService(NS_STRINGBUNDLE_CONTRACTID, &rv);
ReportToConsole(const PRUnichar* aMessageName, const PRUnichar **aParams,                 PRUint32 aParamsLength, PRUint32 aErrorFlags){  nsresult rv;  nsCOMPtr<nsIConsoleService> consoleService =    do_GetService(NS_CONSOLESERVICE_CONTRACTID, &rv);  NS_ENSURE_SUCCESS(rv, rv);  nsCOMPtr<nsIScriptError> errorObject =    do_CreateInstance(NS_SCRIPTERROR_CONTRACTID, &rv);  NS_ENSURE_SUCCESS(rv, rv);  nsCOMPtr<nsIStringBundleService> stringBundleService =    do_GetService(kCStringBundleServiceCID, &rv);  NS_ENSURE_SUCCESS(rv, rv);  nsCOMPtr<nsIStringBundle> bundle;  rv = stringBundleService->CreateBundle(           "chrome://global/locale/css.properties", getter_AddRefs(bundle));  NS_ENSURE_SUCCESS(rv, rv);  nsXPIDLString errorText;  rv = bundle->FormatStringFromName(aMessageName, aParams, aParamsLength,                                    getter_Copies(errorText));  NS_ENSURE_SUCCESS(rv, rv);  rv = errorObject->Init(errorText.get(),                         NS_LITERAL_STRING("").get(), /* file name */                         NS_LITERAL_STRING("").get(), /* source line */                         0, /* line number */                         0, /* column number */                         aErrorFlags,                         "CSS Loader");  NS_ENSURE_SUCCESS(rv, rv);  consoleService->LogMessage(errorObject);  return NS_OK;}