permissions.default.geo 0 and 1 and 2
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"?
Kiválasztott megoldás
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;Válasz olvasása eredeti szövegkörnyezetben 👍 0
Összes válasz (3)
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.
Módosította: Mark,
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:
- Language header -- see: Choose display languages for multilingual web pages
- Cookies or local storage from a previous visit -- try a private window after switching your IP and language
Kiválasztott megoldás
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;