Commit Graph
363 Commits
Author SHA1 Message Date
Anup Kumar bc2c6c55a6 Bug 1003204: Removed CommonUtils.exceptionStr() in services/sync r=markh r=gfritzsche 2016-01-07 07:09:00 +01:00
Shu-yu Guo 90b93e6d5b Bug 1220564 - Update chrome code uses of genexprs and legacy comprehensions. (r=billm) 2016-01-06 16:02:16 -08:00
Tooru Fujisawa 9a024d5715 Bug 1217077 - Remove for-each from services/. r=gps 2015-10-19 03:52:58 +09:00
Carsten "Tomcat" Book 036e6d2fa3 Backed out 2 changesets (bug 1202902) to recking bug 1202902 to be able to reopen inbound on a CLOSED TREE
Backed out changeset 647025383676 (bug 1202902)
Backed out changeset d70c7fe532c6 (bug 1202902)
2015-10-07 14:03:21 +02:00
Carsten "Tomcat" Book 12369728f5 Backed out 1 changesets (bug 1202902) for causing merge conflicts to mozilla-central
Backed out changeset cfc1820361f5 (bug 1202902)
2015-10-07 12:13:45 +02:00
Shu-yu Guo 474f49adb7 Bug 1202902 - Scripted fix the world. 2015-10-06 14:00:31 -07:00
Kit Cambridge b2312e2d40 Bug 1124428 - Add telemetry probes for FxA-related authentication issues. r=markh,vladan 2015-09-15 18:18:04 -07:00
Mark Hammond 34776515a3 Bug 1195603 - prevent Sync from blocking app shutdown. r=rnewman 2015-08-31 11:57:25 +10:00
Mark Hammond 639d221aea Bug 1183934 - only log an error saving JSON if an error actually occurred. r=rnewman 2015-07-16 10:58:02 +10:00
Chris Peterson 2a89a44168 Bug 1133284 - Remove nonstandard expression closures from services/sync. r=rnewman 2015-01-24 23:50:01 -08:00
Hector Zhao 1730ae604a Bug 1103361 - Start/stop sync tracker when engine is enabled/disabled by flipping the pref. r=rnewman
CLOSED TREE
2014-11-22 16:09:10 +08:00
Edouard Oger b840e9a4f4 Bug 625295 - Allow for per-engine sort parameters to download bookmarks by sortindex. r=rnewman 2014-11-13 20:05:28 +01:00
Mathias De Maré e5e257ad9e Bug 675397 - Add syncing priority to be able to reshuffle the default syncing order. r=rnewman 2014-10-01 08:44:52 +02:00
Roberto A. Vitillo cdc5b83327 Bug 993468 - TypeError: callback is undefined in jsonSave(). r=rnewman 2014-04-13 14:28:20 -04:00
Richard Newman 31b076e0ef Bug 978876 - Part 1: handle declined engines in desktop Sync meta/global. r=gps
* * *
Bug 978876 - Part 2: refactor out meta/global upload.
2014-03-13 16:37:25 -07:00
Chris Karlof cf43ab7ec0 Bug 960887 - Handle storage endpoints returned by 1.5 token server. r=rnewman 2014-01-29 19:26:01 -08:00
Carsten "Tomcat" Book a113e50866 Backed out changeset 6f10f2e4ef13 (bug 960887) for XPC Bustage on a CLOSED TREE 2014-01-30 10:39:59 +01:00
Chris Karlof 99e35a1c77 Bug 960887 - Handle storage endpoints returned by 1.5 token server. r=rnewman 2014-01-30 00:22:55 -08:00
Wes Kocher 28f34948cb Backed out changeset a76b3c746743 (bug 960887) for xpcshell bustage 2014-01-29 21:04:47 -08:00
Chris Karlof ddd7dd963b Bug 960887 - Handle storage endpoints returned by 1.5 token server. r=rnewman 2014-01-29 19:26:01 -08:00
Richard Newman ccbf35848a Bug 947772 - Sync adds tracker observers regardless of engine enabled state. r=gps 2013-12-18 21:42:17 -08:00
Blair McBride 04d5b1fd1e Bug 451283 - Move log4moz.js to Toolkit as Log.jsm. r=gps,Mossop 2013-08-26 11:55:58 -07:00
Richard Newman 1ae9541ceb Bug 877057 - Add a download limit to Sync Engine fetches. r=mconnor 2013-05-29 11:11:38 -07:00
Richard Newman 90d5fd76bb Bug 829656 - TEST-UNEXPECTED-FAIL | /builds/slave/talos-slave/test/build/xpcshell/tests/services/common/tests/unit/head_helpers.js | 2 == 1. r=trivial 2013-01-11 10:03:15 -08:00
Richard Newman 800b654377 Bug 696974 - Bookmarks engine: "invalid 'in' operand this._modified" in reconcile. r=gps 2012-12-22 12:44:05 -08:00
Richard Newman f5a4a1f4c4 Bug 819262 - Additional tests for bookmark application in Sync. r=gps 2012-12-14 14:00:40 -08:00
Richard Newman f8ef3d9382 Bug 804479 - Intermittent test_password_tracker.js, test_history_tracker.js, test_bookmark_store.js, test_forms_tracker.js | test failed (with xpcshell return code: -2147483645), "ASSERTION: thread pool wasn't shutdown… " r=gps 2012-12-05 16:46:25 -08:00
Kyle Huey 76a2832eea Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon 2012-10-31 09:13:28 -07:00
Vicamo Yang ea784216bd Backout 67cb43bb8865: Breaks B2G Marionette 2012-10-31 16:35:11 +08:00
Kyle Huey c82a2d6fea Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon 2012-10-30 12:28:11 -07:00
Ed Morley c34b7d9377 Backout a145ded68994, e0cf397089ec & 1545e91c658e (bug 798491) for bustage on a CLOSED TREE 2012-10-30 17:02:31 +00:00
Kyle Huey 8078ab712e Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon 2012-10-30 08:26:12 -07:00
Gregory Szorc 627b2a49d8 Bug 787273 - Part 6: Remove Weave export from service.js; r=rnewman
This is mostly minor cosmetic changes. Weave was being exported from
service.js for no apparent reason. It was mostly used by tests.

