CCTs that open to download links should not be blank screens |
|||||
Issue descriptionApplication Version (from "Chrome Settings > About Chrome"): 61.0.3142.0 Android Build Number (from "Android Settings > About Phone/Tablet"): NHG470 Device: Pixel Steps to reproduce: - Start in an app other than Chrome (e.g., Google Inbox) - Tap on a link in the app: http://lh-menu.de/download/2017--07-08/C/491 Observed behavior: - A CCT opens with a blank screen, and a PDF file downloads in the background Expected behavior: A few problems here. First, it is not at all clear that the link I followed was triggering the download of a PDF file. I am only aware of this because I know the typical behavior of Chrome in this instance, however, a new user may be fairly confused about what's going on. I could also imagine a user on a slow network (where the download might take multiple seconds to start happening) being really confused about whether anything is happening when this screen is presented. Second, showing a blank screen with no forward action or other indication of what is happening is a fairly poor user experience. For example, I think the screen should show at least a "download" icon and perhaps have a button to take you directly to the file (once it's downloaded). It might also make sense to link to the Chrome downloads home UI. Third, once the download completes, the file does not open immediately. Perhaps this is a separate bug, but I have to know to go to the Android notification bar and tap on the notification to see the downloaded file.
,
Jul 20 2017
Yeah even if we have a notification and/or toast, showing a blank page seems like a pretty bad user experience. It isn't clear what the user is supposed to do. +shaktisahu@ for any dev work that pops up. E.g. do we want to automatically open the download here? That's a better experience than the current flow, but if we show a actionable UI instead of a blank page it might not be necessary. +yusufo@ for FYI since he owns CCT. Jon do you think we could show some more relevant UI here instead of just a blank page? Maybe if we can't think of anything else, we can bump them to Download Home where they can see the download progressing. IIUC we aren't rendering any page content here anyway because the initial CCT WebContents navigation was stolen for a download.
,
Jul 20 2017
The min bar intended behavior is that the user should see the downloading snackbar and the downloading notification. *If* we can reliably detect the case where the CCT is blank, then we have three options: -Showing the downloads home so the user can track the download and open the file once it is done -Keeping a blank page, but opening the PDF using the default intent handler when the file has successfully downloaded -Returning to the original context/app the spawned the CCT (this is similar to how a normal download would behave on a page. All of these would be better than what we are doing today, but which one is best will take a bit more analysis. Can we go ahead and fix the snackbar/notification problem now and put the second part on my backlog?
,
Jul 20 2017
Sure. Reassigning to shaktisahu@. Marking as M-61 for now.
,
Jul 25 2017
Actually, I am seeing the download snackbar here in 62.0.3164.0 Attached video. However the page stays until I press back arrow to dismiss.
,
Jul 26 2017
Ok so our existing flow seems to work. It's sad that we hide the snackbar after a timeout and have no way to do anything with the CCT once the download is done. We should make this better IMO. Even if the behavior is currently expected it doesn't feel like a good experience.
,
Jul 26 2017
Before moving on, I think we should diagnose why mdw@ isn't seeing the download notification and snackbar. Matt, were you on a particularly slow network? Sometimes it takes significant time for the download to start.
,
Jul 26 2017
Or as an alternative reason, the snackbar dismisses after a certain period of time (5-10 seconds?). Do you think maybe you missed seeing it?
,
Jul 27 2017
I was using M61, not M62. However, even the flow shown in #5 is suboptimal in my opinion - you're stuck looking at a blank page for the duration of the download, and see a blank page after the download is complete (and the snackbar disappears).
,
Jul 28 2017
Agreed it is suboptimal. However, I wanted to first assess whether there was a regression that we needed to fix ASAP. If you are seeing the notification and snackbar then we can change the priority and milestone of this.
,
Jul 28 2017
Also, I noticed if you have very old versions of chrome installed on the device, that might cause the issue that mdw@ experienced. I also had a M55 on my device where I saw no snackbar at all. Once I disabled that version, I was able to see the snackbar.
,
Jul 28 2017
:( can't fix 55, but +qinmin@ in case he has any idea when the snackbar logic was added. |
|||||
►
Sign in to add a comment |
|||||
Comment 1 by dah...@chromium.org
, Jul 20 2017