Closed Bug 1136714 Opened 9 years ago Closed 9 years ago

TelemetryEnvironment reports one GMPlugin with "null" version on Android XPCSHELL tests

Categories

(Firefox Health Report Graveyard :: Client: Desktop, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1133310

People

(Reporter: Dexter, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

|TelemetryEnvironment._getActiveGMPlugins| plugin data collection, introduced in bug 1122050, reports a GMPlugin with strange data during Android XPCSHELL tests.

Even though plugin.isValid is true, plugin.version is null.

This is a dump of the gathered info: {"version":null,"userDisabled":false,"applyBackgroundUpdates":1}
Blocks: 1120356
Stephen, do the changes to GMPProvider possibly break on Android?
Flags: needinfo?(spohl.mozilla.bugs)
I don't know. What's the plugin.id for the failing GMPlugin? What's the best way for me to test this myself? Also, where does the plugin.isValid check occur? I don't see this in |TelemetryEnvironment._getActiveGMPlugins|...
Flags: needinfo?(spohl.mozilla.bugs) → needinfo?(alessio.placitelli)
Blocks: 1122482
No longer blocks: 1120356
Sorry for the late answer, :spohl. I just used plugin.isValid in a test, it did not make it to m-c as it wasn't helping with this problem.

I've attached a small patch to help you reproduce the problem. This is the output I'm getting from "test_TelemetryEnvironment.js" in the Android emulator:

**** DEBUG: GMP id gmp-gmpopenh264,  version null,  userDisabled false,  applyBackgroundUpdates 1

Please let me know if there's anything else I can do to help you!
Flags: needinfo?(alessio.placitelli) → needinfo?(spohl.mozilla.bugs)
Comment on attachment 8571245 [details] [diff] [review]
reproduces the issue

Review of attachment 8571245 [details] [diff] [review]:
-----------------------------------------------------------------

::: toolkit/components/telemetry/TelemetryEnvironment.jsm
@@ +806,5 @@
>  
>      let activeGMPlugins = {};
>      for (let plugin of allPlugins) {
>        // Only get GM Plugin info.
> +      if (!plugin.isGMPlugin && !plugin.isValid) {

Shouldn't this be ||, rather than &&? plugin.isValid should never be true when plugin.version is null.
Flags: needinfo?(spohl.mozilla.bugs) → needinfo?(alessio.placitelli)
Gosh, thanks for taking time looking into this. I probably looked at the code too many times and I didn't catch that.
Flags: needinfo?(alessio.placitelli)
No worries! Please do let me know if there's still something that doesn't seem right.
Blocks: 1201022
No longer blocks: 1122482
This sounds like the same issue as in bug 1133310, comment 1.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
Product: Firefox Health Report → Firefox Health Report Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: