Closed
Bug 831874
Opened 13 years ago
Closed 13 years ago
[B2G][Gallery] Able to bring up Share options for a photo that has been deleted already.
Categories
(Firefox OS Graveyard :: Gaia::Gallery, defect)
Tracking
(blocking-b2g:leo+, b2g18 fixed)
People
(Reporter: croesch, Assigned: gasolin)
References
()
Details
Attachments
(5 files)
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0
Build ID: 20130104151925
Steps to reproduce:
1. Launch Unagi build 20130117070201 Version 18.0
2. Take a photo.
3. Go to gallery
4. Tap on your photo
5. Notice the Share button is right next the delete button.
6. Tap the delete button to bring up the delete confirmation dialog.
7. Quickly double tap the very left side of the OK button above where the Share button was located on the previous screen.
8. Notice that the photo will get deleted but because you double tapped, the share button will have been activated.
9. You now have share options for a photo that has been deleted.
Repro 5/5 on multiple devices. You must follow these exact steps or you may not get the bug described.
Actual results:
Double tapping on the left side of the OK button to delete a photo allows the user to bring up share options for a photo that no longer exists.
Expected results:
Even double tapping on OK when deleting a photo should have a buffer so the photo can be deleted and nothing else can take place such as tapping on other buttons.
| Reporter | ||
Updated•13 years ago
|
OS: All → Gonk (Firefox OS)
Hardware: All → ARM
| Reporter | ||
Comment 1•13 years ago
|
||
| Reporter | ||
Comment 2•13 years ago
|
||
Unagi Build 20130225070200
Gecko http://hg.mozilla.org/releases/mozilla-b2g18_v1_0_1/rev/3a5a27992a75
Gaia 5691a16fff8e1403c75ed9d6f3a443b7e58198c6
Kernal Dec 5th
In this build, the behavior changes just a bit. The user can still bring up options for a deleted photo but the photo is no longer seen but instead, the user can manipulate options for a black image.
If I follow the steps, I can set a black screen as a wallpaper which is basically just the deleted photo.
However a real problem occurs if trying to send the deleted photo via Bluetooth. You will be asked if you want to send the photo but the process seems to hang after the attempt to send. A black screen will appear with no other indications of the state of the transfer.
Steps
1. Pair the test device with another device via bluetooth.
2. Launch Gallery
3. Tap on a photo to zoom in on the photo and see various options for the photo.
4. Tap the delete button to bring up the confirmation message.
5. Double tap on the OK button right where the Share button would normally be.
6. This will bring up the Share menu.
7. Tap on Bluetooth Transfer.
8. Confirm the transfer to the second device.
9. Notice that the screen is now completely black with no indication of the state of the transfer.
10. Notice the transfer never occurs.
Comment 3•13 years ago
|
||
event leaking from apps into system ui, and other bad stuff. blocking for investigation.
blocking-b2g: leo? → leo+
| Assignee | ||
Updated•13 years ago
|
Assignee: nobody → gasolin
| Assignee | ||
Comment 4•13 years ago
|
||
To avoid the miss operations (share/delete just-deleted item) that while file is deleting, I would let Share button and delete button disabled a certain time, and enable those button again.
| Assignee | ||
Comment 5•13 years ago
|
||
Attachment #723366 -
Flags: review?(dflanagan)
Comment 6•13 years ago
|
||
Comment on attachment 723366 [details]
Disabled Share button and delete button a certain time while file is deleting.
Fred, djf is busy so I stolen this review from him.
I think use window.setTimeout() cannot guarantee the deleted image is gone and ready to show next/previous image, so it will be better to re-enable the share button after we show a image that does exist, like we discussed in offline.
I will cancel the review request first and you can re-assign to the reviewers or me again aftere you update your patch, thanks.
Attachment #723366 -
Flags: review?(dflanagan)
| Assignee | ||
Comment 7•13 years ago
|
||
Thanks Dominic, I found there's an existing approach to deal with edit button in showFile. So I changed the pull request to use the same approach.
Attachment #724777 -
Flags: review?(dkuo)
Comment 8•13 years ago
|
||
Comment on attachment 724777 [details]
disable delete and share button in deleteFile, and bring them back in showFile
looks good, r+.
And please remeber to squash your commits into one, also I have noticed the travis build failed on your commits, so you might also need to rebase your branch to the latest gaia master, let's wait for the travis pass and we should be good to land this, thanks.
Attachment #724777 -
Flags: review?(dkuo) → review+
| Assignee | ||
Comment 9•13 years ago
|
||
Squashed and pass the travis build.
merged to master-gaia
https://github.com/mozilla-b2g/gaia/commit/f1be6cca93a6a441c41ae07a80ab31e746d60b97
Thanks!
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Comment 10•13 years ago
|
||
Uplifted commit f1be6cca93a6a441c41ae07a80ab31e746d60b97 as:
v1-train: f91a6529a17e0704362eaed5198051d54044ab16
status-b2g18:
--- → fixed
| Reporter | ||
Comment 11•13 years ago
|
||
Unagi Build ID: 20130319070203
Kernel Date: Dec 5
Gecko: http://hg.mozilla.org/releases/mozilla-b2g18/rev/406b86b4b515
Gaia: c5a8b6476f0dbc456061227a7801e56634683eb0
Update Channel: Nightly
I am no unable to get the share button to appear if I quickly double tap the delete button when deleting a photo. Marking as Worksforme.
Resolution: FIXED → WORKSFORME
| Reporter | ||
Comment 12•13 years ago
|
||
Unagi Build ID: 20130328070202
Kernel Date: Dec 5
Gecko http://hg.mozilla.org/releases/mozilla-b2g18_v1_0_1/rev/c516d7e67150
Gaia d40dcdd112f12e2a5a0d1de46451670918fd4369
Update Channel: Nightly
I want to clarify that I found the fix worked for V1. However the bug still exists in V1.0.1. because it has not reached v1.0.1 train yet. I'm attaching a new screenshot based on todays build and a new screen another tester has seen. Using the same test steps.
Comment 14•13 years ago
|
||
This is the behavour we saw today See attachment Pic.
Regular behavor as described in a bug can be seen in this video: http://youtu.be/08_FDCTwG4s
Updated•12 years ago
|
Flags: in-moztrap?
Comment 15•12 years ago
|
||
UCID: gallery-024
Test Case has been updated
Flags: in-moztrap? → in-moztrap+
You need to log in
before you can comment on or make changes to this bug.
Description
•