New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 869193 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Jul 31
Cc:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Navigation requests should be deleted when a renderer dies or is killed

Project Member Reported by lukasza@chromium.org, Jul 30

Issue description

Hypothetical unbounded memory leak:
- Start a navigation that results in a kill during DidCommitProvisionalLoad
- During the kill a NavigationRequest will be retained inside RenderFrameHostImpl::navigation_requests_
- Repeat

This was caught as a result of the discussion in https://chromium-review.googlesource.com/c/chromium/src/+/1089797/3/content/browser/frame_host/navigation_handle_impl.cc#980
 
A test that shows the problem + a fix is in a WIP CL @ https://crrev.com/c/1155828
Good catch! The fix looks good to me.
Project Member

Comment 3 by bugdroid1@chromium.org, Jul 31

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/9904bfa39dc6eee84836ee16420bc8ffc6e7c7ac

commit 9904bfa39dc6eee84836ee16420bc8ffc6e7c7ac
Author: Lukasz Anforowicz <lukasza@chromium.org>
Date: Tue Jul 31 22:19:55 2018

Delete NavigationRequest(s) in RenderFrameHostImpl::RenderProcessGone.

Bug:  869193 
Change-Id: I911ec71a13c432a0111bdd8ec9da0f5ab679d082
Reviewed-on: https://chromium-review.googlesource.com/1155828
Commit-Queue: Ɓukasz Anforowicz <lukasza@chromium.org>
Reviewed-by: Nasko Oskov <nasko@chromium.org>
Cr-Commit-Position: refs/heads/master@{#579596}
[modify] https://crrev.com/9904bfa39dc6eee84836ee16420bc8ffc6e7c7ac/content/browser/frame_host/render_frame_host_impl.cc
[modify] https://crrev.com/9904bfa39dc6eee84836ee16420bc8ffc6e7c7ac/content/browser/security_exploit_browsertest.cc

Status: Fixed (was: Started)

Sign in to add a comment