зеркало из https://github.com/mozilla/gecko-dev.git
Bug 433615: Firefox should send version numbers to PFS not just build ids, patch by Dave Townsend <dtownsend@mozilla.com>, r=me, a=beltzner
This commit is contained in:
Родитель
929ef82c7d
Коммит
d2767b2d98
|
@ -484,7 +484,7 @@ pref("accessibility.typeaheadfind.flashBar", 1);
|
|||
pref("plugin.default_plugin_disabled", true);
|
||||
|
||||
// plugin finder service url
|
||||
pref("pfs.datasource.url", "https://pfs.mozilla.org/plugins/PluginFinderService.php?mimetype=%PLUGIN_MIMETYPE%&appID=%APP_ID%&appVersion=%APP_VERSION%&clientOS=%CLIENT_OS%&chromeLocale=%CHROME_LOCALE%");
|
||||
pref("pfs.datasource.url", "https://pfs.mozilla.org/plugins/PluginFinderService.php?mimetype=%PLUGIN_MIMETYPE%&appID=%APP_ID%&appVersion=%APP_VERSION%&clientOS=%CLIENT_OS%&chromeLocale=%CHROME_LOCALE%&appRelease=%APP_RELEASE%");
|
||||
|
||||
// by default we show an infobar message when pages require plugins the user has not installed
|
||||
pref("plugins.hide_infobar_for_missing_plugin", false);
|
||||
|
|
|
@ -48,6 +48,7 @@ function nsRDFItemUpdater(aClientOS, aChromeLocale){
|
|||
.getService(Components.interfaces.nsIXULAppInfo);
|
||||
this.appID = app.ID;
|
||||
this.buildID = app.platformBuildID;
|
||||
this.appRelease = app.version;
|
||||
|
||||
this.clientOS = aClientOS;
|
||||
this.chromeLocale = aChromeLocale;
|
||||
|
@ -64,6 +65,7 @@ nsRDFItemUpdater.prototype = {
|
|||
dsURI = dsURI.replace(/%PLUGIN_MIMETYPE%/g, encodeURIComponent(aPluginRequestItem.mimetype));
|
||||
dsURI = dsURI.replace(/%APP_ID%/g, this.appID);
|
||||
dsURI = dsURI.replace(/%APP_VERSION%/g, this.buildID);
|
||||
dsURI = dsURI.replace(/%APP_RELEASE%/g, this.appRelease);
|
||||
dsURI = dsURI.replace(/%CLIENT_OS%/g, this.clientOS);
|
||||
dsURI = dsURI.replace(/%CHROME_LOCALE%/g, this.chromeLocale);
|
||||
|
||||
|
|
|
@ -547,7 +547,8 @@ nsPluginInstallerWizard.prototype.showPluginResults = function (){
|
|||
"&appID=" + app.ID +
|
||||
"&appVersion=" + app.platformBuildID +
|
||||
"&clientOS=" + this.getOS() +
|
||||
"&chromeLocale=" + this.getChromeLocale();
|
||||
"&chromeLocale=" + this.getChromeLocale() +
|
||||
"&appRelease=" + app.version;
|
||||
|
||||
document.getElementById("moreInfoLink").addEventListener("click", function() { gPluginInstaller.loadURL("https://pfs.mozilla.org/plugins/" + notInstalledList) }, false);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче