Closed Bug 1254983 Opened 8 years ago Closed 8 years ago

Replace toast notification with snackbar when choosing to copy password from doorhanger

Categories

(Firefox for Android Graveyard :: General, defect)

ARM
Android
defect
Not set
normal

Tracking

(firefox48 verified)

RESOLVED FIXED
Firefox 48
Tracking Status
firefox48 --- verified

People

(Reporter: TeoVermesan, Assigned: malayaleecoder, Mentored)

References

Details

(Whiteboard: [lang=java][good next bug])

Attachments

(1 file, 2 obsolete files)

Steps to reproduce:
1. Go to facebook.com and login with: username:test and password:mozilla
2. Remember the login
3. Open facebook.com in a new tab
4. Tap the green lock from the URL Bar
5. Choose "Copy" from "Copy password from test?" doorhanger

Actual results:
- "Password copied to clipboard" toast notification is displayed

Expected results:
- A snackbar should be displayed
Blocks: 1157526
Mentor: s.kaspari
Whiteboard: [lang=java][good next bug]
Sebastian, I am taking up this bug :)
Flags: needinfo?(s.kaspari)
Have fun! :)
Assignee: nobody → malayaleecoder
Status: NEW → ASSIGNED
Flags: needinfo?(s.kaspari)
Attached patch Bug1254983_v1.diff (obsolete) — Splinter Review
Sebastian, One issue you might see in this, I think, is the renaming of the strings in android_strings.dtd and strings.xml.in
Do tell me whether I should revert them back :)
Flags: needinfo?(s.kaspari)
Comment on attachment 8728625 [details] [diff] [review]
Bug1254983_v1.diff

Review of attachment 8728625 [details] [diff] [review]:
-----------------------------------------------------------------

Yeah, let's keep the strings as-is. This will avoid that the translators have to translate this again. We have several *toast* strings that used to be toasts but are snackbars now. :)
Attachment #8728625 - Flags: feedback+
Flags: needinfo?(s.kaspari)
Attached patch Bug1254983_v2.diff (obsolete) — Splinter Review
Have done the necessary changes. Please take a look :)
Attachment #8728625 - Attachment is obsolete: true
Flags: needinfo?(s.kaspari)
Attachment #8728956 - Flags: review?(s.kaspari)
Comment on attachment 8728956 [details] [diff] [review]
Bug1254983_v2.diff

The patch looks great. But I can't apply it to the current tip. Can you rebase your patch against the latest changes?

> TheSilence:fx-team sebastian$ hg import 'https://bug1254983.bmoattachments.org/attachment.cgi?id=8728956'
> applying https://bug1254983.bmoattachments.org/attachment.cgi?id=8728956
> patching file mobile/android/base/java/org/mozilla/gecko/toolbar/SiteIdentityPopup.java
> Hunk #1 FAILED at 5
> 1 out of 2 hunks FAILED -- saving rejects to file mobile/android/base/java/org/mozilla/gecko/toolbar/SiteIdentityPopup.java.rej
> abort: patch failed to apply


Btw. you only need to set "needinfo" or "review" (In this case "review"). One is enough. :)
Flags: needinfo?(s.kaspari)
Attachment #8728956 - Flags: review?(s.kaspari) → feedback+
Attached patch Bug1254983.diffSplinter Review
Sorry for both NI and review :P
Have a look.
Attachment #8728956 - Attachment is obsolete: true
Flags: needinfo?(s.kaspari)
Comment on attachment 8729504 [details] [diff] [review]
Bug1254983.diff

Review of attachment 8729504 [details] [diff] [review]:
-----------------------------------------------------------------

The patch looks good. Thank you!
Attachment #8729504 - Flags: review+
https://hg.mozilla.org/integration/fx-team/rev/89bb123e0697907b1658809032245bc422253df0
Bug 1254983 - Replace toast notification with snackbar when choosing to copy password from doorhanger. r=sebastian
Flags: needinfo?(s.kaspari)
https://hg.mozilla.org/mozilla-central/rev/89bb123e0697
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 48
"Password copied to clipboard" snackbar is displayed, so:
Verified as fixed using:
Device: One A2001 (Android 5.1.1)
Build: Firefox for Android 48.0a1 (2016-03-20)
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: