Commit Graph

84 Commits

Author SHA1 Message Date
Issei Horie
c4875c4ec4 Bug 1469522: Remove savedPings from simpleMeasurements. r=Dexter 2018-06-24 22:10:19 +09:00
Jan-Erik Rediger
acb91b41dd Bug 1470400 - Remove incorrect mention of retention time. r=Dexter
This was changed a while ago, but comments where never updated.
As it is configured by a constant it's easier to keep that docu only on
the constant.

MozReview-Commit-ID: 2MeRw5tnFqm

Differential Revision: https://phabricator.services.mozilla.com/D1805
2018-06-25 15:55:11 +00:00
Florian Quèze
f1a55f73f8 Bug 1440284 - change this.EXPORTED_SYMBOLS back to var EXPORTED_SYMBOLS in JS modules, r=mccr8. 2018-02-23 20:50:01 +01:00
Andrew McCreight
272cee1e65 Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian
This patch was autogenerated by my decomponents.py

It covers almost every file with the extension js, jsm, html, py,
xhtml, or xul.

It removes blank lines after removed lines, when the removed lines are
preceded by either blank lines or the start of a new block. The "start
of a new block" is defined fairly hackily: either the line starts with
//, ends with */, ends with {, <![CDATA[, """ or '''. The first two
cover comments, the third one covers JS, the fourth covers JS embedded
in XUL, and the final two cover JS embedded in Python. This also
applies if the removed line was the first line of the file.

It covers the pattern matching cases like "var {classes: Cc,
interfaces: Ci, utils: Cu, results: Cr} = Components;". It'll remove
the entire thing if they are all either Ci, Cr, Cc or Cu, or it will
remove the appropriate ones and leave the residue behind. If there's
only one behind, then it will turn it into a normal, non-pattern
matching variable definition. (For instance, "const { classes: Cc,
Constructor: CC, interfaces: Ci, utils: Cu } = Components" becomes
"const CC = Components.Constructor".)

MozReview-Commit-ID: DeSHcClQ7cG
2018-02-06 09:36:57 -08:00
Kris Maglione
0bb74efdf1 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Cosmin Sabou
f09d6d985d Backed out 3 changesets (bug 1431533) for Android mochitest failures on testEventDispatcher on a CLOSED TREE
Backed out changeset a1eca62826a1 (bug 1431533)
Backed out changeset 34c999fa006b (bug 1431533)
Backed out changeset e2674287e57f (bug 1431533)
2018-01-30 07:17:48 +02:00
Kris Maglione
fd67f090b2 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Brindusan Cristian
483ba301cb Backed out 2 changesets (bug 1431533) for ESlint failures on a CLOSED TREE
Backed out changeset 6e56f4c8843e (bug 1431533)
Backed out changeset 12fc4dee861c (bug 1431533)
2018-01-30 02:32:43 +02:00
Kris Maglione
683a97d172 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Mark Banner
e47ccbfec3 Bug 1411368 - Automatically fix no-multi-spaces issues raised when using ESLint 4. r=mossop
MozReview-Commit-ID: H5YVp3rnzGo
2017-10-26 11:47:01 +01:00
Dan Banner
5af4450327 Bug 1408777 - Automatically fix instances of missing semicolons in the tree. r=Standard8
MozReview-Commit-ID: Jm8BRgt6mIv
2017-10-15 20:50:39 +01:00
Chris H-C
6eb673a691 bug 1405299 - Key loadArchivedPing's stopwatches for re-entrancy r=Dexter
loadArchivedPing is asynchronous, so it may be re-entrant. Key the stopwatches
against the ping id so it measures what it should and stops complaining.

MozReview-Commit-ID: GdHH5N8B4V7
2017-10-11 12:53:37 -04:00
Sebastian Hengst
cbe95c3c78 Backed out changeset e993235fbdf3 (bug 1405299) for eslint failure at toolkit/components/telemetry/TelemetryStorage.jsm:706: Do not use String as a constructor. r=backout 2017-10-12 15:29:18 +02:00
Chris H-C
4c66a0eb76 bug 1405299 - Key loadArchivedPing's stopwatches for re-entrancy r=Dexter
loadArchivedPing is asynchronous, so it may be re-entrant. Key the stopwatches
against the ping id so it measures what it should and stops complaining.

