Commit Graph

4682 Commits

Author SHA1 Message Date
Peter Van der Beken
972562411b Bug 888600 - Move ContentFrameMessageManager to WebIDL. Part 6: Mark some IDL interfaces as non-scriptable. r=bz. 2018-02-22 20:22:29 +01:00
Franziskus Kiefer
52e4b4abf3 Bug 1435713 - collect cert fingerprints for failed CS verifications, r=keeler,francois
Reviewers: keeler, francois

Reviewed By: keeler, francois

Subscribers: francois, ulfr

Bug #: 1435713

Differential Revision: https://phabricator.services.mozilla.com/D623
2018-02-28 09:26:30 +01:00
Aditya Bharti
c1c7c6ee3d Bug 1428893 - Allow JSHistogram APIs to accumulate multiple values in one call. r=chutten
This patch adds support for value arrays to the internal_JSHistogram_Add method.

The histogram.add() js method can now be called with a single value or an array of values.
The accumulation is "all-or-nothing", i.e. if there is even a single invalid value in the
array, then nothing is accumulated.

The logic for type checking arguments before accumulation has been moved into a separate
function: internal_JSHistogram_CoerceValue. This function can also be used for
internal_JSKeyedHistogram_* methods in the future. This patch includes logic for clamping
values greater than UINT32_MAX to UINT32_MAX.

Added xpcshell tests in telemetry/tests/unit/test_TelemetryHistograms.js to check functionality.
2018-02-24 02:11:41 +05:30
Paul Adenot
2009beeafc Bug 1443528 - Extend Telemetry::AUDIOSTREAM_BACKEND_USED telemetry probe. r=jya
MozReview-Commit-ID: 7Dg5HIL8Sxw
2018-03-06 16:59:52 +01:00
J. Ryan Stinnett
0649ffa4d2 Bug 1442923 - Remove expired View Source telemetry. r=bdahl
MozReview-Commit-ID: FXbkw6jUGbw
2018-03-05 11:29:51 -06:00
Chris H-C
4f4493bc30 bug 1435753 - Resume collection of extended data from Release Candidate builds on beta, too r=froydnj,gfritzsche
Before Firefox 58 we collected extended collection from users on nightly,
aurora, and beta. Then we had to change things (see bug 1406391).

In doing so, we accidentally stopped receiving data from "release candidate"
beta builds. This patch resumes that collection by detecting an RC build as
having a MOZ_UPDATE_CHANNEL of "release", but an app.update.channel of "beta"

MozReview-Commit-ID: 3EzzDtQj8Kw
2018-02-27 14:12:43 -05:00
Cosmin Sabou
02649d3b7d Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-02-28 23:51:42 +02:00
Chris H-C
05f6065851 bug 1440832 - Only log when clamping on debug builds r=gfritzsche
MozReview-Commit-ID: qkKTHH4DNU
2018-02-28 13:35:32 -05:00
Jon Coppeard
5a3b63d554 Bug 1441152 - Remove obsolete GC_MAX_PAUSE_MS telemetry histogram r=sfink 2018-02-27 10:19:48 +00:00
Tiberius Oros
7c41e9bff0 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-02-27 00:22:22 +02:00
Tiberius Oros
a9a38cae00 Merge inbound to mozilla-central. a=merge 2018-02-27 00:19:49 +02:00
Mark Banner
910da570a0 Bug 1440379 - Tidy up ESlint no-unused-vars definitions wrt Ci/Cu/Cr/Cc usage for varsIgnorePattern. r=florian
MozReview-Commit-ID: HmliR8iNRDq
2018-02-22 16:55:36 +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
Edouard Oger
ea458aed60 Bug 1363924 p3 - Record commands telemetry events. r=Grisha,tcsc
MozReview-Commit-ID: 2IRAYdN7BI4
2018-02-02 13:58:43 -05:00
Csoregi Natalia
368e91a2ca Backed out 3 changesets (bug 1363924) for android-test failures. CLOSED TREE
Backed out changeset 08747734c0fd (bug 1363924)
Backed out changeset fbba0f584237 (bug 1363924)
Backed out changeset d30f27293117 (bug 1363924)
2018-02-26 20:46:49 +02:00
Edouard Oger
d142ce2935 Bug 1363924 p3 - Record commands telemetry events. r=Grisha,tcsc
MozReview-Commit-ID: 2IRAYdN7BI4
2018-02-02 13:58:43 -05:00
f14a523ed5 Bug 1439347 - Extend telemetry for TFO and http-auth dialog. r=valentin 2018-02-19 06:05:00 +02:00
Gijs Kruitbosch
4d1843fa65 Bug 1350349 - collect data for feed reader usage to evaluate its future, r=mak,data-review=liuche
This patch adds data collection for 6 different data points:
- number of live bookmarks the user has
- number of times the user subscribes to a feed
- number of times we attempt to open feed preview
- number of times the user opens a feed popup in the UI
- number of times the user opens an entry from a feed popup in the UI.

MozReview-Commit-ID: DG9JDFXCjai
2018-02-16 19:18:00 +00:00
Nicholas Hurley
ade5e35dea Bug 1438183 - Fix predictor telemetry configuration. r=bagder
MozReview-Commit-ID: 9T4Og1FHavH
2018-02-16 10:57:59 -08:00
Dorel Luca
9260b212cd Backed out 6 changesets (bug 888600) for Valgrind and build bustge on a CLOSED TREE
Backed out changeset 7c8317f4ad48 (bug 888600)
Backed out changeset 5b990735f1ad (bug 888600)
Backed out changeset 9eafe225b804 (bug 888600)
Backed out changeset 16af80d6cd93 (bug 888600)
Backed out changeset a109987af625 (bug 888600)
Backed out changeset 0949dba396ad (bug 888600)
2018-02-22 13:56:43 +02:00
Dorel Luca
40881c0125 Merge mozilla-central to mozilla-inboud 2018-02-22 12:10:42 +02:00
Masatoshi Kimura
92102da519 Bug 1428258 - Stop using GetNativePath in Telemetry.cpp. r=Dexter
MozReview-Commit-ID: A8CCpfWAf73
2017-12-16 22:40:32 +09:00
Jonathan Kingston
91e54f8c78 Bug 1435733 - Upgrade mixed display content pref. r=baku,ckerschb,francois,mayhemer
MozReview-Commit-ID: ETIgVF3zhRu
2018-02-05 15:37:27 +00:00
Chris H-C
2d3474f12f bug 1438335 - Record when we have to clamp large Telemetry accumulations. r=Dexter,francois
We need to clamp accumulations to fit in our data representation (int). This
patch records the number of times, and for which probes, we had to do so.

MozReview-Commit-ID: GSs3oFvLKlL
2018-02-15 16:13:36 -05:00
Chris H-C
402ed83f50 bug 1438335 - Test edge-of-representation accumulations to Histograms. r=Dexter
MozReview-Commit-ID: 4FflK2q7Gea
2018-02-15 13:47:55 -05:00
Chris H-C
07eb0c34af bug 1438335 - Document Histogram accumulation clamping behaviour r=Dexter
MozReview-Commit-ID: K7gB4zoAleM
2018-02-15 13:38:42 -05:00
Chris H-C
39cedb8089 bug 1438335 - Clamp the samples accumulated to histograms. r=Dexter
Internally Histograms use int, which is signed.

Our API uses uint32_t, which is not.

Our JS API uses ToUint32, which takes provided values modulo UINT32_MAX.

This patch consolidates behaviour so that all values greater than INT_MAX will
be correctly recorded in the highest bucket of a Histogram... instead of
having values between INT_MAX and UINT32_MAX end up as 0s, and values above
UINT32_MAX being taken modulo UINT32_MAX, but only from the JS API.

MozReview-Commit-ID: CzaaNZkPEji
2018-02-15 13:32:13 -05:00
Peter Van der Beken
5fb60d9c57 Bug 888600 - Move ContentFrameMessageManager to WebIDL. Part 6: Mark some IDL interfaces as non-scriptable. r=bz. 2017-11-23 16:27:27 +01:00
Chris Peterson
6758bf6a84 Bug 1436263 - Part 1: Replace final override virtual function specifiers with just final. r=froydnj
MozReview-Commit-ID: DE5HkIhsZ6D
2018-02-05 22:46:57 -08:00
Dorel Luca
0c8020d7ab Merge mozilla-inbound to mozilla-central. a=merge 2018-02-17 11:55:38 +02:00
Gurzau Raul
ef3cdde1c4 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-02-17 00:13:16 +02:00
Gurzau Raul
5088af0fad Merge inbound to mozilla-central. a=merge 2018-02-17 00:09:28 +02:00
vinoth
459abda689 Bug 1399990 - Files added for New Categorical telemetry SCRIPT_BLOCK_INCORRECT_MIME_2 and same origin check done r=ckerschb,mayhemer
Summary: MozReview-Commit-ID: JKHxmIdtzIN

Reviewers: mayhemer, ckerschb

Reviewed By: mayhemer, ckerschb

Subscribers: ckerschb, mayhemer

Bug #: 1399990

Differential Revision: https://phabricator.services.mozilla.com/D569
2018-02-16 16:53:46 +02:00
Gurzau Raul
0321b4b20d Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-02-17 00:11:50 +02:00
Alejandro Rodriguez
3fada46e52 Bug 1426139 - re-fetch only the relevant pref when a pref changes. r=chutten 2018-02-07 22:41:52 -05:00
Emilio Cobos Álvarez
6b8c1967bd Bug 1438811: Remove the remaining bits of the traversal telemetry stuff. r=manishearth
MozReview-Commit-ID: 2dA5usbGQRt
2018-02-16 13:14:13 +01:00
Timothy Guan-tin Chien
f08391ee76 Bug 1234008 - Recompress some png images with zopflipng r=Dolske,Grisha,jryans
MozReview-Commit-ID: Cr2iMSB04uu
2018-01-27 15:57:42 +08:00
Gijs Kruitbosch
3047a2f7ca Bug 1439405 - re-enable telemetry histogram for sync blocklist loads, r=florian,chutten,data-review=liuche
MozReview-Commit-ID: 4SuM5uHLOZk
2018-02-19 18:43:12 +00:00
Gijs Kruitbosch
345863ee88 Bug 1439519 - fetch plugin information lazily in TelemetryEnvironment.jsm, r=chutten,florian
MozReview-Commit-ID: 9eUwq3lMdZD
2018-03-06 16:31:24 +00:00
Gijs Kruitbosch
120244f0cf Bug 1433133 - remove unused prefs and exported bits from NewTabUtils.jsm, r=dao
MozReview-Commit-ID: 75xPd5hKexV
2018-03-06 22:56:07 +00:00
J. Ryan Stinnett
4271604996 Bug 1445386 - Use GreD for artifact build scalars. r=chutten
On macOS, the paths for the special directories `GreD` (Resources) vs. `GreBinD`
(MacOS) are different.  On other platforms, they are the same.

With scalar loading for artifact builds, we need to load a file from
`Resources`, so `GreD` should be used for this case.

MozReview-Commit-ID: 91JFwOISQCk
2018-03-12 19:24:30 -05:00
Bogdan Tara
28ae405a63 Backed out changeset 3df355881aa0 (bug 1445386) for xpcshell failures on test_TelemetryScalars_buildFaster.js CLOSED TREE 2018-03-13 22:33:14 +02:00
J. Ryan Stinnett
507002aaf3 Bug 1445386 - Use GreD for artifact build scalars. r=chutten
On macOS, the paths for the special directories `GreD` (Resources) vs. `GreBinD`
(MacOS) are different.  On other platforms, they are the same.

With scalar loading for artifact builds, we need to load a file from
`Resources`, so `GreD` should be used for this case.

MozReview-Commit-ID: 91JFwOISQCk
2018-03-12 19:24:30 -05:00
Mike Cooper
edc1e4ced7 Bug 1426161 - Add app.shield.optoutstudies.enabled pref to TelemetryEnvironment r=gfritzsche
MozReview-Commit-ID: HFmqqTwHMyI
2018-01-30 14:04:23 -08:00
Daniel Stenberg
cba42619ee bug 1434852 - introducing TRR (DOH); r=mcmanus,valentin
Provides an optional resolver mechanism for Firefox that allows running
together with or instead of the native resolver.

TRR offers resolving of host names using a dedicated DNS-over-HTTPS server
(HTTPS is required, HTTP/2 is preferable).

DNS-over-HTTPS (DOH) allows DNS resolves with enhanced privacy, secure
transfers and improved performance.

To keep the failure rate at a minimum, the TRR system manages a dynamic
persistent blacklist for host names that can't be resolved with DOH but works
with the native resolver. Blacklisted entries will not be retried over DOH for
a couple of days. "localhost" and names in the ".local" TLD will not be
resolved via DOH.

TRR is preffed OFF by default and you need to set a URI for an available DOH
server to be able to use it. Since the URI for DOH is set with a name itself,
it may have to use the native resolver for bootstrapping. (Optionally, the
user can set the IP address of the DOH server in a pref to avoid the required
initial native resolve.)

When TRR starts up, it will first verify that it works by checking a
"confirmation" domain name. This confirmation domain is a pref by default set
to "example.com". TRR will also by default await the captive-portal detection
to raise its green flag before getting activated.

All prefs for TRR are under the "network.trr" hierarchy.

The DNS-over-HTTPS spec: https://tools.ietf.org/html/draft-ietf-doh-dns-over-https-03

MozReview-Commit-ID: GuuU6vjTjlm
2018-02-01 10:20:49 +01:00
Jared Wein
d5ab8bee00 Bug 1436575 - Manually fix the errors from no-compare-against-boolean-literal that the autofix couldn't change. r=standard8
MozReview-Commit-ID: 6NtfU76sPKv
2018-02-08 13:35:53 -05:00
Jared Wein
db0a992247 Bug 1436575 - Autofix errors from no-compare-against-boolean-literal. r=standard8
MozReview-Commit-ID: 66sXxnOWDgw
2018-02-08 12:57:31 -05:00
Francois Marier
2fcfa5bb32 Bug 1433636 - Put a limit on the length of Safe Browsing metadata values. r=gcp
Disk corruption can lead to the stored length of a value to be
unreasonably large and trigger an OOM.

Since values are all currently <= 32 bytes, we can safely enforce
a 256-byte upper bound.

MozReview-Commit-ID: XygReOpEK3
2018-01-30 14:21:33 -08:00
Chris H-C
e6f1f01d10 bug 1437120 - Ensure pings sent after net shutdown are persisted to disk r=Dexter
bug 1397293 introduced a mechanism by which we would bail out early in trying
to send a ping if we were trying to send it after the network had been torn
down.

Unfortunately, it did so indistinguishably from the case where we weren't
allowed to send pings, so we neglected to save the ping (as "pending") and
just archived it.

This change cleanly rejects the ping, and correctly tests that the rejected
ping is persisted, not just ephemerally hanging in memory for but a few moments
longer.

MozReview-Commit-ID: 2g8cpeBEzSE
2018-02-13 15:52:28 -05:00
Andrew McCreight
c509a522ed Bug 1437689 - Add basic memory reporting for gNameToHistogramIDMap. r=gfritzsche
MozReview-Commit-ID: 8QGudRuXmWh
2018-02-12 14:24:03 -08:00