Commit Graph

84 Commits

Author SHA1 Message Date
mcfuller
fb5e11e9f1 Bug 1354039 - Remove unused PromiseUtils.jsm import from TelemetryController.jsm and TelemetryEnvironment.jsm. r=gfritzsche 2017-04-07 00:34:44 -07:00
djmdev
c93799501b Bug 1344738 - Updated TelemetryController.jsm to async function & await. r=dexter
Replaced Task.async and yield with async and await
2017-03-27 15:15:02 +05:30
Alessio Placitelli
d0dc520ab5 Bug 1336360 - Use the PingSender for sending pings when the browser shuts down. r=chutten,gsvelto
MozReview-Commit-ID: 6bNQs87UQ9m
2017-02-23 14:58:02 +01:00
Gabriele Svelto
ad6e2212ea Bug 1345153 - When the pingsender fails to send a ping, persist it to disk so that it can be sent later via regular telemetry; r=chutten,ted
Currently we hand over a crash ping to the pingsender via a pipe; if the
pingsender fails to send the ping we rely on the CrashManager assembling and
sending one instead. Since the crashmanager is not aware of whether the ping
was sent or not this causes duplication on the server side. To solve this
problem we save the ping to disk instead, read it from the pingsender and
delete the file only if the ping was sent. In this scenario the CrashManager
will know that a ping was already sent and will not send a new one.

This patch removes all the code used to deal with pipes between the telemetry,
crashreporter and pingsender code and also tries to cut down the amount of
platform-specific code we have in this machinery.

MozReview-Commit-ID: ASm2jnDagCK
2017-03-27 12:38:39 +02:00
Andrew McCreight
b5b828733f Bug 1349389 - Lazily load osfile.jsm in telemetry. r=gfritzsche
Also, avoid two entirely unused imports.

This avoids loading the various osfile jsms at startup.

The additional shim method for sysinfo is needed in
test_TelemetryEnvironment.js because delaying the intialization of
osfile results in loading osfile_shared_allthreads.jsm after the shim
sysinfo has been added, which initializes
Ci.nsIOSFileConstantsService, which calls into sysinfo in
InitOSFileConstants().

MozReview-Commit-ID: D7IWk20TRt1
2017-03-21 14:55:39 -07:00
Gabriele Svelto
4ff26d2d74 Bug 1341349 - Enable sending the crash ping from the crashreporter client only when the overall configuration would allow pings to be sent r=Dexter,gfritzsche
The crashreporter client will send a crash ping autonomously only when it
finds a valid TelemetryServerUrl annotation. This patch makes this annotation
conditional on all the preferences that regulate sending pings (including
official telemetry flags) and prevents it from sending pings before the user
has been notified of the privacy policy.

This is achieved by adding a new _annotateCrashReport() method to the
TelemetrySend obejct which can be called before we've initialized the rest of
the components. It is invoked manually early in the startup process so that
startup crashes are properly annotated, then it's invoked again when the user
is informed of the privacy policy as well as when one of the relevant
preferences is altered. This ensures that the annotations are stripped if the
user disables uploading pings without having to restart Firefox.

MozReview-Commit-ID: 2DKnoWGT1Bp
2017-03-08 15:00:26 +01:00
Marco Castelluccio
2f3e68079b Bug 1330833 - Add the new "modules" (DLLs) ping type. r=Dexter,mstange,jorendorff, data-review=bsmedberg 2017-02-18 14:17:30 +00:00
Wes Kocher
3f83b41f7e Backed out 2 changesets (bug 1330833) for windows 64 xpcshell failures a=backout
Backed out changeset 466565fa382a (bug 1330833)
Backed out changeset 927194e7769d (bug 1330833)

MozReview-Commit-ID: GB4KsH29xYC
2017-02-16 17:20:54 -08:00
Marco Castelluccio
a7e3f95164 Bug 1330833 - Add the new "modules" (DLLs) ping type. r=Dexter,mstange,jorendorff, data-review=bsmedberg 2017-02-16 17:09:32 +00:00
Gabriele Svelto
83cc3c6b65 Bug 1310703 - Use the ID generated by the crashreporter client when sending a crash ping so that server-side deduplication works correctly; r=Dexter
MozReview-Commit-ID: HfyKTru8QgN
2017-01-16 18:17:02 +01:00
Jared Wein
0ec522d5b6 Bug 1331661 - Enable the 'quotes' rule for eslint and fix most of the errors with --fix. r=Gijs
MozReview-Commit-ID: 6tv0Z06CO4a
2017-01-17 09:48:17 -06:00
Vedant Sareen
cf73a09e9e Bug 1301311 - Cleanly reject pings that are submitted too late in shutdown. r=Dexter
Added |_shuttingDown| boolean flag, which is initialized to false and is set to true when Firefox shuts down.
This allows rejecting pings sent after shutdown by checking the value of this flag.
Also added a new test that shuts down Telemetry using |yield TelemetryController.testShutdown()| and then tries sending a ping to it.
2017-01-05 22:32:01 +05:30
Jared Wein
e3149c378f Bug 1325464 - Enable object-shorthand rule and run 'mach eslint --fix' with the rule enabled. r=MattN
MozReview-Commit-ID: 7E7LPorrEje
2016-12-29 18:34:54 -05:00
Wes Kocher
2d7553dcfd Backed out 3 changesets (bug 1325464) for xpcshell failures a=backout
Backed out changeset 562ddc32cc21 (bug 1325464)
Backed out changeset cd10db6087dd (bug 1325464)
Backed out changeset 4079437c4648 (bug 1325464)
2016-12-29 14:05:44 -08:00
Jared Wein
34e228f767 Bug 1325464 - Enable object-shorthand rule and run 'mach eslint --fix' with the rule enabled. r=MattN
MozReview-Commit-ID: 8WoGr8i6oCR
2016-12-29 15:20:47 -05:00
Dave Townsend
e7b1b3284f Bug 1316882: Turn on space-before-function-paren eslint rule (toolkit). r=jaws
MozReview-Commit-ID: FGFwg6TYkvm
2016-11-11 15:22:34 -08:00
Dave Townsend
dc3810c548 Bug 1314343: Turn on no-unreachable in eslint. r=standard8
Unreachable code can be a sign of a mistake so we should turn this rule on.

MozReview-Commit-ID: LQphsNL7HBX
2016-11-01 10:58:35 -07:00
rthyberg
88f6f76ff0 Bug 1292226 - Reject non-object ping payloads submitted to Telemetry. r=gfritzsche, data-r=bsmedberg 2016-09-22 18:29:34 +01:00
Alessio Placitelli
07bcf0681d Bug 1233986 - Move clientId loading, generation and serialization earlier during startup. r=gfritzsche, data-review=bsmedberg
MozReview-Commit-ID: LgBGLY8gbLB
2016-05-23 06:09:00 +02:00
Carsten "Tomcat" Book
84d078a3b8 Backed out changeset bca07aa9ac51 (bug 1233986) on developers request 2016-06-27 13:19:47 +02:00
Alessio Placitelli
e8c2e98d0d Bug 1233986 - Move clientId loading, generation and serialization earlier during startup. r=gfritzsche, data-review=bsmedberg
MozReview-Commit-ID: LgBGLY8gbLB
2016-05-23 06:09:00 +02:00
Carsten "Tomcat" Book
2d7a6d81d9 Backed out changeset 47cccae80d80 (bug 1233986) for test failures in test_TelemetryController.js 2016-06-22 11:46:21 +02:00
Alessio Placitelli
8f471c344c Bug 1233986 - Move clientId loading, generation and serialization earlier during startup. r=gfritzsche, data-review=bsmedberg
MozReview-Commit-ID: LgBGLY8gbLB
2016-05-23 06:09:00 +02:00
Iaroslav Sheptykin
17b9d2f2b5 Bug 1145188: Shifting TelemetrySession init control to TelemetryController (core). r=Dexter 2016-05-16 06:57:00 +02:00
Sebastian Hengst
9c6add3610 Backed out changeset 9e90db2262ac (bug 1145188) for frequent Android 4.2 x86 opt Sets(S4) failure in test_TelemetrySession.js. r=backout 2016-04-29 21:30:50 +02:00
Georg Fritzsche
e37d614132 Bug 1268581 - Reduce Telemetry initialization delay in tests. r=dexter 2016-04-29 15:16:22 +02:00
Iaroslav Sheptykin
87be9cbb55 Bug 1145188: Shifting TelemetrySession init control to TelemetryController (core). r=Dexter 2016-04-17 11:57:00 +02:00
Dave Townsend
769fc8f245 Bug 1257246: Update toolkit for eslint 2. r=Gijs
Most of this is fixing functions that in some cases return a value but then
can also run to completion without returning anything. ESLint 2 catches this
where previous versions didn't. Unless there was an obvious other choice I just
made these functions return undefined at the end which is effectively what
already happens.

