Split SearchService._getSortedEngines into two for readability
Categories
(Firefox :: Search, task, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox95 | --- | fixed |
People
(Reporter: standard8, Assigned: janey, Mentored)
Details
(Whiteboard: [lang=js])
Attachments
(1 file, 7 obsolete files)
As mentioned in https://phabricator.services.mozilla.com/D105031#inline-598754, it would be good for readability of code to split SearchService._getSortedEngines into two, e.g. _getSortedEngines and _getSortedVisibleEngines.
| Reporter | ||
Comment 1•4 years ago
|
||
Taking another look at this, this._getSortedEngines(true) calls can simply be replaced by this._sortedEngines. this._getSortedEngines(false) can then be replaced by a getter, e.g. this._sortedVisibleEngines.
The affected function is here: https://searchfox.org/mozilla-central/rev/2c4b830b924f42283632b70f39a60fd36433dd4d/toolkit/components/search/SearchService.jsm#1225-1241
Tests can be run via ./mach xpcshell-test toolkit/components/search
| Assignee | ||
Comment 2•4 years ago
|
||
Hey its Jane here from Outreachy if its possible would love to work on this one pleeeease!
| Assignee | ||
Comment 3•4 years ago
|
||
Updated•4 years ago
|
| Assignee | ||
Comment 4•4 years ago
|
||
| Assignee | ||
Comment 5•4 years ago
|
||
| Assignee | ||
Comment 6•4 years ago
|
||
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
| Assignee | ||
Comment 7•4 years ago
|
||
Updated•4 years ago
|
| Assignee | ||
Comment 8•4 years ago
|
||
Updated•4 years ago
|
| Assignee | ||
Comment 9•4 years ago
|
||
| Assignee | ||
Comment 10•4 years ago
|
||
Depends on D128562
Updated•4 years ago
|
Updated•4 years ago
|
Comment 11•4 years ago
|
||
Comment 12•4 years ago
|
||
| bugherder | ||
Description
•