mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-23 15:37:51 +01:00
Merge revision 1369 changes:
- Fix render process crash when detaching a frame that never navigated. git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/1453@1371 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
185e56cc2c
commit
7263d45bbf
@ -470,13 +470,14 @@ void CefBrowserImpl::DidStartProvisionalLoad(WebKit::WebFrame* frame) {
|
||||
void CefBrowserImpl::FrameDetached(WebFrame* frame) {
|
||||
int64 frame_id = frame->identifier();
|
||||
|
||||
{
|
||||
if (!frames_.empty()) {
|
||||
// Remove the frame from the map.
|
||||
FrameMap::iterator it = frames_.find(frame_id);
|
||||
DCHECK(it != frames_.end());
|
||||
if (it != frames_.end()) {
|
||||
it->second->Detach();
|
||||
frames_.erase(it);
|
||||
}
|
||||
}
|
||||
|
||||
if (!frame_objects_.empty()) {
|
||||
// Remove any tracked objects associated with the frame.
|
||||
|
Loading…
x
Reference in New Issue
Block a user