mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 1200484 (part 5) - Use JS column numbers in XPCNativeInterface::NewInstance(). r=mrbkap.
--HG-- extra : rebase_source : 0dcb6934b44062887d911fd0e9eeaff817d65454
This commit is contained in:
parent
546b92e4cc
commit
92315e0173
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user