New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 731940 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Jul 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 1
Type: ----



Sign in to add a comment

Wait to destroy BottomSheetContent until sheet content transition is finished

Project Member Reported by twelling...@chromium.org, Jun 9 2017

Issue description

Currently we destroy BottomSheetContent objects as soon as the sheet is closed. We should wait until the sheet content transitions are finished to avoid destroying something that is technically still in use.

In issue 731093 I worked around a symptom of this. I suspect that reverting the  (very small) changes in https://chromium-review.googlesource.com/530090 and changing the destruction policy would also have fixed the crash in that bug.
 
Owner: danielpark@chromium.org
Status: Assigned (was: Available)
For this one, BottomSheetContentController current destroys the content as soon as the sheet is closed, but we should really be waiting for #onSheetContentChanged().
Labels: -Pri-2 M-61 Pri-1
Status: Started (was: Assigned)
Project Member

Comment 4 by bugdroid1@chromium.org, Jul 11 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/a4f70af6616619e994d16b67f4fae8cc4ea2f155

commit a4f70af6616619e994d16b67f4fae8cc4ea2f155
Author: danielpark@chromium.org <danielpark@chromium.org>
Date: Tue Jul 11 22:31:20 2017

Deleting BottomSheetContent at a later time

Changed timing of BottomSheetContent destruction to occur when the
contents are no longer in use i.e. the bottom sheet is set to home
and is closed or after the sheet is closed and the content switch from
bookmarks, history, or downloads to home has happened.

Bug:  731940 
Change-Id: I791574b80efaffece8403fe9b119f27292a078f5
Reviewed-on: https://chromium-review.googlesource.com/566059
Reviewed-by: Theresa <twellington@chromium.org>
Commit-Queue: Daniel Park <danielpark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#485700}
[modify] https://crrev.com/a4f70af6616619e994d16b67f4fae8cc4ea2f155/chrome/android/java/src/org/chromium/chrome/browser/widget/bottomsheet/BottomSheetContentController.java

Status: Fixed (was: Started)

Sign in to add a comment