mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Don't reconnect after intentional browser frame detach (see issue #3260)
Send a FrameDetached message from CefFrameHostImpl::Detach before closing the RenderFrame connection to avoid an immediate reconnect attempt by the renderer. When BFCache is disabled the intentionally detached frame will never be reconnected. When BFCache is enabled the intentionally detached frame will be reconnected via CefFrameImpl::OnWasShown if/when it exits the cache.
This commit is contained in:
@@ -480,6 +480,10 @@ bool CefFrameHostImpl::Detach(DetachReason reason) {
|
||||
queued_renderer_actions_.pop();
|
||||
}
|
||||
|
||||
if (render_frame_.is_bound()) {
|
||||
render_frame_->FrameDetached();
|
||||
}
|
||||
|
||||
render_frame_.reset();
|
||||
render_frame_host_ = nullptr;
|
||||
|
||||
|
Reference in New Issue
Block a user