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 8198f2d145471b40052ef1171e54f17b62d835ed..fd8f86f8449540f75cc6594193f56478257d288a 100644 |
--- a/content/browser/renderer_host/render_view_host_impl.cc |
+++ b/content/browser/renderer_host/render_view_host_impl.cc |
@@ -1039,6 +1039,15 @@ void RenderViewHostImpl::Shutdown() { |
run_modal_opener_id_ = MSG_ROUTING_NONE; |
} |
+ // We can't release the SessionStorageNamespace until our peer |
+ // in the renderer has wound down. |
+ if (GetProcess()->HasConnection()) { |
+ RenderProcessHostImpl::ReleaseOnCloseACK( |
+ GetProcess(), |
+ delegate_->GetSessionStorageNamespaceMap(), |
+ GetRoutingID()); |
+ } |
+ |
RenderWidgetHostImpl::Shutdown(); |
} |