Closed Bug 1786899 Opened 4 years ago Closed 4 years ago

Clean up some parts of BrowserSearch

Categories

(Firefox :: Search, task, P3)

task

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.

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.

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
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
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 106 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: