Bug 1070138 - Send only version number and release channel in appinfo. r=gavin

This commit is contained in:
Alex Bardas 2014-09-22 12:04:00 +02:00
parent 176eeadd15
commit 896095d61d
2 changed files with 2 additions and 4 deletions

View File

@ -1132,8 +1132,7 @@ this.UITour = {
});
break;
case "appinfo":
let props = ["defaultUpdateChannel", "distributionID", "isOfficialBranding",
"isReleaseBuild", "name", "vendor", "version"];
let props = ["defaultUpdateChannel", "version"];
let appinfo = {};
props.forEach(property => appinfo[property] = Services.appinfo[property]);
this.sendPageCallback(aContentDocument, aCallbackID, appinfo);

View File

@ -267,8 +267,7 @@ let tests = [
},
function test_getConfigurationVersion(done) {
function callback(result) {
let props = ["defaultUpdateChannel", "distributionID", "isOfficialBranding",
"isReleaseBuild", "name", "vendor", "version"];
let props = ["defaultUpdateChannel", "version"];
for (let property of props) {
ok(typeof(result[property]) !== undefined, "Check " + property + " isn't undefined.");
is(result[property], Services.appinfo[property], "Should have the same " + property + " property.");