mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
- Make sure BrowserRequestContextProxy is only used on the IO thread (issue #542).
- Windows: Reset the window procedure in the WebWidgetHost destructor to avoid crashes if messages are delivered after the window is destroyed. - Add thread-related DCHECKS in browser_resource_loader_bridge.cc. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@650 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -353,11 +353,14 @@ WebWidgetHost::WebWidgetHost()
|
||||
}
|
||||
|
||||
WebWidgetHost::~WebWidgetHost() {
|
||||
if (view_)
|
||||
ui::SetWindowUserData(view_, 0);
|
||||
|
||||
TrackMouseLeave(false);
|
||||
ResetTooltip();
|
||||
|
||||
if (view_) {
|
||||
ui::SetWindowUserData(view_, 0);
|
||||
ui::SetWindowProc(view_, DefWindowProc);
|
||||
view_ = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
bool WebWidgetHost::WndProc(UINT message, WPARAM wparam, LPARAM lparam) {
|
||||
|
Reference in New Issue
Block a user