Closed Bug 1088141 Opened 10 years ago Closed 9 years ago

Add telemetry for SSL Error Reports

Categories

(Core :: Security, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla41
Tracking Status
firefox41 --- fixed

People

(Reporter: mgoodwin, Assigned: mgoodwin)

References

Details

Attachments

(1 file, 1 obsolete file)

It would be useful to have telemetry on: 1) about:netError being seen for pin violations 2) users choosing to submit 3) users choosing to send automatically 4) errors encountered during send
Attached patch telemetry_for_error_report.patch (obsolete) (deleted) — Splinter Review
This adds telemetry for the TLS error reporting code. NEEDINFOing bsmedberg as per https://developer.mozilla.org/en-US/docs/Mozilla/Performance/Adding_a_new_Telemetry_probe since this adds a telemetry probe - Given https://bugzilla.mozilla.org/show_bug.cgi?id=846489#c74, I assume this will be fine.
Flags: needinfo?(benjamin)
Attachment #8609315 - Flags: review?(felipc)
Flags: needinfo?(benjamin)
Attachment #8609315 - Flags: feedback+
Are you a good reviewer for this sort of thing or should I bug someone else?
Flags: needinfo?(felipc)
Comment on attachment 8609315 [details] [diff] [review] telemetry_for_error_report.patch Review of attachment 8609315 [details] [diff] [review]: ----------------------------------------------------------------- The names around the UI_SHOWN and expanded could be improved a bit. The standard pageload triggers the TLS_ERROR_REPORT_TELEMETRY_UI_SHOWN metric, while there's an event called AboutNetErrorUIShown that triggers the TLS_ERROR_REPORT_TELEMETRY_UI_EXPANDED metric. Confusing.. I think the simplest would be to change your event name to AboutNetErrorUIExpanded. ::: browser/base/content/aboutNetError.xhtml @@ +112,5 @@ > .addEventListener('click', function togglePanelVisibility() { > var panel = document.getElementById('certificateErrorReportingPanel'); > toggleDisplay(panel); > + > + if (panel.style.display === 'block') { nit: our code style is to use " and ==, although I see some ' have already creeped in this file.
Attachment #8609315 - Flags: review?(felipc) → review+
Flags: needinfo?(felipc)
Feedback addressed, specifically: * replaced ' with " and === with == in the changes to aboutNetError.xhtml as per coding style. * Renamed the AboutNetErrorUIShown event to AboutNetErrorUIExpanded for greater clarity, as suggested.
Attachment #8609315 - Attachment is obsolete: true
Attachment #8617306 - Flags: review+
Attachment #8617306 - Flags: feedback+
(In reply to :Felipe Gomes from comment #3) > I see some ' have already > creeped in this file. Would you like me to do some cleanup in a followup bug for the other instances related to error reports?
Flags: needinfo?(felipc)
No, I don't think it's necessary.
Flags: needinfo?(felipc)
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: