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)
Tracking
()
VERIFIED
FIXED
People
(Reporter: csuciu, Assigned: raymond.edwards+moz, Mentored)
References
Details
(Whiteboard: [MobileCore])
Attachments
(2 files)
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.
Updated•8 years ago
|
Assignee | ||
Comment 1•8 years ago
|
||
I'd like to contribute here. Working on a pull request now.
Reporter | ||
Updated•8 years ago
|
Assignee: nobody → raymond.edwards+moz
Assignee | ||
Comment 2•8 years ago
|
||
Attachment #8843633 -
Flags: review?(etoop)
Comment 3•8 years ago
|
||
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+
Assignee | ||
Comment 4•8 years ago
|
||
Good catch. Whitespace is now trimmed before saving.
Attachment #8844302 -
Flags: review?(etoop)
Updated•8 years ago
|
Attachment #8844302 -
Flags: review?(etoop) → review+
Updated•8 years ago
|
Whiteboard: [needs uplift]
Updated•8 years ago
|
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Comment 5•8 years ago
|
||
v7.x b497e7f51160b05d2724cf366d98f1b993b6785f
status-fxios-v8.0:
--- → fixed
Whiteboard: [needs uplift] → [MobileCore]
Reporter | ||
Comment 6•8 years ago
|
||
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.
Description
•