Closed
Bug 949775
Opened 12 years ago
Closed 12 years ago
UITelemetry should drop events on the floor if telemetry is disabled
Categories
(Toolkit :: Telemetry, defect)
Toolkit
Telemetry
Tracking
()
RESOLVED
FIXED
mozilla29
People
(Reporter: rnewman, Assigned: rnewman)
References
Details
Attachments
(1 file, 1 obsolete file)
|
5.81 KB,
patch
|
mfinkle
:
review+
|
Details | Diff | Splinter Review |
No sense building up a big list of events that the user doesn't want to record or submit.
| Assignee | ||
Comment 1•12 years ago
|
||
| Assignee | ||
Updated•12 years ago
|
Assignee: nobody → rnewman
Status: NEW → ASSIGNED
Comment 2•12 years ago
|
||
Comment on attachment 8346934 [details] [diff] [review]
UITelemetry should drop events on the floor if telemetry is disabled.
Just a note. Let's not add UITelemetry.uninit() because:
1. We don't want to add more to browser.js
2. Shutdown will likely never, ever be called in Fx for Android
3. We can just listen for "profile-before-change" which many JSMs use as a "shutdown is near" flag. Some XPCOM components use "xpcom-shutdown" but it fires late and I think "profile-before-change" is more typical for JSM/JS code.
https://developer.mozilla.org/en-US/docs/Observer_Notifications#Application_shutdown
| Assignee | ||
Comment 3•12 years ago
|
||
(In reply to Mark Finkle (:mfinkle) from comment #2)
> 3. We can just listen for "profile-before-change" which many JSMs use as a
> "shutdown is near" flag.
WFM!
| Assignee | ||
Comment 4•12 years ago
|
||
| Assignee | ||
Updated•12 years ago
|
Attachment #8346934 -
Attachment is obsolete: true
| Assignee | ||
Comment 5•12 years ago
|
||
Comment on attachment 8347029 [details] [diff] [review]
UITelemetry should drop events on the floor if telemetry is disabled.
Might as well put this in for review, save it from sitting here.
Attachment #8347029 -
Flags: review?(mark.finkle)
Comment 6•12 years ago
|
||
Comment on attachment 8347029 [details] [diff] [review]
UITelemetry should drop events on the floor if telemetry is disabled.
>diff --git a/toolkit/components/telemetry/UITelemetry.jsm b/toolkit/components/telemetry/UITelemetry.jsm
>+ observe: function(subject, topic, data) {
aSubject, aTopic and aData
(I know you dislike it, but it's the existing style in this file. You can curse me later.)
>+ uninit: function() {
>+ },
Remove
Attachment #8347029 -
Flags: review?(mark.finkle) → review+
| Assignee | ||
Comment 7•12 years ago
|
||
Target Milestone: --- → mozilla29
| Assignee | ||
Comment 8•12 years ago
|
||
Preprocessing didn't work for some reason, so I backed this out.
https://hg.mozilla.org/integration/fx-team/rev/de09aa9a5c09
| Assignee | ||
Comment 9•12 years ago
|
||
Relanded with UITelemetry.jsm added to the preprocessed module list.
https://hg.mozilla.org/integration/fx-team/rev/837203a4e076
Comment 10•12 years ago
|
||
Backed out again in https://hg.mozilla.org/integration/fx-team/rev/23dffe2643bc for xpcshell bustage a la https://tbpl.mozilla.org/php/getParsedLog.php?id=32140627&tree=Fx-Team
Comment 11•12 years ago
|
||
| Assignee | ||
Comment 12•12 years ago
|
||
This time I even had a Try build.
https://hg.mozilla.org/integration/fx-team/rev/cb31b40dd8f3
Comment 13•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•