搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

permissions.default.geo 0 and 1 and 2

  • 3 个回答
  • 2 人有此问题
  • 59 次查看
  • 最后回复者为 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"?

被采纳的解决方案

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;
定位到答案原位置 👍 0

所有回复 (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于修改

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

选择的解决方案

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;