Bug 1069490 - Part 3: Set columnNumber when processing console messages. r=bz

This commit is contained in:
Eric Rahm 2014-09-22 11:28:55 -07:00
parent 24b168eed6
commit 6b5f563b51

View File

@ -764,6 +764,12 @@ StackFrameToStackEntry(nsIStackFrame* aStackFrame,
aStackEntry.mLineNumber = lineNumber; aStackEntry.mLineNumber = lineNumber;
int32_t columnNumber;
rv = aStackFrame->GetColumnNumber(&columnNumber);
NS_ENSURE_SUCCESS(rv, rv);
aStackEntry.mColumnNumber = columnNumber;
rv = aStackFrame->GetName(aStackEntry.mFunctionName); rv = aStackFrame->GetName(aStackEntry.mFunctionName);
NS_ENSURE_SUCCESS(rv, rv); NS_ENSURE_SUCCESS(rv, rv);
@ -1062,6 +1068,7 @@ Console::ProcessCallData(ConsoleCallData* aData)
event.mLevel = aData->mMethodString; event.mLevel = aData->mMethodString;
event.mFilename = frame.mFilename; event.mFilename = frame.mFilename;
event.mLineNumber = frame.mLineNumber; event.mLineNumber = frame.mLineNumber;
event.mColumnNumber = frame.mColumnNumber;
event.mFunctionName = frame.mFunctionName; event.mFunctionName = frame.mFunctionName;
event.mTimeStamp = aData->mTimeStamp; event.mTimeStamp = aData->mTimeStamp;
event.mPrivate = aData->mPrivate; event.mPrivate = aData->mPrivate;