Søg i Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

How firefox detects country?

more options

Related question is answered here: https://support.mozilla.org/en-US/questions/1250804

I would like to know how firefox implements location check/test in order to determine that Yandex mus be a default search engine in Russia.

1. How to disable this behavior before search engine is auto-set for the first time 2. Name or clarifications on how geolocation works (is it based on certain HTTP request or system locale, etc)

Thank you

Related question is answered here: https://support.mozilla.org/en-US/questions/1250804 I would like to know how firefox implements location check/test in order to determine that Yandex mus be a default search engine in Russia. 1. How to disable this behavior before search engine is auto-set for the first time 2. Name or clarifications on how geolocation works (is it based on certain HTTP request or system locale, etc) Thank you

Alle svar (1)

more options

I suspect the default search engine is preset at build time based on the locale (e.g., en-US vs. ru), and then updated later at various intervals.

If the browser.search.geoSpecificDefaults preference is flipped from true to false, I don't think Firefox will make any further changes. If it retains its default value of true, then the url template in the browser.search.geoSpecificDefaults.url preference is used to retrieve the default search engine name.

This is the Firefox 66 source code that probably has the answers to the second question, but it might take too much patience to follow... https://dxr.mozilla.org/mozilla-release/source/toolkit/components/search/nsSearchService.js#387