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

Issue 822515 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Closed: Mar 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: iOS
Pri: 2
Type: Bug
Q1



Sign in to add a comment

Fix tab grid crash when closing last incognito tab

Project Member Reported by edchin@chromium.org, Mar 16 2018

Issue description

Fix tab grid crash when closing last incognito tab.

I would like to fix this sooner than later, but won't sacrifice the promised Q1 deliverables. Marked as medium, and may later downgrade to small.
 

Comment 1 by edchin@chromium.org, Mar 22 2018

Status: Started (was: Assigned)
From discussion on hangouts, I suspect this is happening because TabGrid has a strong reference to TabModel. When the last incognito Tab is closed, the incognito BrowserState is destroyed, and TabModel -browserStateDestroyed is invoked. From that point, the TabModel should not be accessed. BVW should be dropping its reference at this point and expect that it will eventually be deallocated.

So either TabGrid should have a __weak reference to TabModel or should not have a reference at all, but instead get the TabModel from BVW (directly or indirectly).

Comment 3 by edchin@chromium.org, Mar 23 2018

CL is in-flight. 

Comment 4 by edchin@chromium.org, Mar 23 2018

Status: Fixed (was: Started)
Status: Verified (was: Fixed)
Issue verified 
Version: Chrome Canary  67.0.3382.0
Device: iPhone 6 Plus
iOS: 11.2.6

There is no tab grid crash when closing last incognito tab. Not sure whether this is part of Proj-UIRefresh therefore tested with and without flag. No crash observed.
https://drive.google.com/open?id=12rP3-fEtl8zWmxQl1x6fSujkpqYE_a07
Labels: Proj-UIRefresh

Sign in to add a comment