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.

This commit is contained in:
jst@mozilla.org 2008-02-26 20:35:20 -08:00
parent c025f17f59
commit ccc0ee65c3

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