Closed
Bug 937870
Opened 11 years ago
Closed 11 years ago
nsSearchService displays duplicate engine prompt regardless of confirmation set by caller
Categories
(Firefox :: Search, defect)
Firefox
Search
Tracking
()
RESOLVED
FIXED
Firefox 28
People
(Reporter: liuche, Assigned: liuche)
References
Details
Attachments
(1 file, 1 obsolete file)
1.97 KB,
patch
|
Gavin
:
review+
|
Details | Diff | Splinter Review |
http://mxr.mozilla.org/mozilla-central/source/toolkit/components/search/nsSearchService.js#1475
The prompt for adding a duplicate engine should only be displayed if the caller sets confirm = true. Implementation also doesn't match comment.
Assignee | ||
Comment 1•11 years ago
|
||
Attachment #831117 -
Flags: review?(gavin.sharp)
Comment 2•11 years ago
|
||
Comment on attachment 831117 [details] [diff] [review]
Patch: check confirmation for duplicate engine prompt
The !engineToUpdate check needs to stay there, since we allow "duplicate" installs in that case (the comment should probably be updated too).
Looks like http://hg.mozilla.org/mozilla-central/rev/e9b946da20cb (bug 493051) regressed this, there should be an additional _confirm check before calling promptError.
Attachment #831117 -
Flags: review?(gavin.sharp) → review-
Comment 3•11 years ago
|
||
BTW, while you're fixing search stuff, maybe you're interested in fixing bug 863474? :)
(I imagine it could be useful for Android since it'd let you do a custom prompt.)
Comment 4•11 years ago
|
||
(In reply to :Gavin Sharp (email gavin@gavinsharp.com) from comment #2)
> there should be an additional if (_confirm) check before
> calling promptError.
Oh, and in the !_confirm case, we need to call onError() instead.
Assignee | ||
Comment 5•11 years ago
|
||
Thanks for the suggestions! Updated the comments as well.
Attachment #831117 -
Attachment is obsolete: true
Attachment #831155 -
Flags: review?(gavin.sharp)
Comment 6•11 years ago
|
||
Comment on attachment 831155 [details] [diff] [review]
Patch: check confirmation for duplicate engine prompt v2
Thanks a lot!
Attachment #831155 -
Flags: review?(gavin.sharp) → review+
Updated•11 years ago
|
Assignee: nobody → liuche
Assignee | ||
Comment 7•11 years ago
|
||
Assignee | ||
Updated•11 years ago
|
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 28
You need to log in
before you can comment on or make changes to this bug.
Description
•