瀏覽代碼

geo.wifi.uri - use mozilla_api_key not google's

Instead of `geo.wifi.uri` using 127.0.0.1, for those who do use geo (`geo.enabled` is the master switch), enforce Mozilla's service over Google's.

- Default in stable, beta: https://www.googleapis.com/geolocation/v1/geolocate?key=%GOOGLE_API_KEY%
- Nightly defaults to mozilla (not usre of the exact string)
- I do not know if this is a telemetry thing for mozilla for non-stable or if this will roll down from nightly
Thorin-Oakenpants 8 年之前
父節點
當前提交
553d1aedde
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      user.js

+ 1 - 1
user.js

@@ -72,7 +72,7 @@ user_pref("browser.shell.checkDefaultBrowser", false);
 user_pref("ghacks_user.js.parrot", "0200 syntax error: the parrot's definitely deceased!");
 /* 0201: disable location-aware browsing ***/
 user_pref("geo.enabled", false);
-user_pref("geo.wifi.uri", "https://127.0.0.1");
+user_pref("geo.wifi.uri", "https://location.services.mozilla.com/v1/geolocate?key=%MOZILLA_API_KEY%");
 user_pref("geo.wifi.logging.enabled", false); // (hidden pref)
 user_pref("browser.search.geoip.url", "");
 user_pref("geo.wifi.xhr.timeout", 1);