Bug 972372 - fix DOMWINDOW printfs to use the canonical nsISupports pointer for matching CC logs; r=bz

This commit is contained in:
Nathan Froyd 2014-02-12 12:53:13 -05:00
Родитель ac6dae6f29
Коммит 126656fada
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -1177,10 +1177,10 @@ nsGlobalWindow::nsGlobalWindow(nsGlobalWindow *aOuterWindow)
if (!PR_GetEnv("MOZ_QUIET")) {
printf_stderr("++DOMWINDOW == %d (%p) [pid = %d] [serial = %d] [outer = %p]\n",
gRefCnt,
static_cast<void*>(static_cast<nsIScriptGlobalObject*>(this)),
static_cast<void*>(ToCanonicalSupports(this)),
getpid(),
gSerialCounter,
static_cast<void*>(static_cast<nsIScriptGlobalObject*>(aOuterWindow)));
static_cast<void*>(ToCanonicalSupports(aOuterWindow)));
}
#endif
@ -1255,10 +1255,10 @@ nsGlobalWindow::~nsGlobalWindow()
nsGlobalWindow* outer = static_cast<nsGlobalWindow*>(mOuterWindow.get());
printf_stderr("--DOMWINDOW == %d (%p) [pid = %d] [serial = %d] [outer = %p] [url = %s]\n",
gRefCnt,
static_cast<void*>(static_cast<nsIScriptGlobalObject*>(this)),
static_cast<void*>(ToCanonicalSupports(this)),
getpid(),
mSerial,
static_cast<void*>(static_cast<nsIScriptGlobalObject*>(outer)),
static_cast<void*>(ToCanonicalSupports(outer)),
url.get());
}
#endif