17 lines
878 B
Diff
17 lines
878 B
Diff
diff --git a/content/browser/frame_host/render_frame_proxy_host.cc b/content/browser/frame_host/render_frame_proxy_host.cc
|
|
index 838bc1e20c30..2aa16fbf19fc 100644
|
|
--- a/content/browser/frame_host/render_frame_proxy_host.cc
|
|
+++ b/content/browser/frame_host/render_frame_proxy_host.cc
|
|
@@ -260,6 +260,12 @@ void RenderFrameProxyHost::SetDestructionCallback(
|
|
|
|
void RenderFrameProxyHost::OnDetach() {
|
|
if (frame_tree_node_->render_manager()->ForInnerDelegate()) {
|
|
+ // Don't detach the frame for webview, we will manage the WebContents
|
|
+ // manually.
|
|
+ // We should revisit this bug after upgrading to newer versions of Chrome,
|
|
+ // this patch was introduced in Chrome 66.
|
|
+ return;
|
|
+
|
|
// Only main frame proxy can detach for inner WebContents.
|
|
DCHECK(frame_tree_node_->IsMainFrame());
|
|
frame_tree_node_->render_manager()->RemoveOuterDelegateFrame();
|