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

Issue 2158843003: customtabs: Don't crash when the death notificaton is sent to a random thread. (Closed)

Created:
4 years, 5 months ago by Benoit L
Modified:
4 years, 5 months ago
Reviewers:
Yusuf
CC:
chromium-reviews, lizeb+watch-custom-tabs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

customtabs: Don't crash when the death notificaton is sent to a random thread. When a Custom Tabs client dies, the Android framework sends a notification to an IBinder.DeathRecipient. This is relayed by CustomTabsSessionToken to CustomTabsConnection#cleanUpSession(). If this method is called from a different thread than the UI thread, then this triggers a native crash. Avoid that crash by making sure that mClientManger#cleanupSession() (and then CustomTabsConnection#cancelPrerender()) is called from the UI thread. Also add a non-regression test. BUG=623128 Committed: https://crrev.com/1fb838fe1139f442dc24eddb08aa3b3bb408c5d8 Cr-Commit-Position: refs/heads/master@{#407101}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -2 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java View 1 chunk +8 lines, -2 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabsConnectionTest.java View 1 chunk +24 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (5 generated)
Benoit L
4 years, 5 months ago (2016-07-18 15:27:23 UTC) #2
Benoit L
On 2016/07/18 15:27:23, Benoit L wrote: Turns out that this was an issue in the ...
4 years, 5 months ago (2016-07-21 13:04:49 UTC) #3
Yusuf
Good catch and thanks once again :) lgtm
4 years, 5 months ago (2016-07-21 17:28:22 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2158843003/1
4 years, 5 months ago (2016-07-21 19:25:32 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/99811)
4 years, 5 months ago (2016-07-21 19:40:27 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2158843003/1
4 years, 5 months ago (2016-07-22 08:18:32 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 5 months ago (2016-07-22 08:47:30 UTC) #11
commit-bot: I haz the power
4 years, 5 months ago (2016-07-22 08:48:57 UTC) #13
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/1fb838fe1139f442dc24eddb08aa3b3bb408c5d8
Cr-Commit-Position: refs/heads/master@{#407101}

Powered by Google App Engine
This is Rietveld 408576698