Closed Bug 1434489 Opened 7 years ago Closed 7 years ago

Add module cert info to modules ping

Categories

(Toolkit :: Telemetry, enhancement, P1)

Unspecified
Windows
enhancement

Tracking

()

RESOLVED FIXED
mozilla60
Tracking Status
firefox60 --- fixed

People

(Reporter: bugzilla, Assigned: bugzilla)

References

(Blocks 1 open bug)

Details

(Whiteboard: inj+)

Attachments

(1 file, 1 obsolete file)

Once bug 1430857 lands, we can expand the CertAnnotator to report info to the modules ping in telemetry. (See https://bugzilla.mozilla.org/show_bug.cgi?id=1430857#c3)
Priority: -- → P4
No longer blocks: injecteject
Assignee: nobody → aklotz
Status: NEW → ASSIGNED
Priority: P4 → P2
Whiteboard: inj+
Component: Telemetry → Crash Reporting
Priority: P2 → P1
Attached patch Add cert subject to modules ping when available (obsolete) (deleted) — Splinter Review
(Note: data review for this functionality was done as part of bug 1430857) This patch adds the certSubject field to the modules ping. To control ping size, we just omit the field when it isn't present (instead of setting to null), as it is common for a module to lack a signature.
Attachment #8956949 - Flags: review?(chutten)
Comment on attachment 8956949 [details] [diff] [review] Add cert subject to modules ping when available Review of attachment 8956949 [details] [diff] [review]: ----------------------------------------------------------------- Two smallish comments, only. ::: toolkit/components/telemetry/tests/unit/test_TelemetryModules.js @@ +70,5 @@ > + name: "ntdll.dll", > + // This value changes depending on OS version and is irrelevant to this test > + debugName: false, > + // This value changes depending on OS version and is irrelevant to this test > + version: false, Instead of using a boolean type check, could we omit them from the struct and check `if ("version" in lib.version)`. We could render them as commented-out here to show we're doing so deliberately. Then it would line up with how most test libs don't have `certSubject` @@ +204,5 @@ > } else { > Assert.greater(test_lib.debugID.length, 0, "The " + lib.name + " module has a debug ID."); > } > + > + if (lib.certSubject !== undefined) { It would be slightly more precise to check `if ("certSubject" in lib)` to catch cases where it is defined as undefined. (*sigh* JavaScript)
Attachment #8956949 - Flags: review?(chutten)
Changes made as suggested.
Attachment #8956949 - Attachment is obsolete: true
Attachment #8956959 - Flags: review?(chutten)
Comment on attachment 8956959 [details] [diff] [review] Add cert subject to modules ping when available (r2) Review of attachment 8956959 [details] [diff] [review]: ----------------------------------------------------------------- LGTM
Attachment #8956959 - Flags: review?(chutten) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/22ba4f32a7afe64038a38cd2e1fc16ede661f9ab Bug 1434489: Add optional certSubject field to modules ping; r=chutten, data-review=francois (via bug 1430857)
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla60
Depends on: 1444361
Component: Crash Reporting → Telemetry
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: