Bug 556524 - Taskbar tab preview crashes [@ mozilla::widget::WindowHook::Lookup(unsigned int)] in Firefox 3.6 at SetVisible; r=jmathies a=blocking-final+
authorRob Arnold <tellrob@gmail.com>
Tue, 23 Nov 2010 09:58:38 -0500
changeset 58032 b14f7ebae437a052adb2b841874a6cd8f5db38ca
parent 58031 fc75e982b6dd93d4a730500fec5b84233b4daaa1
child 58033 d9a4ae0eb4e4dbc365dff26c4f4e2804ac4c1eae
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
reviewersjmathies, blocking-final
bugs556524
milestone2.0b8pre
Bug 556524 - Taskbar tab preview crashes [@ mozilla::widget::WindowHook::Lookup(unsigned int)] in Firefox 3.6 at SetVisible; r=jmathies a=blocking-final+
widget/src/windows/nsWindow.cpp
--- a/widget/src/windows/nsWindow.cpp
+++ b/widget/src/windows/nsWindow.cpp
@@ -706,18 +706,21 @@ NS_METHOD nsWindow::Destroy()
   // If the specified window is a parent or owner window, DestroyWindow automatically destroys
   // the associated child or owned windows when it destroys the parent or owner window. The
   // function first destroys child or owned windows, and then it destroys the parent or owner
   // window.
   VERIFY(::DestroyWindow(mWnd));
   
   // Our windows can be subclassed which may prevent us receiving WM_DESTROY. If OnDestroy()
   // didn't get called, call it now.
-  if (PR_FALSE == mOnDestroyCalled)
+  if (PR_FALSE == mOnDestroyCalled) {
+    LRESULT result;
+    mWindowHook.Notify(mWnd, WM_DESTROY, 0, 0, &result);
     OnDestroy();
+  }
 
   return NS_OK;
 }
 
 /**************************************************************
  *
  * SECTION: Window class utilities
  *