Closed
Bug 1346196
Opened 8 years ago
Closed 8 years ago
URLCLASSIFIER_UPDATE_REMOTE_STATUS2 records values using empty keys
Categories
(Toolkit :: Safe Browsing, enhancement)
Toolkit
Safe Browsing
Tracking
()
RESOLVED
FIXED
mozilla55
Tracking | Status | |
---|---|---|
firefox55 | --- | fixed |
People
(Reporter: Dexter, Assigned: dimi)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
With bug 1334469 we're disallowing using empty keys to record data in Telemetry keyed histograms.
It seems that this histogram is recording values using empty keys (see bug 1334469 comment 20).
For some reason, |mTelemetryProvider| is empty [1]. We should fix the problem by using a non-empty key here and investigate why and empty key is used in the first place.
[1] - http://searchfox.org/mozilla-central/rev/7cb75d87753de9103253e34bc85592e26378f506/toolkit/components/url-classifier/nsUrlClassifierStreamUpdater.cpp#694
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → dlee
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•8 years ago
|
||
After discussing with Thomas, I think thomas make a good point that this may cause by CancelUpdate because in that case |mTelemetryProvider| is reset to empty[1] but onStartRequest will still be called.
[1] http://searchfox.org/mozilla-central/source/toolkit/components/url-classifier/nsUrlClassifierStreamUpdater.cpp#102
Comment hidden (mozreview-request) |
Comment 3•8 years ago
|
||
mozreview-review |
Comment on attachment 8847510 [details]
Bug 1346196 - URLCLASSIFIER_UPDATE_REMOTE_STATUS2 records values using empty keys.
https://reviewboard.mozilla.org/r/120504/#review122628
While there are probably edge cases where we will have an old telemetry provider lying around after an error, this looks fine because as far as I can see, we always get the right provider before we submit a telemetry probe.
::: commit-message-f9362:2
(Diff revision 1)
> +Bug 1346196 - URLCLASSIFIER_UPDATE_REMOTE_STATUS2 records values using empty keys. r?francois
> +mTelemetryProvider might be empty if |CancelUpdate| is called during update.
Not sure if this is required by mercurial, but in git, you need a blank line between the short description and the long description.
Attachment #8847510 -
Flags: review?(francois) → review+
Comment hidden (mozreview-request) |
Assignee | ||
Updated•8 years ago
|
Keywords: checkin-needed
Pushed by cbook@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/aecbad803701
URLCLASSIFIER_UPDATE_REMOTE_STATUS2 records values using empty keys. r=francois
Keywords: checkin-needed
Comment 6•8 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
You need to log in
before you can comment on or make changes to this bug.
Description
•