Closed Bug 1335002 Opened 8 years ago Closed 8 years ago

A custom search engine can be saved multiple times

Categories

(Firefox for iOS :: General, defect, P3)

Other
iOS
defect

Tracking

()

VERIFIED FIXED
Tracking Status
fxios 7.0+ ---
fxios-v7.0 --- verified
fxios-v8.0 --- fixed

People

(Reporter: csuciu, Assigned: raymond.edwards+moz, Mentored)

References

Details

(Whiteboard: [MobileCore])

Attachments

(2 files)

55 bytes, text/x-github-pull-request
fluffyemily
: feedback+
Details | Review
55 bytes, text/x-github-pull-request
fluffyemily
: review+
Details | Review
master 51abcc7 1. Go to Firefox Settings => Search => Add Search Engine. 2. Type the Title and the URL of a custom search engine. 3. Press on the 'Save' button multiple times. 4. Check the Quick-Search Engines list Result: The custom search engine is added multiple times.
Mentor: fpatel
Priority: -- → P3
I'd like to contribute here. Working on a pull request now.
Assignee: nobody → raymond.edwards+moz
Attached file Pull request
Attachment #8843633 - Flags: review?(etoop)
Comment on attachment 8843633 [details] [review] Pull request Hi, thanks for the patch. It mostly looks good. Resolves the bug criteria well. One small thing I would like to be added to the code that ensures you cannot add the same engine twice at different times. The current code doesn't strip trailing and leading whitespace from either the template or name vars, which means you can still add the same search engine more than once if you add padding. Please can you strip the whitespace before the equality comparison for name and template strings? Thanks again for the patch.
Attachment #8843633 - Flags: review?(etoop) → feedback+
Attached file Pull request
Good catch. Whitespace is now trimmed before saving.
Attachment #8844302 - Flags: review?(etoop)
Attachment #8844302 - Flags: review?(etoop) → review+
Whiteboard: [needs uplift]
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
v7.x b497e7f51160b05d2724cf366d98f1b993b6785f
Whiteboard: [needs uplift] → [MobileCore]
Verifying as fixed on Firefox Beta 7.0 (1986).
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: