Closed
Bug 1786899
Opened 4 years ago
Closed 4 years ago
Clean up some parts of BrowserSearch
Categories
(Firefox :: Search, task, P3)
Firefox
Search
Tracking
()
RESOLVED
FIXED
106 Branch
| Tracking | Status | |
|---|---|---|
| firefox106 | --- | fixed |
People
(Reporter: standard8, Assigned: standard8)
Details
Attachments
(2 files)
BrowserSearch.loadAddEngines is no longer used:
https://searchfox.org/mozilla-central/search?q=symbol:%23loadAddEngines&redirect=false
We should remove that, and simplify the calls to BrowserSearch.searchEnginesURL - there's no need for them to find a window to get the url.
| Assignee | ||
Comment 1•4 years ago
|
||
formatURL is only used in one other place - nsContextMenu.js, so we don't really need that when we can call the necessary function direct.
Also moves searchEnginesURL into SearchUIUtils, as that seems a reasonable place to start storing things like that.
| Assignee | ||
Comment 2•4 years ago
|
||
I'm going to extend this to add a little bit more clean up of BrowserSearch as well.
Summary: Remove unused BrowserSearch.loadAddEngines → Clean up some parts of BrowserSearch
| Assignee | ||
Comment 3•4 years ago
|
||
Depends on D155496
Pushed by mbanner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/df17de492f56
Remove unused BrowserSearch.loadAddEngines and remove formatURL. r=jteow,preferences-reviewers
https://hg.mozilla.org/integration/autoland/rev/0e30991b60e7
Remove unused uri argument to BrowserSearch.addEngine. r=jteow
Comment 5•4 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/df17de492f56
https://hg.mozilla.org/mozilla-central/rev/0e30991b60e7
Status: NEW → RESOLVED
Closed: 4 years ago
status-firefox106:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 106 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•