From 83f2b161c11c573433c4fd9306616f7dd923e86f Mon Sep 17 00:00:00 2001 From: "jst%mozilla.org" Date: Wed, 27 Feb 2008 04:35:20 +0000 Subject: [PATCH] Landing fix for bug 328675. Working around a real player plugin bug where it recurses to death in certain circumstances. Patch by martijn.martijn@gmail.com, r+sr=jst@mozilla.org. git-svn-id: svn://10.0.0.236/trunk@246622 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/modules/plugin/base/src/nsPluginNativeWindowWin.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mozilla/modules/plugin/base/src/nsPluginNativeWindowWin.cpp b/mozilla/modules/plugin/base/src/nsPluginNativeWindowWin.cpp index 4d79aa2f2fc..27b74b160d0 100644 --- a/mozilla/modules/plugin/base/src/nsPluginNativeWindowWin.cpp +++ b/mozilla/modules/plugin/base/src/nsPluginNativeWindowWin.cpp @@ -317,6 +317,9 @@ static LRESULT CALLBACK PluginWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM case WM_SETFOCUS: case WM_KILLFOCUS: { + // RealPlayer can crash, don't process the message for those, see bug 328675 + if (win->mPluginType == nsPluginType_Real && msg == sLastMsg) + return TRUE; // Make sure setfocus and killfocus get through // even if they are eaten by the plugin WNDPROC prevWndProc = win->GetPrevWindowProc();