Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Learn More

permissions.default.geo 0 and 1 and 2

  • 3 trả lời
  • 2 gặp vấn đề này
  • 54 lượt xem
  • Trả lời mới nhất được viết bởi 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"?

Giải pháp được chọn

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;
Đọc câu trả lời này trong ngữ cảnh 👍 0

Tất cả các câu trả lời (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.

Được chỉnh sửa bởi Mark vào

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

Giải pháp được chọn

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;