| Index: content/browser/renderer_host/render_view_host_impl.cc
|
| diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc
|
| index 243b0a2c0c65d243c6029214cd2c09f7f4824b1f..faef12a1c264775fd88778fd9e68805f4dc25f00 100644
|
| --- a/content/browser/renderer_host/render_view_host_impl.cc
|
| +++ b/content/browser/renderer_host/render_view_host_impl.cc
|
| @@ -1190,7 +1190,9 @@ void RenderViewHostImpl::OnRenderProcessGone(int status, int exit_code) {
|
| render_view_termination_status_ =
|
| static_cast<base::TerminationStatus>(status);
|
|
|
| - // Reset frame tree state associated with this process.
|
| + // Reset frame tree state associated with this process. This must happen
|
| + // before RenderViewTerminated because observers expect the subframes of any
|
| + // affected frames to be cleared first.
|
| delegate_->GetFrameTree()->RenderProcessGone(this);
|
|
|
| // Our base class RenderWidgetHost needs to reset some stuff.
|
|
|