Closed Bug 1218842 Opened 9 years ago Closed 9 years ago

TelemetryEnvironment submits inactive GMP plugins

Categories

(Toolkit :: Telemetry, defect, P1)

defect
Points:
1

Tracking

()

VERIFIED FIXED
mozilla45
Tracking Status
firefox44 --- affected
firefox45 --- verified

People

(Reporter: gfritzsche, Assigned: Dexter, Mentored)

References

Details

(Whiteboard: [unifiedTelemetry] [measurement:client] [lang=js] [good first bug])

Attachments

(1 file, 1 obsolete file)

We should filter out disabled GMP plugins here by also checking for |plugin.disabled|:
https://dxr.mozilla.org/mozilla-central/rev/6c7c983bce46a460c2766fbdd73283f6d2b03a69/toolkit/components/telemetry/TelemetryEnvironment.jsm#624

We should check that the Telemetry unit tests still run through properly after this change:
mach xpcshell-test toolkit/components/telemetry/tests/unit/
Flags: qe-verify+
Blocks: 1122479
Priority: P3 → P2
Priority: P2 → P1
Assignee: nobody → alessio.placitelli
Attached patch bug1218842.patchSplinter Review
Attachment #8681964 - Flags: review?(gfritzsche)
Attachment #8681964 - Flags: review?(gfritzsche) → review+
https://hg.mozilla.org/integration/fx-team/rev/e402ef99492dc81b1b1f28d04a6baa96de0ec3d2
Bug 1218842 - Don't submit inactive or invalid GMP plugins in TelemetryEnvironment. r=gfritzsche
https://hg.mozilla.org/mozilla-central/rev/e402ef99492d
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla45
Attached patch Fx_43 - Patch for Firefox beta (obsolete) — Splinter Review
Approval Request Comment
[Feature/regressing bug #]: This fixes the wrong GMPlugins being reported by Telemetry.
[User impact if declined]: The wrong number of plugins may be reported in about:healthreport.
[Describe test coverage new/current, TreeHerder]: Automated test coverage already present.
[Risks and why]: Low-risk - manually tested and basically just skipping GMPlugins explicitly marked as invalid or disabled.
[String/UUID change made/needed]: None
Attachment #8683072 - Flags: approval-mozilla-beta?
Attachment #8683072 - Attachment is obsolete: true
Attachment #8683072 - Flags: approval-mozilla-beta?
Comment on attachment 8681964 [details] [diff] [review]
bug1218842.patch

Approval Request Comment
[Feature/regressing bug #]: This fixes the wrong GMPlugins being reported by Telemetry.
[User impact if declined]: The wrong number of plugins may be reported in about:healthreport.
[Describe test coverage new/current, TreeHerder]: Automated test coverage already present.
[Risks and why]: Low-risk - manually tested and basically just skipping GMPlugins explicitly marked as invalid or disabled.
[String/UUID change made/needed]: None
Attachment #8681964 - Flags: approval-mozilla-beta?
Attachment #8681964 - Flags: approval-mozilla-aurora?
removing the b2g 2.5 flag since this commit has been reverted due to an incorrect merge, sorry for the confusion
On latest 45.0a1 (from 2015-11-05), with alert(JSON.stringify(Cu.import("resource://gre/modules/TelemetryEnvironment.jsm").TelemetryEnvironment.currentEnvironment)) command the output is:
"activeGMPlugins": {
      
    } for both Always or Never activate states.

Tested with both about:healthreport page v2 and v4 content, across platforms [1]. Is it expected that even in active state the gmp plugins are not submitted? And please let me know if this testing is enough to call this verified.

[1] Windows 7 64-bit, Mac OS X 10.9.5 and Ubuntu 14.04 32-bit
Flags: needinfo?(alessio.placitelli)
Flags: needinfo?(alessio.placitelli)
Attachment #8681964 - Flags: approval-mozilla-beta?
Attachment #8681964 - Flags: approval-mozilla-aurora?
Depends on: 1222503
Alexandra, good catch. This is a regression, I've filed bug 1222503 for it.
Confirming this fix with latest 45.0a1 (2015-11-11), across platforms, along with the verification for bug 1222503.
Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: