Reviewed by Adam and Darin.
<rdar://problem/
5403095> Crash in WebViewWndProc after closing a window
We are seeing another case where WM_SETFOCUS is sent after WM_DESTROY has been handled in WebView.
Bail early in the wndProc if WebView is set to be destroyed.
* WebView.cpp:
(WebViewWndProc):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@25003
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2007-08-10 Ada Chan <adachan@apple.com>
+
+ Reviewed by Adam and Darin.
+
+ <rdar://problem/5403095> Crash in WebViewWndProc after closing a window
+ We are seeing another case where WM_SETFOCUS is sent after WM_DESTROY has been handled in WebView.
+ Bail early in the wndProc if WebView is set to be destroyed.
+
+ * WebView.cpp:
+ (WebViewWndProc):
+
2007-08-02 Ada Chan <adachan@apple.com>
Reviewed by Steve.
LONG_PTR longPtr = GetWindowLongPtr(hWnd, 0);
WebView* webView = reinterpret_cast<WebView*>(longPtr);
WebFrame* mainFrameImpl = webView ? webView->topLevelFrame() : 0;
- if (!mainFrameImpl)
+ if (!mainFrameImpl || webView->isBeingDestroyed())
return DefWindowProc(hWnd, message, wParam, lParam);
ASSERT(webView);