This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search 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

permissions.default.geo 0 and 1 and 2

  • 3 ŋuɖoɖowo
  • 2 masɔmasɔ sia le wosi
  • 194 views
  • Nuɖoɖo mlɔetɔ cor-el

more options

In about:config I have set "geo.enabled" to false. -> www.google.com still displays the content in my language, darn.

I went went back to about:config and marked "only show modified preferences" -> to my surprise not only "geo.enabled 1" was displayed but also "permissions.default.geo 2" (though I never touched that one - so I thought they must be linked somehow)

I was curious and reverted "permissions.default.geo" back to default -> now it is set to "0" -> but "geo.enable" is still on "false" (so I am not sure anymore if they are really linked together - which doesnt make sense to me)

Now I don't know if I should leave "permissions.default.geo" on "2" how I found it, or on "0" which is the default. That's why I come here to ask:

==> What are the three states of "permissions.default.geo [0/1/2]" doing and how is it interacting with "geo.enable"?

In about:config I have set "geo.enabled" to false. -> www.google.com still displays the content in my language, darn. I went went back to about:config and marked "only show modified preferences" -> to my surprise not only "geo.enabled 1" was displayed but also "permissions.default.geo 2" (though I never touched that one - so I thought they must be linked somehow) I was curious and reverted "permissions.default.geo" back to default -> now it is set to "0" -> but "geo.enable" is still on "false" (so I am not sure anymore if they are really linked together - which doesnt make sense to me) Now I don't know if I should leave "permissions.default.geo" on "2" how I found it, or on "0" which is the default. That's why I come here to ask: ==> What are the three states of "permissions.default.geo [0/1/2]" doing and how is it interacting with "geo.enable"?

Ŋuɖoɖo si wotia

See

 /**
  * Predefined return values for the testPermission method and for
  * the permission param of the add method
  * NOTE: UNKNOWN_ACTION (0) is reserved to represent the
  * default permission when no entry is found for a host, and
  * should not be used by consumers to indicate otherwise.
  */
 const uint32_t UNKNOWN_ACTION = 0;
 const uint32_t ALLOW_ACTION = 1;
 const uint32_t DENY_ACTION = 2;
 const uint32_t PROMPT_ACTION = 3;
Xle ŋuɖoɖo sia le goya me 👍 0

All Replies (3)

more options

BTW: one of the reasons I wanted to disable my IP was that I tried to change the google doodle. So I logged out google. but doesnt matter which VPN country I choose and what I did in about:config and what Firefox language I choose -> the doodle doesn't change, it is always in my language, not in the VPN IP's language or in the Firefox's language.

Mark trɔe

more options

The permissions.default.x preferences are the default site permission before you grant or deny a specific site. On the Settings page, if you go to Privacy, Location, and click the Settings button, you'll find a checkbox labeled "Block new requests asking to access your location" which has this effect:

  • [ ] not checked => Sites can trigger a permission request => 0
  • [x] checked => Sites cannot trigger a permission request => 2 -- you can still grant a site permission manually using the Page Info dialog (Ctrl+i, or on Mac, Command+i)

I think a value of 1 means you have granted permission for all sites by default, without an individual request, so that's normally NOT what you want.

geo.enabled controls whether Firefox will perform geolocation for a site even if you granted permission.


None of this is related to your IP address, it only controls precise location based either on GPS or your local Wi-Fi hotpots. If you want to use a different IP address, you generally need to use a VPN.

It's also possible Google determines your preferred language based on either:

more options

Ɖɔɖɔɖo si wotia

See

 /**
  * Predefined return values for the testPermission method and for
  * the permission param of the add method
  * NOTE: UNKNOWN_ACTION (0) is reserved to represent the
  * default permission when no entry is found for a host, and
  * should not be used by consumers to indicate otherwise.
  */
 const uint32_t UNKNOWN_ACTION = 0;
 const uint32_t ALLOW_ACTION = 1;
 const uint32_t DENY_ACTION = 2;
 const uint32_t PROMPT_ACTION = 3;