Closed
Bug 1434489
Opened 7 years ago
Closed 7 years ago
Add module cert info to modules ping
Categories
(Toolkit :: Telemetry, enhancement, P1)
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)
(deleted),
patch
|
chutten
:
review+
|
Details | Diff | Splinter Review |
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)
Updated•7 years ago
|
Priority: -- → P4
Assignee | ||
Updated•7 years ago
|
No longer blocks: injecteject
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → aklotz
Status: NEW → ASSIGNED
Priority: P4 → P2
Whiteboard: inj+
Updated•7 years ago
|
Component: Telemetry → Crash Reporting
Assignee | ||
Updated•7 years ago
|
Priority: P2 → P1
Assignee | ||
Comment 1•7 years ago
|
||
Assignee | ||
Comment 2•7 years ago
|
||
Assignee | ||
Comment 3•7 years ago
|
||
Assignee | ||
Comment 4•7 years ago
|
||
Assignee | ||
Comment 5•7 years ago
|
||
(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 6•7 years ago
|
||
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)
Assignee | ||
Comment 7•7 years ago
|
||
Changes made as suggested.
Attachment #8956949 -
Attachment is obsolete: true
Attachment #8956959 -
Flags: review?(chutten)
Comment 8•7 years ago
|
||
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+
Assignee | ||
Comment 9•7 years ago
|
||
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)
Comment 10•7 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox60:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla60
Assignee | ||
Updated•6 years ago
|
Component: Crash Reporting → Telemetry
You need to log in
before you can comment on or make changes to this bug.
Description
•