Open Bug 1138434 Opened 6 years ago Updated 5 years ago

Search bar is ignoring language listed in opensearch definition


(Firefox :: Search, defect, P3)

36 Branch





(Reporter: bonbons, Unassigned)


(Whiteboard: [fxsearch])

User Agent: Mozilla/5.0 (X11; Linux i686; rv:36.0) Gecko/20100101 Firefox/36.0
Build ID: 20150301125210

Steps to reproduce:

I registered a search engine to search bar using the "Add {ShortName}" option in the search bar menu.

The definition of the engine (URLs for documentation purpose):
<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="">
  <Description>MyEngine search tool</Description>
  <Url type="text/html" template="{language}/search.html?keywords={searchTerms}" />
  <Url type="application/atom+xml" template="{language}/search.xml?keywords={searchTerms}&amp;count={count}&amp;page={startPage}" />
  <Url type="application/opensearchdescription+xml" rel="self" template="" />
  <Query role="example" searchTerms="example" />

Configured languages in Preferences: en, fr, de

Actual results:

When searching with the added engine Firefox is replacing {language} in the Url@template with the UI language (en-US) which is not even listed as supported by the engine.

Expected results:

Firefox should have chosen 'en' instead of 'en-US' or even better offered the option to select the language in the search bar popup from those supported by the engine.
Component: Untriaged → Search
Priority: -- → P3
Whiteboard: [fxsearch]
Rank: 35
You need to log in before you can comment on or make changes to this bug.