зеркало из https://github.com/mozilla/gecko-dev.git
Bug 972372 - fix DOMWINDOW printfs to use the canonical nsISupports pointer for matching CC logs; r=bz
This commit is contained in:
Родитель
ac6dae6f29
Коммит
126656fada
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче