Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Issue 1005893002: Detect and clean up discarded mojo connections to deleted RenderFrames. (Closed)

Created:
5 years, 9 months ago by Sam McNally
Modified:
5 years, 9 months ago
Reviewers:
Avi (use Gerrit)
CC:
chromium-reviews, mkwst+moarreviews-renderer_chromium.org, darin-cc_chromium.org, jam, mlamouri+watch-content_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Detect and clean up discarded mojo connections to deleted RenderFrames. Currently, if a RenderFrame is deleted before the ExchangeServiceProviders message is received in the renderer, the message pipe handles contained in that message are retained, waiting for a RenderFrame that has already been deleted. This changes RenderThreadImpl::PendingRenderFrameConnect to detect when the browser closes its handles to those message pipes and clean itself up when that occurs. BUG=457722 Committed: https://crrev.com/00150c1b3233c1d634deec284906653a4b7a2a92 Cr-Commit-Position: refs/heads/master@{#320690}

Patch Set 1 #

Total comments: 2

Patch Set 2 : DCHECK_EQ(1u, erased) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -11 lines) Patch
M content/renderer/render_thread_impl.h View 1 chunk +17 lines, -5 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 3 chunks +19 lines, -6 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
Sam McNally
5 years, 9 months ago (2015-03-13 08:03:27 UTC) #2
Avi (use Gerrit)
lgtm with nit https://codereview.chromium.org/1005893002/diff/1/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/1005893002/diff/1/content/renderer/render_thread_impl.cc#newcode1812 content/renderer/render_thread_impl.cc:1812: DCHECK_EQ(erased, 1u); Put the expected value ...
5 years, 9 months ago (2015-03-13 13:54:08 UTC) #3
Sam McNally
https://codereview.chromium.org/1005893002/diff/1/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/1005893002/diff/1/content/renderer/render_thread_impl.cc#newcode1812 content/renderer/render_thread_impl.cc:1812: DCHECK_EQ(erased, 1u); On 2015/03/13 13:54:07, Avi wrote: > Put ...
5 years, 9 months ago (2015-03-15 22:28:19 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1005893002/20001
5 years, 9 months ago (2015-03-15 22:28:59 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 9 months ago (2015-03-15 23:26:01 UTC) #8
commit-bot: I haz the power
5 years, 9 months ago (2015-03-15 23:26:54 UTC) #9
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/00150c1b3233c1d634deec284906653a4b7a2a92
Cr-Commit-Position: refs/heads/master@{#320690}

Powered by Google App Engine
This is Rietveld 408576698