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

Issue 1521553004: Fix three crashes in the recent tabs dialog. (Closed)

Created:
5 years ago by newt (away)
Modified:
5 years ago
Reviewers:
Ted C
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -0 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/ntp/DocumentRecentTabsManager.java View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ntp/RecentTabsManager.java View 4 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (5 generated)
newt (away)
I'll see your NPE fix, and raise you several more ;) PTAL
5 years ago (2015-12-11 22:23:55 UTC) #2
Ted C
lgtm :-)
5 years ago (2015-12-12 00:16:41 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1521553004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1521553004/1
5 years ago (2015-12-12 00:27:36 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) android_clang_dbg_recipe on ...
5 years ago (2015-12-12 02:38:23 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1521553004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1521553004/1
5 years ago (2015-12-14 19:05:20 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years ago (2015-12-14 19:48:27 UTC) #10
commit-bot: I haz the power
5 years ago (2015-12-14 19:49:04 UTC) #12
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/7f87dbd5a96f0e29039285544428b5298cb22aa2
Cr-Commit-Position: refs/heads/master@{#365075}

Powered by Google App Engine
This is Rietveld 408576698