Closed Bug 1029548 Opened 10 years ago Closed 10 years ago

Add a toast notification for adding search engines from long tap

Categories

(Firefox for Android Graveyard :: General, defect)

All
Android
defect
Not set
normal

Tracking

(firefox31 affected, firefox32 affected, firefox33 affected)

VERIFIED FIXED
Firefox 34
Tracking Status
firefox31 --- affected
firefox32 --- affected
firefox33 --- affected

People

(Reporter: ioana.chiorean, Assigned: amoghbl1, Mentored)

Details

(Whiteboard: [lang=js])

Attachments

(2 files, 1 obsolete file)

OS: Android 4.4.4 and 4.1.2
Devices: Alcatel One Touch, Nexus 4

Steps:
1. Go to bugzilla.mozilla.org
2. Tap Menu -> Page -> Add a Search Engine
3. Go back to the page bugzilla.mozilla.org
4. Long tap the search field - add search engine

Expected Result:
- for both actions a toast notification is displayed letting you know the a search engine is added

Actual Result: 
- for the addition from long tap on search field there is not toast notification added.
The former is shown in the addOpenSearchEngine success callback 
http://mxr.mozilla.org/mozilla-central/source/mobile/android/chrome/content/browser.js#6966 maybe similarly could be added or refactored for addEngine() in general
Mentor: margaret.leibovic
Whiteboard: [lang=js]
Attached patch fix_1029548.patch (obsolete) — Splinter Review
Patch to fix display of toast, it does so on adding the engine to list of saved search engines.
Attachment #8458386 - Flags: review?(rnewman)
Attachment #8458386 - Flags: review?(nalexander)
Attachment #8458386 - Flags: review?(mark.finkle)
Comment on attachment 8458386 [details] [diff] [review]
fix_1029548.patch

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

The patch looks good, but in the interests of saving time in the future, you should read this:

  https://developer.mozilla.org/docs/Mercurial_FAQ#How_can_I_generate_a_patch_for_somebody_else_to_check-in_for_me.3F

In particular, this patch has four lines of context rather than 8, so this should be in ~/.hgrc:

[diff]
git = 1
unified = 8
showfunc = true


You also need to make sure the patch has a description. Something like:

  hg qref -m "Bug 1029548 - Add a toast notification for adding search engines from long tap. r=rnewman"

will do this.

The rest of that section of the wiki will explain how to set your name in the patch, too.

When that's done we can mark this as reviewed and checkin-needed, and it'll get added to Firefox!
Attachment #8458386 - Flags: review?(rnewman)
Attachment #8458386 - Flags: review?(nalexander)
Attachment #8458386 - Flags: review?(mark.finkle)
Attachment #8458386 - Flags: feedback+
Updated the patch as per your suggestions :rnewman.
Attachment #8458386 - Attachment is obsolete: true
Attachment #8458576 - Flags: review?(rnewman)
Attachment #8458576 - Flags: review?(rnewman) → review+
Assignee: nobody → amoghbl1
Status: NEW → ASSIGNED
Keywords: checkin-needed
Hardware: ARM → All
https://hg.mozilla.org/integration/fx-team/rev/0f4ca87b15f8
Keywords: checkin-needed
Whiteboard: [lang=js] → [lang=js][fixed-in-fx-team]
https://hg.mozilla.org/mozilla-central/rev/0f4ca87b15f8
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [lang=js][fixed-in-fx-team] → [lang=js]
Target Milestone: --- → Firefox 34
When adding a search engine from long tap, a toast notification is displayed:" 'X' has been added as a search engine", so:
Verified as fixed on:
Device: Samsung Galaxy Tab (Android 4.2)
Builds:37 Nightly and 36 Aurora(2014-12-09), 35 beta 1 and 34 Release
Status: RESOLVED → VERIFIED
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

Creator:
Created:
Updated:
Size: