Bug 940806 - Gfx info was not being properly reported in Telemetry. r=dteller

This commit is contained in:
Vladan Djeric 2013-11-20 14:39:23 -05:00
parent c1d6a91a00
commit e9dd8d69a7

View File

@ -374,10 +374,13 @@ TelemetryPing.prototype = {
if (gfxInfo) {
for each (let field in gfxfields) {
try {
let value = "";
value = gfxInfo[field];
if (value != "")
let value = gfxInfo[field];
// bug 940806: We need to do a strict equality comparison here,
// otherwise a type conversion will occur and boolean false values
// will get filtered out
if (value !== "") {
ret[field] = value;
}
} catch (e) {
continue
}