Bug 683953 - Part 2 - Add a docShell's history ID to the debug output; r=jlebar
This commit is contained in:
@@ -785,7 +785,8 @@ nsDocShell::nsDocShell():
|
||||
// We're counting the number of |nsDocShells| to help find leaks
|
||||
++gNumberOfDocShells;
|
||||
if (!PR_GetEnv("MOZ_QUIET")) {
|
||||
printf("++DOCSHELL %p == %ld\n", (void*) this, gNumberOfDocShells);
|
||||
printf("++DOCSHELL %p == %ld [id = %ld]\n", (void*) this,
|
||||
gNumberOfDocShells, mHistoryID);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
@@ -813,7 +814,8 @@ nsDocShell::~nsDocShell()
|
||||
// We're counting the number of |nsDocShells| to help find leaks
|
||||
--gNumberOfDocShells;
|
||||
if (!PR_GetEnv("MOZ_QUIET")) {
|
||||
printf("--DOCSHELL %p == %ld\n", (void*) this, gNumberOfDocShells);
|
||||
printf("--DOCSHELL %p == %ld [id = %ld]\n", (void*) this,
|
||||
gNumberOfDocShells, mHistoryID);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user