Commit Graph

3558 Commits

Author SHA1 Message Date
Robert Strong
8f46137d99 client code for Bug 1315506 - Remove app.update.url.override preference. r=mhowell 2016-11-11 12:58:47 -08:00
Markus Stange
abbe5b208a Bug 1307242 - Add a non-blank paint telemetry probe for foreground root content documents. r=bkelly, f=bsmedberg
This adds a probe called TIME_TO_NON_BLANK_PAINT_MS which reports time to
non-blank paint for root content documents whose docshell was active for the
entire time between navigation start and first non-blank paint.

MozReview-Commit-ID: 7JQdk5vHr1O
2016-11-10 14:26:54 -05:00
Carsten "Tomcat" Book
8ec316a2dc merge mozilla-inbound to mozilla-central a=merge 2016-09-30 12:02:16 +02:00
Chris H-C
b6e063b270 bug 1304660 - Don't dispatch to main once xpcom starts shutting down. r=froydnj
If we manage to dispatch to main after xpcom shutdown, the main thread won't
care for our new runnable and leak it.

MozReview-Commit-ID: 8t4hOgfgEeP
2016-09-28 14:44:35 -04:00
Carsten "Tomcat" Book
63402ac422 merge mozilla-inbound to mozilla-central a=merge 2016-09-29 11:44:58 +02:00
Tooru Fujisawa
a5294e0308 Bug 1289050 - Part 1: Use ASCII variant of JS_ReportError in simple case. r=jwalden 2016-08-14 20:39:28 +09:00
Carsten "Tomcat" Book
9828e8b912 Merge mozilla-central to mozilla-inbound 2016-09-28 16:25:01 +02:00
Carsten "Tomcat" Book
d3896c257f merge mozilla-inbound to mozilla-central a=merge 2016-09-28 15:56:33 +02:00
Chris Pearce
1bb70f8753 Bug 1305552 - Add telemetry to track uses of MediaKeySession.generateRequest. r=francois,gerald
This allows us to track how often EME CDMs are used, rather than just created.
The telemetry I added in bug 1304207 is reports whenever a CDM is created, but
some sites, such as the Shaka Player demo site, create CDMs without using them,
so that telemetry isn't a great measure in helping us detect when CDMs aren't
being used. Whereas the telemetry added here will report when the CDMs are used
to negotiate a license, i.e. when the CDMs are actually being used.


MozReview-Commit-ID: ExMIcIIBvS1
2016-09-27 15:01:06 +13:00
Kate McKinley
90c8afbeac Bug 1246540 - HSTS Priming Proof of Concept. r=ckerschb, r=mayhemer, r=jld, r=smaug, r=dkeeler, r=jmaher, p=ally
HSTS priming changes the order of mixed-content blocking and HSTS
upgrades, and adds a priming request to check if a mixed-content load is
accesible over HTTPS and the server supports upgrading via the
Strict-Transport-Security header.

Every call site that uses AsyncOpen2 passes through the mixed-content
blocker, and has a LoadInfo. If the mixed-content blocker marks the load as
needing HSTS priming, nsHttpChannel will build and send an HSTS priming
request on the same URI with the scheme upgraded to HTTPS. If the server
allows the upgrade, then channel performs an internal redirect to the HTTPS URI,
otherwise use the result of mixed-content blocker to allow or block the
load.

nsISiteSecurityService adds an optional boolean out parameter to
determine if the HSTS state is already cached for negative assertions.
If the host has been probed within the previous 24 hours, no HSTS
priming check will be sent.

MozReview-Commit-ID: ES1JruCtDdX
2016-09-27 11:27:00 -04:00
Alessio Placitelli
ca3cfb721d Bug 1305654 - Fix the SetMaximum C++ API for Scalars. r=gfritzsche 2016-09-27 01:32:00 -04:00
Vincent Lequertier
933803a8f4 Bug 1304426 - Move test scalars at the bottom of the Scalars.yaml file. r=dexter 2016-09-27 11:20:00 +02:00
ajay
f09b5e319d Bug 1304735 - Remove ClearHistogram r=chutten
MozReview-Commit-ID: Ez7u2gsRX6R
2016-09-22 21:48:19 +05:30
Ehsan Akhgari
deb629224a Bug 1301123 - Add assertions ensuring that documents and inner windows cannot end up with an expanded principal; r=bholley 2016-09-29 15:49:09 -04:00
Matt Howell
00ad0f1b54 Bug 1292360 - Add attribution data to the telemetry environment block; r=gfritzsche, data-review=bsmedberg
MozReview-Commit-ID: 4sltJYJrrFS
2016-08-24 10:01:10 -07:00
Dragana Damjanovic
e77d820d82 Bug 1305967 - Fix TLS 0RTT telemetry. r=francois 2016-09-29 02:36:00 +02:00
Wes Kocher
f9ddea3453 Backed out changeset 3bbbac2f6775 (bug 1305552) for android build failures in EMEUtils.h a=backout 2016-09-27 14:14:44 -07:00
Chris Pearce
2fc2898c69 Bug 1305552 - Add telemetry to track uses of MediaKeySession.generateRequest. r=francois,gerald
This allows us to track how often EME CDMs are used, rather than just created.
The telemetry I added in bug 1304207 is reports whenever a CDM is created, but
some sites, such as the Shaka Player demo site, create CDMs without using them,
so that telemetry isn't a great measure in helping us detect when CDMs aren't
being used. Whereas the telemetry added here will report when the CDMs are used
to negotiate a license, i.e. when the CDMs are actually being used.


MozReview-Commit-ID: ExMIcIIBvS1
2016-09-27 15:01:06 +13:00
Sergei Chernov
8eb3e4e402 Bug 1293231 - Certificate Transparency - basic telemetry reports; r=Cykesiopka,keeler
MozReview-Commit-ID: EGvuZADObJo
2016-08-11 13:41:50 +03: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
Carsten "Tomcat" Book
2dfe81885a merge mozilla-inbound to mozilla-central a=merge 2016-09-22 11:55:12 +02:00
Carsten "Tomcat" Book
c89799b3bf merge fx-team to mozilla-central a=merge 2016-09-22 11:54:05 +02:00
Andy McKay
b6b980d19b Bug 1258565 - Add documentation about addon malware telemetry. r=bsmedberg 2016-09-21 15:04:00 -04:00
Alessio Placitelli
a0e5869ffa Bug 1277806 - Add the missing C++ API for boolean scalars. r=gfritzsche 2016-09-14 02:59:00 +02:00
Alessio Placitelli
9570ca1a73 Bug 1277806 - Update the docs. r=gfritzsche 2016-09-14 02:59:00 +02:00
Alessio Placitelli
75704c0bb9 Bug 1277806 - Implement keyed scalar measurements in Telemetry. r=gfritzsche,nfroyd
MozReview-Commit-ID: 9kkjpLAIQUX
2016-09-16 03:43:00 +02:00
Alessio Placitelli
1a9fc61a87 Bug 1277806 - Add support for the keyed scalars to the scalar registry. r=gfritzsche
MozReview-Commit-ID: 8dKj92Kh2Ev
2016-09-07 02:39:00 +02:00
Carsten "Tomcat" Book
c9ac004310 Merge mozilla-central to fx-team 2016-09-21 12:08:57 +02:00
James Cheng
3d2b635907 Bug 1297556 - Add telemetry to know how many crashes happens in decoding process. r=bsmedberg, r=jolin
MozReview-Commit-ID: 52hhddXOvL3
2016-09-19 15:47:55 +08:00
Chris H-C
a0fde28cee bug 1218576 - Request an immediate batch send when the batch size hits a high water mark. r=gfritzsche
We've now seen an OOM trying to grow the accumulations array during a test
suite. The g*Accumulations arrays do grow unboundedly in size waiting for the
IPC timer to fire, so we should put a size bound as well as a time bound to
trigger the batch send.

