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

Issue 615280 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Jun 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug



Sign in to add a comment

[Android] Cancel button on download dangerous file infobar can crash sometimes

Reported by mcda...@amazon.com, May 27 2016

Issue description

Chrome Version       : latest from master
Steps to reproduce the problem:
1. Open a 'dangerous' link (a .apk file, for example) in a new tab, whether through the link
automatically opening in a new tab, or through context menu "Open in new tab"
2. Press cancel in the infobar that appears. Cancelling must cause the new tab to be closed.

What is the expected behavior?

The tab closes, the download is cancelled, the browser continues behaving as normal

What went wrong?

The browser crashes sometimes (< 50%)
 
Labels: OS-Android
Project Member

Comment 3 by bugdroid1@chromium.org, Jun 1 2016

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

commit 0861c56c582da4866a84104dc5764a8adad84dd6
Author: mcdavid <mcdavid@amazon.com>
Date: Wed Jun 01 01:36:15 2016

[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

Review-Url: https://codereview.chromium.org/2019533002
Cr-Commit-Position: refs/heads/master@{#397017}

[modify] https://crrev.com/0861c56c582da4866a84104dc5764a8adad84dd6/chrome/android/java/src/org/chromium/chrome/browser/download/ChromeDownloadDelegate.java
[modify] https://crrev.com/0861c56c582da4866a84104dc5764a8adad84dd6/chrome/android/java/src/org/chromium/chrome/browser/infobar/SimpleConfirmInfoBarBuilder.java
[modify] https://crrev.com/0861c56c582da4866a84104dc5764a8adad84dd6/chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadTest.java
[modify] https://crrev.com/0861c56c582da4866a84104dc5764a8adad84dd6/chrome/android/javatests/src/org/chromium/chrome/browser/infobar/InfoBarContainerTest.java
[modify] https://crrev.com/0861c56c582da4866a84104dc5764a8adad84dd6/chrome/browser/ui/android/infobars/simple_confirm_infobar_builder.cc
[modify] https://crrev.com/0861c56c582da4866a84104dc5764a8adad84dd6/chrome/test/android/javatests/src/org/chromium/chrome/test/util/InfoBarUtil.java

Cc: ian...@chromium.org qin...@chromium.org
Components: UI>Browser>Downloads
Labels: Needs-Feedback
Is this issue fixed?
Cc: -ian...@chromium.org -qin...@chromium.org dfalcant...@chromium.org
Owner: qin...@chromium.org
Status: Assigned (was: Unconfirmed)
Looks not super related to my work. Re-assign to reviewers of the CL instead.
Cc: -dfalcant...@chromium.org qin...@chromium.org
Owner: dfalcant...@chromium.org
Status: Fixed (was: Assigned)
Likely to have been fixed by mcdavid's patch.  Marking fixed.

Sign in to add a comment