mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 12:25:53 +00:00
checking in patch for dbragg for bug 78442 - Crash for scenario test case using execute (blk param not required). r=ssu. nsJSFile.cpp
This commit is contained in:
parent
ec7f066362
commit
0c99a6de79
@ -235,9 +235,12 @@ nsLoggingProgressListener::ItemScheduled(const PRUnichar* message )
|
||||
NS_IMETHODIMP
|
||||
nsLoggingProgressListener::FinalizeProgress(const PRUnichar* message, PRInt32 itemNum, PRInt32 totNum )
|
||||
{
|
||||
nsCString messageConverted;
|
||||
messageConverted.AssignWithConversion(message);
|
||||
|
||||
if (mLogStream == nsnull) return NS_ERROR_NULL_POINTER;
|
||||
|
||||
*mLogStream << " [" << (itemNum) << "/" << totNum << "]\t" << NS_ConvertUCS2toUTF8(message).get() << nsEndl;
|
||||
*mLogStream << " [" << (itemNum) << "/" << totNum << "]\t" << messageConverted.get() << nsEndl;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
@ -287,9 +290,12 @@ nsLoggingProgressListener::GetTime(char** aString)
|
||||
NS_IMETHODIMP
|
||||
nsLoggingProgressListener::LogComment(const PRUnichar* comment)
|
||||
{
|
||||
nsCString commentConverted;
|
||||
commentConverted.AssignWithConversion(comment);
|
||||
|
||||
if (mLogStream == nsnull) return NS_ERROR_NULL_POINTER;
|
||||
|
||||
*mLogStream << " ** " << NS_ConvertUCS2toUTF8(comment).get() << nsEndl;
|
||||
*mLogStream << " ** " << commentConverted.get() << nsEndl;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user