Open
Bug 1833063
Opened 1 year ago
Updated 9 months ago
Commonalize similar/same codes for Addon and Weather suggestions
Categories
(Firefox :: Address Bar, task, P3)
Firefox
Address Bar
Tracking
()
NEW
People
(Reporter: daisuke, Unassigned)
References
Details
(Whiteboard: [sng-scrubbed][search-tech-debt])
This is a follow-up bug for bug 1832474.
As was pointed out in phabricator, as there are some similar/same codes in Addon and Weather suggestions, communalize them.
Comment 1•1 year ago
|
||
Drew, I remember you recently made improvements to this code to share more parts. Is this something we should do yet?
Flags: needinfo?(adw)
Comment 2•10 months ago
|
||
Yes, there's still some consolidation we can do. The things Daisuke mentioned are still relevant; here's a quick list of things we can do at any time:
- Consolidate definitions of command names used in the various Suggest features. For example
"not_interested"
is defined in many places. - If it makes sense, consolidate the implementation of
getResultCommands()
in the Suggest features (and weather provider). They aren't exactly the same so it might not be worth trying to factor that out. - Consolidate browser test code for testing result menu commands. All the Suggest features have similar browser test code for this: For each result menu command, they open the result menu, click an item, and make sure it did the right thing. In addition to that basic commonality, some commands themselves are the same across features. See the relevant files in https://searchfox.org/mozilla-central/source/browser/components/urlbar/tests/quicksuggest/browser/
Severity: -- → N/A
Flags: needinfo?(adw)
Priority: -- → P3
Updated•9 months ago
|
Whiteboard: [sng-scrubbed][search-tech-debt]
Updated•9 months ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•