summaryrefslogtreecommitdiffstats
path: root/chromium/content/browser/frame_host/render_frame_host_impl.cc
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2019-11-18 12:57:27 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2019-11-18 12:18:42 +0000
commit77c86be6077d3eee53d4b84ba5a2ff3b546e8324 (patch)
tree1a57e394567635c0a63fd25e8d39c5339ab5adc7 /chromium/content/browser/frame_host/render_frame_host_impl.cc
parentbac1035f131c0b95b75fb39ffd1a39652843de9f (diff)
BASELINE: Update Chromium to 77.0.3865.129
Change-Id: Ie569f0076f8854e83485a9beee9a3eb2f50d3362 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'chromium/content/browser/frame_host/render_frame_host_impl.cc')
-rw-r--r--chromium/content/browser/frame_host/render_frame_host_impl.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/chromium/content/browser/frame_host/render_frame_host_impl.cc b/chromium/content/browser/frame_host/render_frame_host_impl.cc
index a6d5d13fe80..f9b3a9a12b6 100644
--- a/chromium/content/browser/frame_host/render_frame_host_impl.cc
+++ b/chromium/content/browser/frame_host/render_frame_host_impl.cc
@@ -1082,6 +1082,13 @@ RenderFrameHostImpl::~RenderFrameHostImpl() {
if (owned_render_widget_host_)
owned_render_widget_host_->ShutdownAndDestroyWidget(false);
+ // TODO(https://crbug.com/1005077): There is no known reason for removing the
+ // RenderViewHostImpl here instead of automatically at the end of the
+ // destructor. In practise, not doing it here will prevent android WebView to
+ // display a new page after a long sequence of WebView creation / deletion.
+ // The real reason why this is needed needs to be investigated.
+ render_view_host_.reset();
+
// If another frame is waiting for a beforeunload ACK from this frame,
// simulate it now.
RenderFrameHostImpl* beforeunload_initiator = GetBeforeUnloadInitiator();