Chromium Code Reviews
DescriptionFix three crashes in the recent tabs dialog.
This fixes a crash in the recent tabs dialog when clicking on a recently
closed tab and clicking the dialog's "X" button almost simultaneously.
The crash happened because when "X" is clicked, the dialog would be
dismissed and the RecentTabsPage would be destroyed. Soon thereafter,
the click on the recently closed item would be processed and it would
try to use the RecentTabsPage object.
This CL fixes the crash by tracking whether the RecentTabsManager has
been destroyed and ignoring clicks that happen after destroy has been
called. This also fixes an identical crash with clicking a foreign
session tab, and a related (but rarer) crash where sync or sign-in
related events were being processed after the RecentTabsManager was
destroyed.
BUG=567891
Committed: https://crrev.com/7f87dbd5a96f0e29039285544428b5298cb22aa2
Cr-Commit-Position: refs/heads/master@{#365075}
Patch Set 1 #
Messages
Total messages: 12 (5 generated)
|
||||||||||||||||||||||||||||