Closed
Bug 670451
Opened 13 years ago
Closed 6 years ago
OpenSearch "language" and MozSearch moz:language parameters shouldn't use UI locale
Categories
(Firefox :: Search, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: haqer, Unassigned)
References
Details
(Keywords: privacy)
User Agent: Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0
Build ID: 20110615151330
Steps to reproduce:
Searched from search bar using Google
Actual results:
Locale code from general.useragent.locale was indicated in the URL as part of HTTP param rls.
Expected results:
User's most preferred locale should be used instead (based on Accept-Language (and navigator.language)).
P.S. I'm reporting against FX 5, but suspect the same is true for Trunk.
Reporter | ||
Comment 1•13 years ago
|
||
Completely dropping rls HTTP param is an equally good, and perhaps even a better solution. It still appears that the code changes in this bug would be separate from bug 670450, but if needed the 2 bugs can be merged.
Summary: Google search from search bar should use user's most preferred locale in URL → Google search from search bar should not reveal anything about user's UI locale in URL
Comment 2•13 years ago
|
||
This is not a core issue. The HTTP implementation does NOT decide what urls to load.
Component: Networking: HTTP → Search
Product: Core → Firefox
QA Contact: networking.http → search
Comment 3•13 years ago
|
||
I'm not sure what this rls param is used for. Kev can you help out?
OS: Other → All
Comment 4•13 years ago
|
||
The "rls" attribute is used by Google affiliates, of which Mozilla is one. The locale included in this attribute has no bearing on the content returned by queries to Google, and is included for reporting.
Updated•13 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
Updated•13 years ago
|
Status: RESOLVED → VERIFIED
Reporter | ||
Comment 6•13 years ago
|
||
For the record and clarity: the issue reported here is distinct from bug 670450 in that the locale code used in search URL (when searching from search bar) is a dynamic value and comes from from general.useragent.locale pref (whereas in 670450 it's a build-time value, that doesn't appear to be based on any pref). From my viewpoint, it's OK to fix 2 in 1, just want to make sure people are aware that there are 2 distinct behaviors and 2 places to fix.
P.S. The search bar URL used to be based on a chrome pref in 3.6 and earlier, but no longer is, AFAIK.
Keywords: privacy
Comment 7•13 years ago
|
||
Ah yes, this is indeed a separate issue. This is about the OpenSearch "locale" dynamic parameter.
Status: VERIFIED → REOPENED
Ever confirmed: true
Resolution: DUPLICATE → ---
Updated•13 years ago
|
Summary: Google search from search bar should not reveal anything about user's UI locale in URL → Searches from search bar should not use UI locale for OpenSearch dynamic "locale" parameter
Reporter | ||
Comment 8•11 years ago
|
||
Searches from a) search bar, b) context menu, and c) location bar behave equivalently, and probably require a change in only 1 place.
P.S. a) and b) are known to reveal UI locale (general.useragent.locale) when the selected search engine is Google. c) as of now appears to always be using Google.
P.P.S. All 3 variations listed here reflect changes to general.useragent.locale immediately (no app re-start required for a), b), and c)).
Summary: Searches from search bar should not use UI locale for OpenSearch dynamic "locale" parameter → Searches from search bar, context menu, and location bar should not use UI locale for OpenSearch dynamic "locale" parameter
Reporter | ||
Comment 9•11 years ago
|
||
Two points as an FYI.
1. Ubuntu-provided Firefox doesn't reveal UI locale for Google searches. The following is the complete list of params Ubuntu's OpenSearch config for Google search plugin contains for text/html GET requests:
<Param name="client" value="ubuntu"/>
<Param name="channel" value="fs"/>
<Param name="q" value="{searchTerms}"/>
<Param name="ie" value="utf-8"/>
<Param name="oe" value="utf-8"/>
2. Regarding the other major search plugins (other than Google): Bing, Yahoo, Amazon, eBay, Twitter, Wikipedia. None of them reveal the UI locale as part of a URL (param).
P.S. The param in Firefox-shipped google.xml a change in or removal of which is being requested in this bug is as follows:
<Param name="rls" value="{moz:distributionID}:{moz:locale}:{moz:official}"/>
Summary: Searches from search bar, context menu, and location bar should not use UI locale for OpenSearch dynamic "locale" parameter → Google search from search bar, context menu, & location bar shouldn't use UI locale for "rls" param in OpenSearch config
Updated•11 years ago
|
Summary: Google search from search bar, context menu, & location bar shouldn't use UI locale for "rls" param in OpenSearch config → OpenSearch "language" and MozSearch moz:language parameters shouldn't use UI locale
Comment 11•6 years ago
|
||
The original intention of this MozParam was to return the browser locale. It wasn't used to affect results, it was used to report the UI language of the browser to Google.
So it is working as designed. It currently uses Services.locale.getRequestedLocale();.
It's not used by Google anymore.
Status: REOPENED → RESOLVED
Closed: 13 years ago → 6 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•