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

Issue 653883003: [Android] Properly guard selection updates in RWHVAndroid (Closed)

Created:
6 years, 2 months ago by jdduke (slow)
Modified:
6 years, 2 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, nona+watch_chromium.org, penghuang+watch_chromium.org, James Su, yukishiino+watch_chromium.org, yusukes+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[Android] Properly guard selection updates in RWHVAndroid One external invariant of RWHVAndroid is that if it has a valid attached ContentViewCore, its TouchSelectionController will be non-null. However, there are no guarantees that these lifetimes hold for methods *internal* to RWHVAndroid. One such violation came when the frame had a non-zero lock count when the attached ContentViewCore was changed; releasing the surface lock caused a frame metadata update, in turn accessing the TouchSelectionController that had already been reset. As a workaround, guard against this and possible future violations by always checking the controller for validity before using it. BUG=419619 Committed: https://crrev.com/a9ee8a34791e66dc77341b69220868c5f90b3f50 Cr-Commit-Position: refs/heads/master@{#299792}

Patch Set 1 #

Patch Set 2 : Proper ordering #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -3 lines) Patch
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 1 chunk +4 lines, -3 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
jdduke (slow)
aelias@: PTAL, thanks. There's a fix which changes the order of the selection_controller_.reset(); ReleaseLocksOnSurface(); calls ...
6 years, 2 months ago (2014-10-15 22:04:53 UTC) #2
aelias_OOO_until_Jul13
lgtm
6 years, 2 months ago (2014-10-15 22:09:24 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/653883003/20001
6 years, 2 months ago (2014-10-15 22:12:04 UTC) #5
commit-bot: I haz the power
Committed patchset #2 (id:20001)
6 years, 2 months ago (2014-10-16 00:31:16 UTC) #6
commit-bot: I haz the power
6 years, 2 months ago (2014-10-16 00:31:52 UTC) #7
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/a9ee8a34791e66dc77341b69220868c5f90b3f50
Cr-Commit-Position: refs/heads/master@{#299792}

Powered by Google App Engine
This is Rietveld 408576698