mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-01-08 08:11:36 +01:00
Fix heap-use-after-free in CefBrowserMessageFilter::OnFrameFocused (issue #1567).
git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/2272@2050 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
b411bcabed
commit
c61d698b35
@ -35,6 +35,8 @@ void CefBrowserMessageFilter::OnFilterAdded(IPC::Sender* sender) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void CefBrowserMessageFilter::OnFilterRemoved() {
|
void CefBrowserMessageFilter::OnFilterRemoved() {
|
||||||
|
host_ = NULL;
|
||||||
|
sender_ = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CefBrowserMessageFilter::OnMessageReceived(const IPC::Message& message) {
|
bool CefBrowserMessageFilter::OnMessageReceived(const IPC::Message& message) {
|
||||||
@ -124,6 +126,9 @@ void CefBrowserMessageFilter::OnFrameFocused(int32 render_frame_routing_id) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!host_)
|
||||||
|
return;
|
||||||
|
|
||||||
CefRefPtr<CefBrowserHostImpl> browser =
|
CefRefPtr<CefBrowserHostImpl> browser =
|
||||||
CefBrowserHostImpl::GetBrowserForFrame(host_->GetID(),
|
CefBrowserHostImpl::GetBrowserForFrame(host_->GetID(),
|
||||||
render_frame_routing_id);
|
render_frame_routing_id);
|
||||||
|
Loading…
Reference in New Issue
Block a user