MozReview-Commit-ID: KHYdAkRvhVr
2016-04-05 11:33:48 -07:00
Sylvestre Ledru
a3d7a97f35 Bug 1250897 - Add build number data in Telemetry pings r=gfritzsche
MozReview-Commit-ID: 2CB5CMGQN6G
2016-02-26 14:04:12 +01:00
Alessio Placitelli
a14d03b41a Bug 1236580 - Remove the IS_UNIFIED_TELEMETRY constant and the related preferences. r=gfritzsche 2016-01-27 01:03:00 +01:00
chaithanya
6530aa0ef5 Bug 1184458- TelemetryEnvironment needs to shut down properly r=gfritzsche 2016-01-27 09:57:00 +01:00
Alessio Placitelli
f0e10564a9 Bug 1236588 - Remove the storage DB for HealthReport from user profiles. r=gfritzsche 2016-01-12 08:50:00 +01:00
Alessio Placitelli
ea8833fe9c Bug 1234526 - Remove unused healthreporter prefs. r=gfritzsche 2016-01-05 06:41:00 +01:00
rthyberg
6f5537394e Bug 1179209 - Don't throttle environment changes until there are any environment-change listeners. r=dexter 2015-12-04 00:32:00 +01:00
Georg Fritzsche
f7cf0e8613 Bug 1200164 - Only do isOfficialTelemetry checks for Telemetry uploads. r=dexter 2015-12-18 19:35:05 +07:00
Alessio Placitelli
75b5952485 Bug 1221958 - Make TelemetryController.enableTelemetryRecording pref checks more robust. r=gfritzsche 2015-11-17 07:42:00 +01:00
rthyberg
d765d526e3 Bug 1222042 - Dont try to show ping data in about:telemetry if Telemetry is disabled. r=dexter 2015-11-16 14:27:00 +01:00
Tom Zhang
415c96689f Bug 1225103 - Clarity change to debug message to reflect actual function called. r=dexter 2015-11-16 21:19:00 +01:00
Stuart
052927d064 Bug 1224135 - Updating the comment for assemblePing. r=dexter 2015-11-16 04:58:00 +01:00
Tom Zhang
a1aacb7730 Bug 1223423 - Remove |testOnly| from |TelemetryController.submitExternalPing|. r=Dexter 2015-11-15 15:03:11 +01:00
Sanchit Nevgi
3922953fb3 Bug 1152255 - Removed Telemetry.asyncFetchTelemetryData call in TelemetryController.jsm. r=Dexter 2015-11-07 02:26:00 +01:00
Alessio Placitelli
51748d69e3 Bug 1174674 - Clear out all pending pings when FHR is deactived. r=gfritzsche 2015-10-02 05:50:00 +02:00
Iaroslav (yarik) Sheptykin
808255ed7c Bug 1206085: Replacing preprocessor directives with AppConstants in Telemetry modules. r=gfritzsche 2015-09-23 11:46:56 +02:00
Dave Townsend
f657500ff0 Bug 1192924: Expose the update URL formatting code a new UpdateUtils module. r=rstrong
The GMP manager uses a copy of the update service's url formatting code and has
since fallen out of sync. We'll also want to use the same formatting code for
the system add-on update checks so this just exposes it in a shared API.

I've moved the contents of UpdateChannel.jsm to UpdateUtils.jsm and exposed
formatUpdateURL there as well as a few properties that the update service still
needs access to.

UpdateUtils.UpdateChannel is intended to be a lazy getter but isn't for now
since tests expect to be able to change the update channel at runtime.
2015-09-14 11:04:19 -07:00
Wes Kocher
69b522405d Backed out 3 changesets (bug 1192924) for Android bustage CLOSED TREE
Backed out changeset 30d612836685 (bug 1192924)
Backed out changeset a6860f880e01 (bug 1192924)
Backed out changeset 10e1fa2cc23a (bug 1192924)
2015-09-22 11:02:55 -07:00
Dave Townsend
eef8701d19 Bug 1192924: Expose the update URL formatting code a new UpdateUtils module. r=rstrong
The GMP manager uses a copy of the update service's url formatting code and has
since fallen out of sync. We'll also want to use the same formatting code for
the system add-on update checks so this just exposes it in a shared API.

I've moved the contents of UpdateChannel.jsm to UpdateUtils.jsm and exposed
formatUpdateURL there as well as a few properties that the update service still
needs access to.

UpdateUtils.UpdateChannel is intended to be a lazy getter but isn't for now
since tests expect to be able to change the update channel at runtime.
2015-09-14 11:04:19 -07:00
Shu-yu Guo
37989840cd Bug 1202902 - Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff) 2015-09-15 11:19:45 -07:00
André Reinald
0850396f2e Bug 1197292 - Read delays from prefs, backup to defaults if not set. Shorter delays are useful to accelerate test cycles. r=gfritzsche 2015-08-24 16:50:51 +02:00
Georg Fritzsche
21ae4d1537 Bug 1191912 - Part 2 - Enable opt-out Telemetry for a 5% sample of release users. r=rvitillo 2015-08-11 12:17:30 +02:00
Georg Fritzsche
91a7206773 Bug 1191912 - Part 1 - Move client id caching to ClientID.jsm. r=rvitillo 2015-08-11 12:17:29 +02:00