MozReview-Commit-ID: GdHH5N8B4V7
2017-10-11 12:53:37 -04:00
Wes Kocher
ea3488f133 Merge inbound to central, a=merge
MozReview-Commit-ID: HpVAbc2vi78
2017-08-08 15:14:28 -07:00
dagasatvik
91d42b2553 Bug 1385820 - Enable the ESLint no-new-wrappers rule across mozilla-central; r=markh,standard8
MozReview-Commit-ID: FvJO3ibeiwg
2017-08-07 23:57:51 +05:30
Kate Ustiuzhanina
7aaca1f8aa Bug 1379125 - Track dicarded for size pending ping with TelemetryHealthPing. r=gfritzsche 2017-08-07 11:09:05 +01:00
Florian Quèze
b622c2b081 Bug 1368456 - Remove imports of Promise.jsm from Firefox, r=mconley. 2017-06-23 11:25:18 +02:00
Vedant Sareen
20ea75b667 Bug 1033860 - Add probes for time needed to load pending & archived pings from disk. r=chutten data-r=bsmedberg
Added "TELEMETRY_PENDING_LOAD_MS" & "TELEMETRY_ARCHIVE_LOAD_MS" as exponential histograms.
Added the functionality to save in these histograms the time it takes to load pending/archived pings respectively.
Added the file |test_TelemetryStorage.js| with tests for the added functionality.
2017-05-29 17:25:39 +05:30
Florian Quèze
ff53eb9a63 Bug 1353542 - massive script-generated patch converting Task.async and Task.spawn calls, and generators clearly identifiable as tasks, rs=Mossop. 2017-05-12 14:42:39 +02:00
Florian Queze
6cc0b6e992 Bug 1355056 - replace (function(args) { /* do stuff using this */ }).bind(this) with arrow functions, r=jaws. 2017-04-27 00:25:45 +02:00
Alisha
7fd23886d5 Bug 1346200 - Remove B2G code branches from Telemetry JS modules. r=chutten 2017-03-31 17:55:00 -04:00
Alessio Placitelli
911c61cd38 Bug 1348250 - Change TelemetryStorage to load crash pending pings outside of the profile. r=chutten
MozReview-Commit-ID: 1kqdGgEwXvI
2017-03-31 12:01:32 +02:00
Subhdeep Saha
2c32125386 Bug 1344743 - Update TelemetryStorage.jsm to async function & await. r=Dexter
MozReview-Commit-ID: 7stlyHefdbr
2017-03-10 14:59:49 +05:30
flyingrub
91ae22d9dd Bug 1342394 - Use standard pad functions in Telemetry JS modules r=gfritzsche
Replaced the handmade padding funciton by padStart

MozReview-Commit-ID: 6UyTo4OZYv4
2017-03-01 19:06:08 +01:00
Georg Fritzsche
1704939f79 Bug 1335372 - Reduce Telemetry log noise for trace level. r=dexter 2017-01-31 13:04:35 +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
Jared Wein
9f9dbce16a Bug 1328802 - Enable the no-unsafe-finally rule for eslint and fix the four errors that are triggered by it by moving the control flow statement outside of the finally block. r=mossop
MozReview-Commit-ID: 7UFBBpvptdd
2017-01-05 00:38:24 -05:00
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
12596ced47 Bug 1316882: Turn on space-infix-ops eslint rule. r=jaws
MozReview-Commit-ID: HBpjT2uHJaZ
2016-11-10 14:48:04 -08:00
Jared Wein
5edec1c0d9 Bug 1315013 - part 1, remove unnecessary double-slash comments that don't add value and look out of place with the spaced-comment eslint rule. r=mossop
MozReview-Commit-ID: HIUTSdkXxbY
2016-11-03 14:42:06 -04:00
Jared Wein
0c024fa9ca Bug 1312486 - Enable no-extra-boolean-cast, no-new-object, no-shadow-restricted-names, and spaced-comment rules for eslint. r=standard8
MozReview-Commit-ID: 7Gx90a5y8t6
2016-10-24 13:14:19 -04:00
Georg Fritzsche
67f240b0bf Bug 1295555 - Lower client-side ping archive retention period to 60 days. r=dexter 2016-10-06 11:07:04 +02:00
Jared Wein
4518d81cb5 Bug 1292042 - Enable the keyword-spacing rule for eslint. Most of this patch was autogenerated by 'eslint --fix'. Files with .xml extension needed to be changed by hand due to limitations of custom plugin. r=markh
MozReview-Commit-ID: EMjJ3yWt9Wt
2016-08-04 03:28:58 -04:00
Jared Wein
ebf1ccbe46 Bug 1291855 - Enable the no-else-return rule for eslint. r=Felipe,kmag,mossop
MozReview-Commit-ID: DYOmE6xwMJh
2016-08-03 18:54:59 -04:00
Ben Kelly
296e66199e Bug 1287833 Make TelemetryStorage intern the type string when building _archivedPings map. r=gfritzsche 2016-07-21 06:30:34 -07:00
Ben Kelly
5e2e5285a7 Bug 1279389 P3 Fix OS.File.DirectoryIterator leaks throughout tree. r=yoric 2016-06-28 18:47:55 -07:00
Iaroslav Sheptykin
17b9d2f2b5 Bug 1145188: Shifting TelemetrySession init control to TelemetryController (core). r=Dexter 2016-05-16 06: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
Harshit Harchani
2a24cdbae0 Bug 1245136 - Discard old-format pending Telemetry files. r=gfritzsche 2016-03-03 06:31:02 +05:30
Dave Townsend
a215a4a95a Bug 1245649: Turn on no-extra-semi. r=markh 2016-02-03 17:27:36 -08: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
Dave Townsend
66459b47af Bug 1229519: Fix toolkit/components/telemetry to pass eslint checks. r=gfritzsche 2015-12-03 10:02:02 -08:00
rthyberg
219aab6101 Bug 1190801 - Moved loadSessionData and split saveSessionData from TelemetrySession to TelemetryStorage. r=gfritzsche 2015-11-06 03:54:00 +01:00
Sanchit Nevgi
59ebec5a71 Bug 1205181 - Removed Deprecated.jsm import from TelemetryStorage.jsm. r=gfritzsche 2015-10-14 10:47:00 -07:00
Alessio Placitelli
c3c1243c36 Bug 1174674 - Always block Telemetry shutdown on pending ping writes. r=gfritzsche 2015-10-02 06:35:00 +02: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