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
This commit is contained in:
jst%mozilla.org
2008-02-27 04:35:20 +00:00
parent 10341080cf
commit 83f2b161c1

View File

@@ -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();