From 447f798a29caf7148e37ad407dfe267848909aef Mon Sep 17 00:00:00 2001 From: Jim Mathies Date: Fri, 15 Oct 2010 13:32:35 -0500 Subject: [PATCH] Bug 545892 - Fix for plugins kill aero glass / browser window sometimes loses aero glass effect. r=bent, a=final. --- ipc/glue/WindowsMessageLoop.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/ipc/glue/WindowsMessageLoop.cpp b/ipc/glue/WindowsMessageLoop.cpp index c9c31b22392..71a847c4489 100644 --- a/ipc/glue/WindowsMessageLoop.cpp +++ b/ipc/glue/WindowsMessageLoop.cpp @@ -292,12 +292,17 @@ ProcessOrDeferMessage(HWND hwnd, case WM_GETMINMAXINFO: case WM_GETTEXT: case WM_NCHITTEST: - case WM_STYLECHANGING: - case WM_SYNCPAINT: // Intentional fall-through. - case WM_WINDOWPOSCHANGING: { + case WM_STYLECHANGING: // Intentional fall-through. + case WM_WINDOWPOSCHANGING: { return DefWindowProc(hwnd, uMsg, wParam, lParam); } + // Just return, prevents DefWindowProc from messaging the window + // syncronously with other events, which may be deferred. Prevents + // random shutdown of aero composition on the window. + case WM_SYNCPAINT: + return 0; + // Unknown messages only. default: { #ifdef DEBUG