Closed Bug 1482125 Opened 6 years ago Closed 6 years ago

Add internal aliases for common search plugins

Categories

(Firefox :: New Tab Page, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
Firefox 63
Iteration:
63.4 - Aug 20
Tracking Status
firefox62 --- fixed
firefox63 --- fixed

People

(Reporter: Mardak, Assigned: mkaply)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxsearch])

Attachments

(1 file)

Like bug 1480504 but for all packaged ones to allow for bug 1480507. There's an open question to what the alias should be for non-english search providers, e.g., use the name or just the "english" domain for the @alias. We could support multiple although that then just shifts the question to what shows up on the tile in activity stream, as that's what users will see as the "suggested way"
Depends on: 1480504
Here's a bunch of search plugins and their name vs domain: https://searchfox.org/mozilla-central/search?q=searchform%7Cshortname&regexp=true&path=browser%2Fcomponents%2Fsearch%2Fsearchplugins mkaply, are these the ones we should be looking at? Aaron, how do we pick the keyword for even just the packaged search engines from that list? E.g., <ShortName>亚马逊</ShortName> <SearchForm>https://www.amazon.cn/</SearchForm> Chinese users might not be typing "amazon" normally as it might be more difficult to type than "亚马逊"
Flags: needinfo?(abenson)
I thought the whole point of this was to be kind of an experiment at first? We have a hundred+ of these and not all of them merit being a first class search in the URL bar. And many of them are non US, so the shortcut we pick might not be the one we expect.
So I'm going to implement this in the search service. Here is my initial list of mappings of providers to engnies that we are going to include: const ENGINE_ALIASES = new Map([ ["Google", "@google"], ["Amazon", "@amazon"], ["Twitter", "@twitter"], ["Wikipedia", "@wikipedia"], ["eBay", "@ebay"], ["Bing", "@bing"], ["DuckDuckGo", "@duckduckgo"], ["Yandex", "@yandex"], ["Яндекс", "@yandex"], ["百度", "@baidu"], ]); Wikipedia is going to be a little more work, but I already have this basically working.
Assignee: nobody → mozilla
Flags: needinfo?(abenson)
Status: NEW → ASSIGNED
Summary: Add all default packaged search with internal @keyword alias → Add internal aliases for common search plugins
Severity: normal → enhancement
Comment on attachment 8998923 [details] Bug 1482125 - Add internal aliases for common search plugins. Ed Lee :Mardak has approved the revision.
Attachment #8998923 - Flags: review+
Comment on attachment 8998923 [details] Bug 1482125 - Add internal aliases for common search plugins. Drew Willcoxon :adw has approved the revision.
Attachment #8998923 - Flags: review+
Pushed by mozilla@kaply.com: https://hg.mozilla.org/integration/autoland/rev/1f187635f2e4 Add internal aliases for common search plugins. r=Mardak,adw
Backed out changeset 1f187635f2e4 (Bug 1482125) for test_nsDefaultURIFixup_search.js failures. Push with failures:https://treeherder.mozilla.org/#/jobs?repo=autoland&revision=1f187635f2e4b801134bd6b549a55df5e3ed96c7 Backout link: https://hg.mozilla.org/integration/autoland/rev/c5109843829d5758ac7e5ad618b826141396ad59 Failure log: https://treeherder.mozilla.org/logviewer.html#?job_id=193321246&repo=autoland&lineNumber=2058 [task 2018-08-10T17:06:38.005Z] 17:06:38 INFO - TEST-START | docshell/test/unit/test_nsDefaultURIFixup_search.js [task 2018-08-10T17:06:38.653Z] 17:06:38 WARNING - TEST-UNEXPECTED-FAIL | docshell/test/unit/test_nsDefaultURIFixup_search.js | xpcshell return code: 0 [task 2018-08-10T17:06:38.654Z] 17:06:38 INFO - TEST-INFO took 646ms
Blocks: 1482479
Pushed by mozilla@kaply.com: https://hg.mozilla.org/integration/autoland/rev/53bdfc04ee13 Add internal aliases for common search plugins. r=Mardak,adw
Blocks: 1482565
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 63
Blocks: 1482629
Blocks: 1482398
Whiteboard: [fxsearch]
Blocks: 1502975
Component: Activity Streams: Newtab → New Tab Page
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: