Descriptioncustomtabs: 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 #
Messages
Total messages: 13 (5 generated)
|