mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1070138 - Send only version number and release channel in appinfo. r=gavin
This commit is contained in:
parent
176eeadd15
commit
896095d61d
@ -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);
|
||||
|
@ -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.");
|
||||
|
Loading…
Reference in New Issue
Block a user