Bug 1200484 (part 5) - Use JS column numbers in XPCNativeInterface::NewInstance(). r=mrbkap.

--HG--
extra : rebase_source : 0dcb6934b44062887d911fd0e9eeaff817d65454
This commit is contained in:
Nicholas Nethercote 2015-09-01 17:56:03 -07:00
parent 546b92e4cc
commit 92315e0173

View File

@ -244,12 +244,12 @@ XPCNativeInterface::NewInstance(nsIInterfaceInfo* aInfo)
nsPrintfCString errorMsg("Use of %s in content process is deprecated.", intfNameChars);
nsAutoString filename;
uint32_t lineno = 0;
nsJSUtils::GetCallingLocation(cx, filename, &lineno);
uint32_t lineno = 0, column = 0;
nsJSUtils::GetCallingLocation(cx, filename, &lineno, &column);
nsCOMPtr<nsIScriptError> error(do_CreateInstance(NS_SCRIPTERROR_CONTRACTID));
error->Init(NS_ConvertUTF8toUTF16(errorMsg),
filename, EmptyString(),
lineno, 0, nsIScriptError::warningFlag, "chrome javascript");
lineno, column, nsIScriptError::warningFlag, "chrome javascript");
console->LogMessage(error);
}
}