Closed Bug 1650881 Opened 4 years ago Closed 4 years ago

Make webExtensions support multiple aliases

Categories

(Firefox :: Search, enhancement, P4)

enhancement

Tracking

()

RESOLVED FIXED
81 Branch
Iteration:
81.1 - July 27 - Aug 09
Tracking Status
firefox81 --- fixed

People

(Reporter: daleharvey, Assigned: daleharvey)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

We use multiple aliases for yandex + baidu, if we want to use webExtension keywords here we need to add support for multiples

Assignee: nobody → dharvey
Iteration: --- → 81.1 - July 27 - Aug 09

Hey Shane

This is regarding the search_provider.keyword field being able to handle multiple aliases. Mark and I were wondering, the first implementation of this I just pass through the keyword field and split the string on spaces. So search_provider.keyword = "@duckduckgo @ggd" This makes it simple not having to touch webextensions code, but obviously a little unclean to be doing string operations.

Another choice would be to have the webextensions field support both strings as it does now, and an array search_provider.keyword = ["@duckduckgo", "@ddg"]

Do you have strong opinions either way?

Cheers
Dale

Flags: needinfo?(mixedpuppy)

Using an array would probably be the cleaner path here.

Flags: needinfo?(mixedpuppy)
Pushed by dharvey@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3c2dbabf8715 Support multiple aliases in webextensions r=Standard8,mixedpuppy
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 81 Branch
Pushed by geoff@darktrojan.net: https://hg.mozilla.org/comm-central/rev/6b8097f6f11c Port bug 1650881 - Support multiple aliases in search webextensions. rs=bustage-fix
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: