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

Issue 1642743002: Clear input event router entries for destroyed RWHVGuests (Closed)

Created:
4 years, 10 months ago by kenrb
Modified:
4 years, 10 months ago
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Clear input event router entries for destroyed RWHVGuests This is a speculative fix for crashes observed under the --isolate-extensions trial. A RenderWidgetHostViewGuest currently only clears its RenderWidgetHostInputEventRouter entry when the BrowserPlugin is detached. However, there are other paths for destruction that cause detachment, which might enable it to receive input events after DestroyGuestView() has been called, potentially leading to the observed null pointer crashes. This should be avoided by calling UnregisterSurfaceNamespaceId() before clearing the host_ pointer. BUG=571092 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/329450ec62f0c6d67a3f842feb17a516721f04d1 Cr-Commit-Position: refs/heads/master@{#371924}

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -0 lines) Patch
M content/browser/frame_host/render_widget_host_view_guest.cc View 1 chunk +1 line, -0 lines 1 comment Download

Messages

Total messages: 12 (6 generated)
kenrb
PTAL? - James for any thoughts on the change - Nick as a content owner
4 years, 10 months ago (2016-01-27 21:25:04 UTC) #4
wjmaclean
https://codereview.chromium.org/1642743002/diff/1/content/browser/frame_host/render_widget_host_view_guest.cc File content/browser/frame_host/render_widget_host_view_guest.cc (right): https://codereview.chromium.org/1642743002/diff/1/content/browser/frame_host/render_widget_host_view_guest.cc#newcode561 content/browser/frame_host/render_widget_host_view_guest.cc:561: UnregisterSurfaceNamespaceId(); So this eventually calls back to WebContentsImpl::GetInputEventRouter() which ...
4 years, 10 months ago (2016-01-27 21:39:28 UTC) #5
ncarter (slow)
rubber stamp lgtm
4 years, 10 months ago (2016-01-27 22:24:36 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1642743002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1642743002/1
4 years, 10 months ago (2016-01-27 22:33:36 UTC) #8
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 10 months ago (2016-01-28 00:19:46 UTC) #10
commit-bot: I haz the power
4 years, 10 months ago (2016-01-28 00:21:10 UTC) #12
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/329450ec62f0c6d67a3f842feb17a516721f04d1
Cr-Commit-Position: refs/heads/master@{#371924}

Powered by Google App Engine
This is Rietveld 408576698