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

Issue 2019533002: [Android] Fix crash when closing tab during infobar cancellation (Closed)

Created:
4 years, 7 months ago by mcdavid
Modified:
4 years, 6 months ago
Reviewers:
qinmin, gone
CC:
chromium-reviews, asanka, dfalcantara+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Android] Fix crash when closing tab during infobar cancellation Cancelling the 'dangerous file' dialog could cause the current tab to be closed, triggering the infobar to be deleted. The now deleted infobar would then try to close itself after cancellation, causing a crash. Also reworks InfoBarUtil to click infobar buttons directly rather than through tap events, reducing flakiness. BUG=615280 TEST=DownloadTest,GeolocationTest,InfoBarTest,InfoBarContainerTest Committed: https://crrev.com/0861c56c582da4866a84104dc5764a8adad84dd6 Cr-Commit-Position: refs/heads/master@{#397017}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Addressed dfalcantara's comments #

Patch Set 3 : Fix test on mobile #

Messages

Total messages: 19 (8 generated)
mcdavid
The api in confirm_infobar_delegate.h already requires to return false if the infobar was closed, but ...
4 years, 7 months ago (2016-05-27 01:13:36 UTC) #3
gone
The DangerousDownloadInfoBar should really have been written as a real infobar backed by a native-side ...
4 years, 7 months ago (2016-05-27 01:43:03 UTC) #4
mcdavid
On 2016/05/27 01:43:03, dfalcantara wrote: > https://codereview.chromium.org/2019533002/diff/1/chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadTest.java > File > chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadTest.java > (right): > > ...
4 years, 7 months ago (2016-05-27 02:06:03 UTC) #5
gone
On 2016/05/27 02:06:03, mcdavid wrote: > On 2016/05/27 01:43:03, dfalcantara wrote: > > > https://codereview.chromium.org/2019533002/diff/1/chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadTest.java ...
4 years, 6 months ago (2016-05-27 16:46:04 UTC) #6
mcdavid
On 2016/05/27 01:43:03, dfalcantara wrote: > https://codereview.chromium.org/2019533002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/infobar/SimpleConfirmInfoBarBuilder.java > File > chrome/android/java/src/org/chromium/chrome/browser/infobar/SimpleConfirmInfoBarBuilder.java > (right): > > ...
4 years, 6 months ago (2016-05-27 21:49:13 UTC) #7
gone
lgtm
4 years, 6 months ago (2016-05-31 18:12:45 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2019533002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2019533002/20001
4 years, 6 months ago (2016-05-31 18:53:55 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/79201)
4 years, 6 months ago (2016-05-31 22:16:13 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2019533002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2019533002/40001
4 years, 6 months ago (2016-05-31 23:38:19 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 6 months ago (2016-06-01 01:36:27 UTC) #17
commit-bot: I haz the power
4 years, 6 months ago (2016-06-01 01:37:57 UTC) #19
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/0861c56c582da4866a84104dc5764a8adad84dd6
Cr-Commit-Position: refs/heads/master@{#397017}

Powered by Google App Engine
This is Rietveld 408576698