зеркало из https://github.com/mozilla/gecko-dev.git
bug 369012: split client name and version number into separate query params
during phishing requests patch: split {moz:client} and {moz:version} r=marria
This commit is contained in:
Родитель
9db5bfa7c8
Коммит
a4ebb3e2da
|
@ -502,13 +502,13 @@ pref("browser.safebrowsing.enabled", true);
|
||||||
pref("browser.safebrowsing.remoteLookups", false);
|
pref("browser.safebrowsing.remoteLookups", false);
|
||||||
|
|
||||||
// Non-enhanced mode (local url lists) URL list to check for updates
|
// Non-enhanced mode (local url lists) URL list to check for updates
|
||||||
pref("browser.safebrowsing.provider.0.updateURL", "http://sb.google.com/safebrowsing/update?client={moz:client}&mozver={moz:version}-{moz:buildid}&");
|
pref("browser.safebrowsing.provider.0.updateURL", "http://sb.google.com/safebrowsing/update?client={moz:client}&appver={moz:version}&");
|
||||||
|
|
||||||
pref("browser.safebrowsing.dataProvider", 0);
|
pref("browser.safebrowsing.dataProvider", 0);
|
||||||
|
|
||||||
// Does the provider name need to be localizable?
|
// Does the provider name need to be localizable?
|
||||||
pref("browser.safebrowsing.provider.0.name", "Google");
|
pref("browser.safebrowsing.provider.0.name", "Google");
|
||||||
pref("browser.safebrowsing.provider.0.lookupURL", "http://sb.google.com/safebrowsing/lookup?sourceid=firefox-antiphish&features=TrustRank&client={moz:client}&mozver={moz:version}-{moz:buildid}&");
|
pref("browser.safebrowsing.provider.0.lookupURL", "http://sb.google.com/safebrowsing/lookup?sourceid=firefox-antiphish&features=TrustRank&client={moz:client}&appver={moz:version}&");
|
||||||
pref("browser.safebrowsing.provider.0.keyURL", "https://sb-ssl.google.com/safebrowsing/getkey?client={moz:client}&");
|
pref("browser.safebrowsing.provider.0.keyURL", "https://sb-ssl.google.com/safebrowsing/getkey?client={moz:client}&");
|
||||||
pref("browser.safebrowsing.provider.0.reportURL", "http://sb.google.com/safebrowsing/report?");
|
pref("browser.safebrowsing.provider.0.reportURL", "http://sb.google.com/safebrowsing/report?");
|
||||||
|
|
||||||
|
|
|
@ -158,9 +158,9 @@ PROT_DataProvider.prototype.getUrlPref_ = function(prefName) {
|
||||||
|
|
||||||
// Parameter substitution
|
// Parameter substitution
|
||||||
url = url.replace(MOZ_PARAM_LOCALE, this.getLocale_());
|
url = url.replace(MOZ_PARAM_LOCALE, this.getLocale_());
|
||||||
url = url.replace(MOZ_PARAM_CLIENT, mozClientStr + appInfo.version);
|
url = url.replace(MOZ_PARAM_CLIENT, mozClientStr);
|
||||||
url = url.replace(MOZ_PARAM_BUILDID, appInfo.appBuildID);
|
url = url.replace(MOZ_PARAM_BUILDID, appInfo.appBuildID);
|
||||||
url = url.replace(MOZ_PARAM_VERSION, appInfo.platformVersion);
|
url = url.replace(MOZ_PARAM_VERSION, appInfo.version);
|
||||||
return url;
|
return url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче