Commit Graph

3558 Commits

Author SHA1 Message Date
John Dorlus
2059750e7a Bug 1301781 - Add test harness for telemetry tests r=ato
These tests are for the testing of the telemetry client. The tests
spin up an http server to capture ping data sent from firefox. The test
test_ping_server_received_ping tests that the ping server is up and running
and that the harness properly waits for the ping data.

MozReview-Commit-ID: 5kIjqgX3YiW
2017-03-29 17:10:52 -04:00
Robert Helmer
c349eb2f59 Bug 1357460 - add isWebExtension to Telemetry Environment r=Dexter,kmag
MozReview-Commit-ID: lzeHG7nXhf
2017-04-18 20:08:48 -07:00
Robert Helmer
eda64762b2 Bug 1357460 - add isWebExtension to Telemetry Environment collection docs r=bsmedberg
MozReview-Commit-ID: 36QAFhKlKfh
2017-04-18 10:00:02 -07:00
Mark Banner
ca95cdd557 Bug 1348097 - Fix intermittent failures caused by Experiments.jsm by ensuring the preference monitoring is in sync. r=gfritzsche
Change the ExperimentsService to get the current value of the preferences (since it only uses them once or twice), so that they match the values in Experiments, and avoid differences causing promises to be rejected in the updateManifest call.
Also fix Experiments to correctly re-enable itself when toolkit.telemetry.enabled is changed from false to true (also fixes bug 1232648).
Finally, add a catch for a promise when calling updateManifest so that we don't get an uncaught promise exception.

MozReview-Commit-ID: GD6gfcRSgbx
2017-04-19 12:06:16 +01:00
Florian Queze
451928e614 Bug 1356569 - Remove notifyObservers' last parameter when it is falsy, r=jaws. 2017-04-14 21:51:39 +02:00
Florian Queze
d3c36892fa Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Sebastian Hengst
4cd95d4a02 Backed out changeset 18d45aa984d6 (bug 1355161) 2017-04-14 23:39:23 +02:00
Sebastian Hengst
42670ceca0 Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout 2017-04-14 23:39:22 +02:00
Sebastian Hengst
f75839c723 Backed out changeset 55f3df15eaa6 (bug 1356569) 2017-04-14 23:39:17 +02:00
Florian Queze
61aabdf237 Bug 1356569 - Remove notifyObservers' last parameter when it is falsy, r=jaws. 2017-04-14 21:51:39 +02:00
Florian Queze
9b4f73599f Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Florian Queze
35cd8ba883 Bug 1355161 - script-generated patch to replace .{currentThread,mainThread}.dispatch(..., Ci.nsIThread.DISPATCH_NORMAL) with .dispatchToMainThread(...), r=froydnj. 2017-04-14 18:29:12 +02:00
Mark Banner
80edc06cf5 Bug 1346825 - Add Screenshot's disabled preferences to telemetry reporting. r=bsmedberg
MozReview-Commit-ID: IyvMCoU6Wn4
2017-03-31 14:14:58 +01:00
Wes Kocher
1df124f305 Merge inbound to central, a=merge
MozReview-Commit-ID: JGfQoBJy2jt
2017-03-24 17:17:27 -07:00
Carsten "Tomcat" Book
6a90d0370d Merge mozilla-central to mozilla-inbound 2017-03-24 14:29:00 +01:00
Federico Padua
d28d150c61 Bug 1337022 - Fix the regex in the Telemetry event parser. r=Dexter
This patch fixes the regex defined by IDENTIFIER_PATTERN in
toolkit/components/telemetry/parse_events.py to be less strict and fixes the
relative documentation.
To be precise, before this fix, the regex did not allow the category "ui" (which is described
in the documentation at the webpage
https://gecko.readthedocs.io/en/latest/toolkit/components/telemetry/telemetry/collection/events.html)
to be matched so the documentation was wrong.
The reason for that was that the regex required at least one extra character or
number to be in the string, so for example "uig" would have matched.
With this fix the category "ui" is allowed and matched by the new regex and the documentaion
(https://gecko.readthedocs.io/en/latest/toolkit/components/telemetry/telemetry/collection/events.html#limits)
is updated to reflect the change.

MozReview-Commit-ID: ID2aKOM1v7
2017-03-17 11:59:17 +01: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
Wes Kocher
f0eabd8bb7 Merge inbound to central, a=merge
MozReview-Commit-ID: 6od53T3ozcm
2017-03-23 16:15:37 -07:00
Carsten "Tomcat" Book
626d44b38b Merge mozilla-central to mozilla-inbound 2017-03-23 13:57:16 +01:00
Carsten "Tomcat" Book
758a758bd5 merge mozilla-inbound to mozilla-central a=merge 2017-03-23 13:44:09 +01:00
Carsten "Tomcat" Book
6405e0b39a Backed out changeset 9476c9a5f4c9 (bug 1349389) for causing dt4 perma failures 2017-03-23 10:47:18 +01:00
Florian Quèze
c31ae0841d Bug 1345080 - bump the max version of the SEARCH_SERVICE_ENGINE_COUN probe, r=rweiss. 2017-03-15 15:18:03 +01:00
Konstantin
8d4f6174e7 Bug 1344853 - Enable flake8 rule E127: "continuation line over-indented for visual indent". r=Dexter
MozReview-Commit-ID: HdEe1UCeKOh
2017-03-22 23:38:19 +03:00
Timothy Nikkel
db9df154e7 Bug 1347302. Add animated image specific probes for several imagelib telemetry probes. r=aosmond f=bsmedberg 2017-03-23 00:02:54 -05:00
djmdev
5157206b3b Bug 1344737 - Update TelemetrySession.jsm to async function & await. r=chutten
Updated Task.async, Task.spawn and yield to async and await.
2017-03-12 11:31:38 +05:30
Wei-Cheng Pan
41952f0b5c Bug 1341531 - Measure input event dispatching latency. (*_EVENT_RECEIVED_MS) r=smaug
This patch measures the time from an input event creation, to it been
dispatched to PresShell, but just before any handler been executed.

MozReview-Commit-ID: 6ZYra7YYICY
2017-02-08 15:11:53 +08:00
Andrew McCreight
97d1bf8269 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
Carsten "Tomcat" Book
6610746b51 merge mozilla-inbound to mozilla-central a=merge 2017-03-22 14:26:27 +01:00
Mark Banner
ec9074e132 Bug 1347712 - Change the testing configurations into ESLint configurations within eslint-plugin-mozilla - automatically update .eslintrc.js test config files for new config locations. r=jaws
MozReview-Commit-ID: LH0CQOPfoe6
2017-03-20 12:36:37 +01:00
Iris Hsiao
13ba8c0abf Backed out changeset 140374af2570 (bug 1341531) for build bustage 2017-03-22 15:52:39 +08:00
Gabriele Svelto
30d88a559a Bug 1322611 - After a crash compute the SHA256 hash of a minidump and attach it to the crash ping; r=Ted, nchen
This patch changes the crashreporter client code as well as the crash service
code to compute a SHA256 hash of a crash' minidump file and add it to the
crash ping. The crash service code computes the hash on the fly before handing
over the crash to the crash manager; the crash manager will then add it to the
crash ping. The crashreporter client on the other hand sends the hash via the
ping it generates but it also adds it to the event file so that the crash
manager can pick it up and send it along with its own crash ping. On Fennec
the crashreporter activity takes care of computing the hash.

SHA256 hash computation uses nsICryptoHash in the crash service, the
java.security.MessageDigest class in Fennec, the bundled NSS library in the
crashreporter when running on Windows and Mac and the system-provided NSS
library under Linux. The latter is required because the crashreporter client
uses the system curl library which is linked to NSS and which would thus clash
with the bundled one if used together.

This patch introduces two new methods for the nsICrashService interface:
|getMinidumpForID()| and |getExtraFileForID()|, these reliably retrieve the
.dmp and .extra files associated with a crash and ensure the files exist
before returning. These new methods are used in the CrashService for
processing and will become the only way to reliably retrieve those files
from a crash ID.

MozReview-Commit-ID: 8BKvqj6URcO
2017-02-16 07:36:57 +01:00
Wes Kocher
1ae5314550 Merge m-c to inbound, a=merge
MozReview-Commit-ID: GjXiiENYBmx
2017-03-21 16:20:08 -07:00
Wes Kocher
6342adb165 Merge inbound to central, a=merge
MozReview-Commit-ID: FKkx5SygvHz
2017-03-21 16:08:32 -07:00
Wes Kocher
ad6e14c46f Backed out 2 changesets (bug 1345894) for build bustage a=backout CLOSED TREE
Backed out changeset 6ad5c0f245e2 (bug 1345894)
Backed out changeset ec18ee811b9a (bug 1345894)

MozReview-Commit-ID: 3uonLJOmEAC
2017-03-21 14:35:19 -07:00
Sebastian Hengst
52be8d63a2 Bug 1345894 - Set expiry for plugin notification/infobar telemetry and make it opt-out for monitoring Flash CTP rollout: Follow-up: Remove histograms from whitelist of email-less histograms. r=bustage-fix on a CLOSED TREE 2017-03-21 22:25:16 +01:00
Carsten "Tomcat" Book
679a4b86b3 Merge mozilla-central to mozilla-inbound 2017-03-21 12:07:49 +01:00
Carsten "Tomcat" Book
31efc35cdf Backed out changeset 5733e0b0e096 (bug 1120409) for causing frequent timeouts in test_XHR_timeout.html 2017-03-21 11:28:38 +01:00
Paavini Nanda
8b72dcd8ba Bug 1344852: Enable flake8 rule W602: "deprecated form of raising exception". r=dexter 2017-03-15 17:18:52 +05:30
Benjamin Smedberg
563b217863 Bug 1345894 - Set expiry for plugin notification/infobar telemetry and make it opt-out for monitoring Flash CTP rollout, data-r=rweiss
MozReview-Commit-ID: IiEc3BOKeP4
2017-03-09 10:31:52 -05:00
Gabriel Luong
c4cd6e2ffb Bug 1347552 - Part 2: Added missing alert_emails and bug_numbers fields to DEVTOOLS_LAYOUTVIEW_TIME_ACTIVE_SECONDS telemetry. r=me 2017-03-21 15:22:24 -04:00
Gabriel Luong
5cd20e9589 Bug 1347552 - Add telemetry for the Layout panel. r=sole, bsmedberg 2017-03-21 15:06:44 -04:00
Jan Henning
e9c438ff17 Bug 1345460 - Implement FX_SANITIZE telemetry on Android. r=liuche
To gauge the impact of bug 1343995 on perceived shutdown times, we want to measure how long sanitising actually takes in practice on Android.

MozReview-Commit-ID: 3gSfT8IoO70
2017-03-08 20:17:06 +01:00
David Teller
80bf862608 Bug 1348883 - Clarifying histogram DOM_SCRIPT_SRC_ENCODING;r=francois
MozReview-Commit-ID: KT2zgsuoeAT
2017-03-20 16:57:14 +01:00
Federico Padua
7036c21f0b Bug 1344833 - Enable flake8 rule E128: "continuation line under-indented for visual indent". r=Dexter
This patch enables flake8 rule E128:
"continuation line under-indented for visual indent" in toolkit/components/telemetry
by removing the relative E128 entry from toolkit/components/telemetry/.flake8
and fixing the files for which the E128 error was reported.
Precisely 10 errors violating E128 rule were found and solved.

MozReview-Commit-ID: 4sNXIxGFJQN
2017-03-18 21:18:27 +01:00
djmdev
5e74028e3a Bug 1346714 - Consolidated session change throttling intervals. r=gfritzsche
Used MIN_SUBSESSION_LENGTH_MS in both places.
2017-03-15 21:09:15 +05:30
Gregory Moore
1a10eeec68 Bug 1120409 - nsITelemetry.histogramSnapshots will no longer return keyed histograms. r=gfritzsche 2017-02-22 14:53:56 -08:00
Sebastian Hengst
bcb685d9e1 merge mozilla-central to autoland. r=merge a=merge 2017-03-18 16:35:12 +01:00
Sebastian Hengst
6978d4ed55 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 8nsStTZt40O
2017-03-18 16:24:53 +01:00
Ehsan Akhgari
2b185a29a4 Bug 1347400 - Add telemetry for imgLoader::LoadImage(); r=mystor,francois 2017-03-17 21:19:21 -04:00
Deepa
8e003ca34a Bug 1344741 - Update TelemetrySend.jsm to async function & await. r=gfritzsche 2017-03-17 22:26:25 +05:30