Closed Bug 1815842 Opened 1 year ago Closed 1 year ago

Improve search form handing in SearchEngine and improve docs for getSubmission

Categories

(Firefox :: Search, task, P2)

task

Tracking

()

RESOLVED FIXED
112 Branch
Tracking Status
firefox112 --- fixed

People

(Reporter: standard8, Assigned: standard8)

References

Details

Attachments

(2 files)

I noticed that when we get the search form via SearchEngine.getSubmission, we pass in the purpose - however for search form urls, the purpose never gets used as we don't use mozparams on search forms. Hence we can simplify the code a bit.

Additionally, the getSubmission documentation doesn't make it clear that if an empty string is passed, then the search form may be returned if it exists. Whilst we could change the behaviour, I think we shouldn't do that until we understand a bit more about search form in bug 1781766.

Search forms have never had purposes, so we don't need to try to handle them as if they did have purposes.

Blocks: 1815911
Pushed by mbanner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/271cd55d91cf
Simplify getting the search form for a search engine. r=search-reviewers,daleharvey
https://hg.mozilla.org/integration/autoland/rev/9af3da406d7e
Improve nsISearchEngine.getSubmission documentation. r=search-reviewers,daleharvey
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 112 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: