Commit Graph

51 Commits

Author SHA1 Message Date
Gregory Szorc
7b9cd377df Bug 965587 - Add lock to Firefox Health Report uploading; r=rnewman
Previously, it was technically possible for the FHR client to have
multiple simultaneous uploads. While this should never occur in
well-behaving systems, server logs have indicated that this behavior
might be occurring.

This patch adds a lock around uploading to ensure only 1 upload
operation may be active at a given time.

To measure the impact of this change in the wild, we added a counter
that increments whenever a held lock is encountered.

--HG--
extra : rebase_source : f0bb5065a3618cd335b6b6f31e4e68850f31f151
2014-01-29 15:28:57 -08:00
Gregory Szorc
7602964da6 Bug 939866 - Add Services docs to Sphinx; r=rnewman
DONTBUILD (NPOTB)

--HG--
extra : rebase_source : 5e4125ab7faa5493a10db903cf685ee1760f79ec
2013-11-17 19:39:55 -06:00
Gregory Szorc
efb0cd7098 Bug 924307 - More logging and error checking during FHR init; r=rnewman
--HG--
extra : rebase_source : d4d0b29eef195b62d133680edfee6bc541159c5c
extra : amend_source : 2ea9b8576a2d91912c1078fe25969bf52dbd05dd
2013-11-21 09:39:16 -08:00
Gregory Szorc
e84f6d729a Bug 924307 - Intermittent "reporter is null at abouthealth.js:27"; r=rnewman
The error message comes from abouthealth.js not checking if a variable
is null before access. That bug is fixed.

However, the underlying issue of "the reporter is null" still remains.
Logging has been added to hopefully catch issues. The signature of the
failure will change.

--HG--
extra : rebase_source : bc887406a3570a767bae5407b5836314157ac421
extra : amend_source : f22cad2eae46bd08ae25a7d376fbf8e2d1d0ea92
2013-11-20 11:41:08 -08:00
Blair McBride
908c3ef327 Bug 451283 - Move log4moz.js to Toolkit as Log.jsm. r=gps,Mossop
--HG--
rename : services/common/log4moz.js => toolkit/modules/Log.jsm
rename : services/common/tests/unit/test_log4moz.js => toolkit/modules/tests/xpcshell/test_Log.js
2013-08-26 11:55:58 -07:00
Stefan Mirea
7fca2f87e3 Bug 887580 - Properly export object in profile.jsm and policy.jsm. r=gps 2013-06-26 17:01:45 -07:00
Mike Hommey
05b3f24e0e Bug 912293 - Remove now redundant boilerplate from Makefile.in. r=gps 2013-09-05 09:01:46 +09:00
Gregory Szorc
6c8721df14 Bug 831404 - More attempts to fix intermittent failure; r=orange 2013-08-19 19:22:27 -07:00
Gregory Szorc
b9111fa221 Bug 831404 - Increase timer interval to hopefully prevent intermittent failure; r=rnewman 2013-08-19 16:16:35 -07:00
Joey Armstrong
4246f49c03 Bug 870370 - Move EXTRA_COMPONENTS to mozbuild (file batch #3); r=mshal 2013-06-11 16:38:22 -04:00
Gregory Szorc
22811e33cf Bug 873054 - Disable FHR prefs checkbox if pref is locked; r=rnewman 2013-07-02 09:55:34 -07:00
Joey Armstrong
1156439ca4 bug 880246: move EXTRA_PP_COMPONENTS to mozbuild (cleanup). r=mshal 2013-06-20 15:59:59 -04:00
Stefan Mirea
32641334c4 Bug 852411 - Migrating from promise.js to Promise.jsm; r=gps 2013-06-13 18:36:21 -07:00
Gregory Szorc
fa4ba29ffa Backout 9080f6701733 (bug 852411) for hitting weird xpcshell test harness behavior in multiple local builds 2013-06-14 14:38:29 -07:00
Stefan Mirea
c338d6a58e Bug 852411 - Migrating from promise.js to Promise.jsm; r=gps
--HG--
extra : rebase_source : d03cdae978479605df0a7ea728916ba78a272ffb
2013-06-13 18:36:21 -07:00
Joey Armstrong
2145ef4142 bug 880246: move EXTRA_PP_COMPONENTS to mozbuild (file batch #1) r=mshal 2013-06-14 14:07:19 -04:00
Gregory Szorc
c1b865f669 Bug 873629 - Remove 129 empty Makefile.in files; r=ted 2013-05-17 16:20:11 -07:00
Joey Armstrong
0d49db0381 bug 869143: phase2 cleanup for XPCSHELL_TEST conversion. r=mshal 2013-05-13 16:24:07 -04:00
Gregory Szorc
6b57cc6c3a Bug 846133 - Store FHR state in a file; r=rnewman
Preferences aren't robust. So, we're using a file.
2013-05-10 11:04:48 -07:00
Joey Armstrong
12356a4c50 bug 844655: Port XPCSHELL_TESTS to moz.build as XPCSHELL_TESTS_MANIFESTS 2013-04-29 14:49:00 -04:00
Nick Alexander
5411bce250 Bug 848519 - Part 3: Replace services-common/preferences.js with gre/modules/Preferences.jsm in imports. r=gavin 2013-04-15 12:45:37 -07:00
Kyle Machulis
f5e3aadf0b Bug 855465 - Add emacs python mode comments to moz.build files; r=gps 2013-04-01 11:36:59 -07:00
Kyle Machulis
d2b6e6e01a Backout for changeset 03452b187c14 (Bug 855465) due to bustage on a CLOSED TREE; r=qdot 2013-03-29 15:12:58 -07:00
Kyle Machulis
5663b98bc5 Bug 855465 - Add emacs python mode comments to moz.build files; r=gps
--HG--
extra : rebase_source : 004a756492323e1a049586e85b3be5037159df20
2013-03-29 13:56:18 -07:00
Gregory Szorc
d394e9c66f Bug 855860 - Preferences to control logging to terminal; r=rnewman 2013-03-28 20:06:05 -07:00
Richard Newman
64427f2534 Bug 831404 - Die, timing bug, die. r=trivial 2013-03-27 09:54:46 -07:00
Richard Newman
75a5c4a8cb Bug 831404 - Don't assume that timers run precisely. r=gps 2013-03-26 16:12:06 -07:00
Richard Newman
91f5a1778c Bug 831404 - Add more logging to try to debug test failures. r=trivial 2013-03-25 18:46:22 -07:00
Richard Newman
64450add28 Bug 831404 - Timer slop for: Intermittent services\datareporting\tests\xpcshell\test_policy.js | false == true. r=trivial 2013-03-25 13:10:20 -07:00
Gregory Szorc
e4a1ca5c91 Bug 784841 - Part 18ε: Convert /services; f=Ms2ger rs=ted 2013-02-25 12:47:24 -08:00
Gregory Szorc
49cd3800b7 Bug 842393 - Documentation for Firefox Health Report; r=rnewman
DONTBUILD (docs only)
2013-02-18 16:11:50 -08:00
Richard Newman
3a47b447cc Bug 838879 - Part 1: split HealthReporter and AbstractHealthReporter. r=gps 2013-02-13 16:32:45 -08:00
Richard Newman
c96e916919 Bug 838877 - Change FHR policy handling to permit direct pref modification. r=gps 2013-02-13 16:32:44 -08:00
Gregory Szorc
45eb44a9c0 Bug 830489 - Delay initializing FHR database on first run; r=rnewman 2013-02-05 20:25:48 -08:00
Gregory Szorc
cf32258058 Bug 837238 - Record session time in seconds not milliseconds; r=rnewman 2013-02-05 15:22:33 -08:00
Gregory Szorc
8562b2e87d Bug 838312 - Well-defined API for opting out of FHR data upload; r=rnewman
You should no longer set policy.healthReportUploadEnabled directly.
Instead, call policy.recordHealthReportUploadEnabled(). This will
trigger data deletion as needed.
2013-02-05 13:12:28 -08:00
Gregory Szorc
f5e7276548 Bug 837803 - Part 2: Proper dependencies for DataReportingService.js; r=glandium 2013-02-05 11:12:00 -08:00
Gregory Szorc
414925c4e3 Bug 833612 - More robust recording of sessionRestored value; r=rnewman 2013-02-05 10:42:15 -08:00
Phil Ringnalda
835bf59994 Merge m-c to s-c 2013-02-04 18:12:00 -08:00
Richard Newman
684c2b54be Merge m-c to s-c. 2013-02-03 00:51:21 -08:00
Gregory Szorc
5316ef3410 Bug 836340 - Increase implicit acceptance interval; r=rnewman
The new value comes from Tom in Privacy.
2013-01-31 08:53:38 -08:00
Ehsan Akhgari
5adccf8c6d Merge mozilla-cental into mozilla-inbound 2013-01-31 11:10:40 -05:00
Gregory Szorc
c6c96c3474 Bug 836177 - Temporarily merge more JSMs to mitigate compartment overhead; r=rnewman
As with bug 834936, this is meant to be temporary until zones land and
we have decent JSM overhead levels.
2013-01-30 07:07:22 -08:00
Gregory Szorc
cf1a271733 Bug 834936 - Temporarily load JSMs into fewer compartments; r=rnewman
We concatenate JSMs together so we use less compartments and therefore
less memory. This is intended to be a temporary hack until the overhead
of compartments is less.
2013-01-27 11:26:48 -08:00
Richard Newman
5ca4411e9f Bug 831404 - Add logging to test_policy.js. r=trivial,test-only 2013-01-30 20:07:34 -08:00
Richard Newman
7f6225bf52 Bug 834159 - Minor doc bugs in FHR. r=gps 2013-01-24 11:10:18 -08:00
Gregory Szorc
6d3ccffa19 Bug 827157 - Robust and performance sensitive recording of sessions; r=rnewman
We have introduced a new background service that captures session state
in preferences. Firefox Health Report now moves entries from preferences
to its database at payload generation time.

We've also introduced a few random APIs, such as enqueueTransaction()
and the ability for providers to have access to their own pref branch.
2013-01-18 22:35:07 -08:00
Gregory Szorc
6104c9a813 Bug 828149 - Cancel timer during application shutdown. r=rnewman 2013-01-14 18:01:53 -08:00
Gregory Szorc
a602b2e45a Bug 828829 - Remove dump() from DataReportingService.js; r=trivial 2013-01-11 23:34:57 -08:00
Gregory Szorc
2531a73bed Bug 828829 - Refactor Health Report policy out of services/healthreport; r=rnewman
--HG--
rename : services/healthreport/HealthReportService.js => services/datareporting/DataReportingService.js
rename : services/healthreport/modules-testing/mocks.jsm => services/datareporting/modules-testing/mocks.jsm
rename : services/healthreport/policy.jsm => services/datareporting/policy.jsm
rename : services/healthreport/tests/xpcshell/test_policy.js => services/datareporting/tests/xpcshell/test_policy.js
extra : rebase_source : cf766bc99ff843f2d31f82b1c4be71313fbc65a8
2013-01-11 13:45:22 -08:00