mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 12:25:53 +00:00
Bug 1394369 - Add calling script name + line LOG to HttpChannelChild::AsyncOpen. r=mcmanus
This commit is contained in:
parent
479aa79ca8
commit
1d0de9b6b3
@ -2304,6 +2304,18 @@ HttpChannelChild::AsyncOpen(nsIStreamListener *listener, nsISupports *aContext)
|
||||
|
||||
LOG(("HttpChannelChild::AsyncOpen [this=%p uri=%s]\n", this, mSpec.get()));
|
||||
|
||||
if (LOG4_ENABLED()) {
|
||||
JSContext* cx = nsContentUtils::GetCurrentJSContext();
|
||||
if (cx) {
|
||||
nsAutoCString fileNameString;
|
||||
uint32_t line = 0, col = 0;
|
||||
if (nsJSUtils::GetCallingLocation(cx, fileNameString, &line, &col)) {
|
||||
LOG(("HttpChannelChild %p source script=%s:%u:%u",
|
||||
this, fileNameString.get(), line, col));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
AssertPrivateBrowsingId();
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user