There was a reference to it in engines.js, which should have been caught
when the engines were associated with a service instance. engines.js now
does the right thing.

Weave is no longer exported by service.js. Tests and modules no longer
import main.js.

WeaveSvc was also renamed to Sync11Service because why not.

Weave continues to be the main public API.
2012-09-14 16:02:33 -07:00
Gregory Szorc cba1324023 Bug 787273 - Part 5: Remove the CollectionKeys singleton; r=rnewman
CollectionKeys is gone. Instead, we export CollectionKeyManager (the
underlying type) and an instance is available on the Service singleton.
2012-09-14 16:02:33 -07:00
Gregory Szorc 33187f468f Bug 787273 - Part 4: Refactor Identity to not be a singleton; r=rnewman
Access to IdentityManager functionality now goes through the Service
singleton.
2012-09-14 16:02:33 -07:00
Gregory Szorc 4dae7b62b4 Bug 787273 - Part 2: Refactor Resource and Record to not rely on singletons; r=rnewman
Resource currently relies on the Identity singleton to perform
authentication. This is bad magic behavior. Resource instances should
authenticate according to the service instance they are associated with.

This patch removes Identity magic from Resource. Everything using
Resource now explicitly assigns an authenticator which comes from
the service instance/singleton. This required API changes to Collection
and Record.

The preferred method to obtain a Resource instance is to call
getResource() on a service instance.

The end result of this patch looks a little weird, especially in test
code. You have things like Service.resource(Service.cryptoKeysURL).
This ugliness will go away when a unified storage service client is
used.
2012-09-14 16:02:32 -07:00
Gregory Szorc 3246102ee9 Bug 787273 - Part 1: Remove Records singleton; r=rnewman
RecordManager is now an instance of the Service singleton and holds a
reference back to the service which is used to obtain needed "global"
state.
2012-09-14 16:02:32 -07:00
Gregory Szorc ca9572375c Bug 785225 - Part 9: Refactor engines to not use singletons; r=rnewman
Engines now maintain a reference to the service they belong to. This
allows them to obtain references to other engine instances belonging to
that service and that service only.

Stores and trackers now maintain a reference to the engine they belong
to.

Engine managers now maintain a reference back to a service.

The clients singleton has been removed. It now exists as an instance
variable on Service. Parts of ClientsEngine do behave as singletons
(e.g. commands). This will be addressed in future refactoring.
2012-08-29 14:43:41 -07:00
Gregory Szorc 51be372f07 Bug 785225 - Part 4: Remove unused exports from Weave; change engine loading; r=rnewman
Lots of exports from the Weave global object weren't being used. This
also changes how engines are loaded. There is now a mapping in
service.js of engine name to filename. Before, it was looking at Weave.
2012-08-29 14:43:40 -07:00
Gregory Szorc 0a81fdbb9d Bug 785225 - Part 2: Minimize Engines singleton usage; r=rnewman
Weave.Engines is no longer exported. Service now exposes an
EngineManager instance, which is the new recommended way to get at the
engine manager. Service was updated to reference the internal instance.
2012-08-29 14:43:40 -07:00
Gervase Markham cb6a072c2a Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Gregory Szorc 5eb157b9e5 Bug 731494 - Refactor generic code from services/sync into services/common; r=rnewman 2012-04-05 23:26:06 -07:00
Gregory Szorc 246a543a7b Bug 730989 - Refactor identity and authentication in Sync; r=rnewman 2012-03-22 15:49:50 -07:00
Gregory Szorc 6c28d98bc4 Bug 732605 - Only schedule shorter sync interval if records were successfully applied; r=rnewman, r=mconnor 2012-03-06 14:27:56 -08:00
Gregory Szorc f16ef64658 Bug 710448 - Rewritten Sync record reconciling to handle edge cases; r=rnewman, r=philikon
This patch rewrites Sync's record reconciling logic to properly handle
edge cases. Before, there were a few cases where data loss could occur
because of improperly handled and ignored timestamps.
2012-01-25 13:32:05 -08:00
Gregory Szorc 20d3f621c5 Bug 709424 - More robust handling of reconciling for duplicate records; r=rnewman 2011-12-13 15:46:54 -08:00
Richard Newman 4cb39ae5ca Bug 684798 - Part 3: Catch server errors when wiping/disabling engines. r=rnewman (reland) 2011-10-27 22:25:00 -07:00
Philipp von Weitershausen c70d7ae616 Back out bug 684798 parts 1 thru 3. 2011-10-20 16:21:17 -07:00
Philipp von Weitershausen 3b4740a6be Bug 684798 - Part 3: Catch server errors when wiping/disabling engines. r=rnewman 2011-10-12 13:55:19 -07:00
Gregory Szorc 33d4164428 Bug 685757 - Document Store API; r=philikon DONTBUILD 2011-09-09 10:34:58 -07:00