FirefoxLite icon indicating copy to clipboard operation
FirefoxLite copied to clipboard

Deleting image from download page results in broken image

Open dakaizou opened this issue 9 years ago • 7 comments

STR:

  1. Download an image
  2. Push the menu button
  3. Push the Download button
  4. Push the more button
  5. Push Delete file
  6. Check the image

Build: 303 DuT: Samsung J7 Prime, mito, Redmi 4A

Build: 382 DuT: mito, Redmi 4A, Advan, Lenovo Vibe A, Sony Xperia Z3 Compact

dakaizou avatar Aug 14 '17 08:08 dakaizou

Can't reproduce

mTwTm avatar Aug 15 '17 10:08 mTwTm

Video reproducing on mito

dakaizou avatar Aug 16 '17 01:08 dakaizou

Looks like the behavior/design of the Mito Gallery App. I'm suspecting that is the can't-find-previously-available-file logic for the Gallery. @dakaizou can you help find if the file is still visible in the File Explorer App, and/or Download through other browser and check if the same behavior holds?

mTwTm avatar Aug 16 '17 01:08 mTwTm

mito

  • Zerda: removed file found in Gallery, not found in File Explorer
  • Chrome: removed file not found in Gallery, not found in File Explorer
  • UC: removed file found in Gallery, not found in File Explorer

Redmi 4A

  • Zerda: removed file not found in Gallery, not found in Explorer
  • Chrome: removed file not found in Gallery, not found in Explorer
  • UC: removed file not found in Gallery, not found in Explorer

Advan, Lenovo Vibe A, Sony Xperia Z3 Compact

  • Zerda: removed file found in Gallery, not found in File Explorer/File Commander
  • Chrome: removed file not found in Gallery, not found in File Explorer/File Commander

dakaizou avatar Aug 16 '17 02:08 dakaizou

That would be enough! Thanks! From my experiences I'd say that Chrome is doing some further steps such as notifying the MediaDB that the file is deleted so that all Gallery Apps would be notified about the remove so this awkward situation does not happen.

One clarification: It is not that a corrupted file is found, rather, what's happening here is that a file is not found and the default broken picture is shown in these Gallery apps as their error handling. (Which IMO is less significant than if we left some garbage during deletion.)

Engineering comment: Not very difficult but requires some extra work. Will deal with this when this is listed as a P1 bug. Chrome is handling this gracefully, never thought that it is our duty as a browser to also notify the DB 😮

mTwTm avatar Aug 16 '17 03:08 mTwTm

Unassign myself for this is triaged as P2

mTwTm avatar Aug 30 '17 06:08 mTwTm

Work for me. Video: https://drive.google.com/open?id=1rSK5nIzhfT-sp7fidFQEyvZX7pGjqA77

Device: Advan i5C Rocket: 2.0.0(4129).nightly Android: 5.1 Android Webview: 51.0.2704.81

NashTung avatar May 10 '18 06:05 NashTung