The current size bound is 5K elements. This was chosen out of a hat.

MozReview-Commit-ID: 5HeWdbLfN03
2016-09-19 13:30:25 -04:00
Chris H-C
079b09b927 bug 1218576 - Ensure accumulations are for valid IDs. r=gfritzsche
We're seeing occasional failures of the isValid assert on the parent side where
the ID we're being asked to accumulate on is invalid.

Check the IDs on both sides to ensure that they're valid heading in.

MozReview-Commit-ID: 4gLG54Tx64s
2016-09-19 13:30:25 -04:00
Chris H-C
896c9e6ad1 bug 1218576 - Ensure IPCTimer is on the main thread. r=froydnj f=gfritzsche
nsTimer fires on the thread that created the timer. An nsTimer instance should
only be manipulated on its target thread (it isn't threadsafe). IPC using
PContent must be on the main thread.

Thus, everything to do with the gIPCTimer must be on the main thread.

This also takes care of bug 1299312.

MozReview-Commit-ID: IcVRYsoX2R9
2016-09-19 13:30:25 -04:00
Chris H-C
24c99fcfd8 bug 1218576 - Change unused.h to Unused.h, which matters to some filesystems. r=gfritzsche
MozReview-Commit-ID: GOy5Xz2Pxta
2016-09-19 13:30:25 -04:00
Chris H-C
5e4bb4ad31 bug 1218576 - Test child categorical histogram aggregation r=gfritzsche
It's new, it wasn't tested, and my patches broke it earlier so we should have
coverage for it.

MozReview-Commit-ID: B25bFOJHMSQ
2016-09-19 13:30:25 -04:00
Chris H-C
983a145ecf bug 1218576 - Aggregate child categorical histograms in the parent process. r=gfritzsche
Rewrite the categorical histogram accumulation code to use the common path.
This way it gets remote accumulation for cheap.

MozReview-Commit-ID: 3q6gdSvBix
2016-09-19 13:30:25 -04:00
Chris H-C
afef75f258 bug 1218576 - Ensure we can record before trying to record categorical histograms. r=gfritzsche
Every other Accumulate call has it :S

MozReview-Commit-ID: 8uWtADebuJ1
2016-09-19 13:30:25 -04:00
Chris H-C
6582dbcb12 bug 1218576 - Ensure Telemetry IDs coming from IPC are valid r=gfritzsche
I saw a one-off crash on try in internal_GetHistogramByEnumId. Not reproducible
but maybe possible if we're trying to accumulate using an invalid ID. So let's
guard against that.

MozReview-Commit-ID: Ei6eTlV91mJ
2016-09-19 13:30:25 -04:00
Chris H-C
00251d488b bug 1218576 - Ensure remaining batched telemetry is flushed on content process shutdown r=gfritzsche
On content process shutdown we send a content process ping to ensure we have
up-to-date data from the content process before it goes away. Now we need to
also flush the batched telemetry accumulations to the parent so that it can be
present in the ping.

No attempt is made to synchronize access to IPCTimerFired. It is safe to
re-enter.

No attempt is made to cancel the timer as its firing is benign.

MozReview-Commit-ID: 1gjNH9IPhKf
2016-09-19 13:30:25 -04:00
Chris H-C
83ced604e0 bug 1218576 - Assert we're the parent process when clearing histograms. r=gfritzsche
Clear isn't generally called at all, and isn't dispatched to the parent process
for child telemetry aggregation. Clear should only be called on the parent
process.

MozReview-Commit-ID: stIutvAO6h
2016-09-19 13:30:25 -04:00
Chris H-C
49b8443330 bug 1218576 - Update test_ChildHistograms for child telemetry aggregation r=gfritzsche
No more requestChildPayloads (or need for it).

MozReview-Commit-ID: AmPuT04HjWx
2016-09-19 13:30:25 -04:00
Chris H-C
a4334b1b30 bug 1218576 - Support remote accumulation via JS histograms. r=gfritzsche
The JS histograms, too, need to dispatch their accumulations from child to
parent.

JSHistograms_Add now only supports histograms that are in gHistogramsMap or
that were created in the parent process. After bug 1288745, maybe we'll be able
to change this to be less convoluted.

MozReview-Commit-ID: 3qTH89YKbGP
2016-09-19 13:30:25 -04:00
Chris H-C
b6f04194a9 bug 1218576 - Move aggregated child telemetry to processes.content r=gfritzsche
Take the opportunity presented through changing child telemetry accumulation
to bring the ping form closer to the ideas expressed in bug 1281795.

childPayloads still exists, but without histograms or keyedHistograms which are
now at root.processes.content.{keyedH|h}istograms. This will require coordinated
changes in the aggregator and moztelemetry libraries.

MozReview-Commit-ID: AqG2jmBBC2W
2016-09-19 13:30:25 -04:00
Chris H-C
1820cbf157 bug 1218576 - Remove requestChildPayloads r=gfritzsche
To simplify using child telemetry from the parent process, only allow child
telemetry payloads to be generated once per child process, on shut down.

This will allow us to use the child telemetry's subsession information to leave
childPayloads the way it currently is.

Will need to update test_ChildHistograms.js as it is the only consumer.

MozReview-Commit-ID: 2qSztg0QHV5
2016-09-19 13:30:25 -04:00
Chris H-C
e8f4e068f1 bug 1218576 - Pre-allocate child keyed histograms in the parent process r=gfritzsche
I originally thought we'd be able to avoid the previous implementation's waste
of a map full of every kind of keyed histogram. Unfortunately, other code
(TelemetrySession at the very least) depends on this (and will throw if a keyed
histogram isn't present, even if it is empty)

MozReview-Commit-ID: 8MCGVa595UB
2016-09-19 13:30:25 -04:00
Chris H-C
3e67c97758 bug 1218576 - Support subsession hgrams for child aggregation r=gfritzsche
The original commit didn't properly support subsession histograms, so rectify
that lapse by adding support for stripping out the base name of a histogram
when trying to determine its id.

MozReview-Commit-ID: LvUek6f5WUx
2016-09-19 13:30:25 -04:00
Chris H-C
b15477b262 bug 1218576 - Accumulate child histograms in the parent process r=froydnj
Batch the accumulations to only transmit every so often, so we don't incur
too much in the way of IPC overhead penalties.

What this doesn't do:
* remove or restructure child telemetry code to adapt to the new way
* send the telemetry anywhere
* allow for the child process to clear child histograms
* support anything but histograms (but this is expected and okay)

MozReview-Commit-ID: JnUkcmN3Ya7
2016-09-19 13:30:25 -04:00
Chris Pearce
076944ec75 Bug 1304207 - Add telemetry to track when EME CDMs are instantiated. r=francois,gerald
Add opt-out telemetry probe to track which EME CDMs are being instantiated.
This will enable us to determine when it's safe to remove the Adobe CDM.


MozReview-Commit-ID: iEPSTk7UtP
2016-09-21 10:45:02 +12:00
David Keeler
273f4fffb5 bug 1302140 - add policy to disable SHA-1 except for certificates issued by non-built-in CAs r=jcj,rbarnes
MozReview-Commit-ID: 2uwHPxk0VhZ
2016-09-14 15:11:15 -07:00
Thom Chiovoloni
7e09dac3bf Bug 1267917 - Hook the sync bookmark validator into the new sync telemetry ping r=bsmedberg,markh
MozReview-Commit-ID: ECACktrOhRG
2016-09-12 14:59:25 -04:00
Felipe Gomes
f8c94842cf Bug 1304113 - Change tab switching telemetry probes to be opt-out. r=bsmedberg,mconley data-r=bsmedberg
MozReview-Commit-ID: 9gvaE31vizm
2016-09-20 15:23:10 -03:00