Closed Bug 1895934 Opened 9 months ago Closed 4 months ago

Improve handling of search term parameter names

Categories

(Firefox :: Search, task, P3)

task

Tracking

()

RESOLVED FIXED
133 Branch
Tracking Status
firefox133 --- fixed

People

(Reporter: standard8, Assigned: mbeier)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [sng])

Attachments

(1 file)

With the new search configuration, we now have a dedicated searchTermParamName. For application provided engines, we should be able to use those details directly, rather than going through the conversion to a URL and look for {searchTerms} process.

It might be that we extend EngineURLs with a specific option for the search term, rather than having AppProvidedSearchEngine add a "normal" parameter.

Some exploration might be needed for the best way of doing this. Ideally, we'd potentially only process once the search term parameter name for other engine types as well.

Whilst here, or maybe in a follow-up, we should also update SearchEngine.searchTermFromResult to get the search term parameter name directly, rather than going through getURLParsingInfo(). This would be more efficient in avoiding unnecessary conversions of the URL template to a nsIURI.

Blocks: 1640054
Assignee: nobody → mbeier
Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fa2e407806fa Improve handling of search term parameter names. r=Standard8
Flags: needinfo?(standard8)
Flags: needinfo?(mbeier)
Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2d583c7e6ed7 Improve handling of search term parameter names. r=Standard8

Backed out for causing docu perma failures

Backout link: https://hg.mozilla.org/integration/autoland/rev/57a73a854a08b460c721a973cbca8879a1f3cf81

Push with failures

[Failure log -> https://treeherder.mozilla.org/logviewer?job_id=477680830&repo=autoland&lineNumber=810](sphinx.errors.ExtensionError: Handler <function analyze at 0x7f61129ecea0> for event 'builder-inited' threw an exception (exception: Your code contains multiple documented objects at each of these paths:)

Flags: needinfo?(standard8)
Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3b7becf05898 Improve handling of search term parameter names. r=Standard8
Flags: needinfo?(standard8)
Status: NEW → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 133 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: