From 0b39451aa9d2342faa193ad17f63ed58c7cb9d96 Mon Sep 17 00:00:00 2001 From: Eric Rahm Date: Tue, 23 May 2017 15:14:07 -0700 Subject: [PATCH] Bug 1307212 - Stop warning about z-levels. r=froydnj MozReview-Commit-ID: 2OughbymcrU --- xpfe/appshell/nsWindowMediator.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/xpfe/appshell/nsWindowMediator.cpp b/xpfe/appshell/nsWindowMediator.cpp index 962eb1f275fe..a9d0c1d3bc5d 100644 --- a/xpfe/appshell/nsWindowMediator.cpp +++ b/xpfe/appshell/nsWindowMediator.cpp @@ -613,12 +613,10 @@ nsWindowMediator::GetZLevel(nsIXULWindow *aWindow, uint32_t *_retval) { NS_ENSURE_ARG_POINTER(_retval); *_retval = nsIXULWindow::normalZ; + // This can fail during window destruction. nsWindowInfo *info = GetInfoFor(aWindow); if (info) { *_retval = info->mZLevel; - } else { - NS_WARNING("getting z level of unregistered window"); - // this goes off during window destruction } return NS_OK; }