Closed Bug 1521556 Opened 5 years ago Closed 5 years ago

Canary client ID in aborted-session pings

Categories

(Toolkit :: Telemetry, enhancement, P1)

enhancement
Points:
2

Tracking

()

RESOLVED FIXED
mozilla67
Tracking Status
firefox67 --- fixed

People

(Reporter: janerik, Assigned: janerik)

Details

Attachments

(1 file)

Looks like we still get a lot of pings with canary client IDs with reason "aborted-session".

Explanation on how this can happen:

  • User disables Telemetry
  • Telemetry still writes aborted-session pings every few minutes to disk as normal (main pings with reason "aborted-session")
  • Firefox instance is killed/aborted, aborted-session ping remains
  • User re-enables Telemetry
  • On next start unsent aborted-session file is detected and send.

We should either avoid writing the aborted-session ping at all or clear it out when enabling Telemetry again.

Points: --- → 2
Priority: P2 → P1

The aborted-sessions ping is written periodically, even when Telemetry
upload is enabled (and thus the profile has a canary client ID).
On later starts, if this file exists, it is read and send if upload is enabled
(which could have happened in the previous session or by changing prefs.js).

If we now detect that it contains the canary client ID we avoid sending it
and simply remove the file from disk.

The attached patch will block aborted-session pings to go out with a canary client ID.
I still wonder if we should catch this before sending any ping.

bug 1490668 in other words?

Yes.

Pushed by jrediger@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/bd47fa49ab01
Don't send aborted-session with a canary client ID r=chutten
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla67
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: