diff --git a/widget/src/mac/nsMacWindow.cpp b/widget/src/mac/nsMacWindow.cpp index 9ad360d97ce8..b112a804f40e 100644 --- a/widget/src/mac/nsMacWindow.cpp +++ b/widget/src/mac/nsMacWindow.cpp @@ -1461,8 +1461,10 @@ NS_IMETHODIMP nsMacWindow::Resize(PRInt32 aWidth, PRInt32 aHeight, PRBool aRepai // instead we just hide the window by calling Show(false), which sets // mVisible to false. But the window is still considered to be 'visible' // so we set that back to true. - Show(PR_FALSE); - mVisible = PR_TRUE; + if (mVisible) { + Show(PR_FALSE); + mVisible = PR_TRUE; + } } } }