Closed Bug 1981037 Opened 7 months ago Closed 7 months ago

Change the EngineURL constructor to take an object/named parameters

Categories

(Firefox :: Search, task, P3)

task

Tracking

()

RESOLVED FIXED
143 Branch
Tracking Status
firefox143 --- fixed

People

(Reporter: adw, Assigned: adw)

References

Details

(Whiteboard: [sng])

Attachments

(1 file)

We've recently added a few params to the EngineURL constructor as part of the visual search work, and it would be helpful to convert its params to an options object. Discussion here.

I took some liberties beyond simply converting the existing params to an options
object:

  • Renamed params so they have the same names as the corresponding engine
    properties (e.g., from base to template)
  • Made method default to "GET"
  • Updated callers so they use the splat operator where possible rather than
    specifying each param by name

Depends on D259668

Status: ASSIGNED → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → 143 Branch
QA Whiteboard: [search] [qa-triage-done-c143/b142]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: