Gregory Szorc
58bcd2801d
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
45d3f90cf3
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
cf876cf19b
Bug 785225 - Part 1: Don't rely on Engines singleton in AddonsReconciler; r=rnewman
2012-08-29 14:43:40 -07:00
Gregory Szorc
b5da03f768
Bug 777989 - Move add-on helper functions out of add-ons engine; r=rnewman
2012-07-30 17:05:33 -07:00
Gervase Markham
87620f5676
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Rob Campbell
0226390b82
merge fx-team to m-c
2012-05-10 11:54:23 -03:00
Blair McBride
f7913f5587
Bug 746909 - Lazy load AddonRepository, and various other JS modules. r=dtownsend
2012-05-10 14:28:45 +12:00
Anant Narayanan
a13fc78774
Bug 745069 - Add methods to DOMApplicationRegistry for AitC support; r=fabrice
2012-04-28 00:10:08 -07:00
Anant Narayanan
40e445624c
Bug 745425 - Move Utils.encodeBase64url to CommonUtils; r=gps
2012-04-17 15:42:33 -07:00
Gregory Szorc
49412510e0
Bug 731494 - Refactor generic code from services/sync into services/common; r=rnewman
...
--HG--
rename : services/sync/modules/async.js => services/common/async.js
rename : services/sync/modules/log4moz.js => services/common/log4moz.js
rename : services/sync/modules/ext/Observers.js => services/common/observers.js
rename : services/sync/modules/ext/Preferences.js => services/common/preferences.js
rename : services/sync/modules/ext/StringBundle.js => services/common/stringbundle.js
rename : services/sync/tests/unit/test_async_chain.js => services/common/tests/unit/test_async_chain.js
rename : services/sync/tests/unit/test_async_querySpinningly.js => services/common/tests/unit/test_async_querySpinningly.js
rename : services/sync/tests/unit/test_log4moz.js => services/common/tests/unit/test_log4moz.js
rename : services/sync/tests/unit/test_Observers.js => services/common/tests/unit/test_observers.js
rename : services/sync/tests/unit/test_Preferences.js => services/common/tests/unit/test_preferences.js
rename : services/sync/tests/unit/test_restrequest.js => services/common/tests/unit/test_restrequest.js
rename : services/sync/tests/unit/test_utils_makeURI.js => services/common/tests/unit/test_utils_makeURI.js
rename : services/sync/tests/unit/test_utils_namedTimer.js => services/common/tests/unit/test_utils_namedTimer.js
rename : services/sync/tests/unit/test_utils_stackTrace.js => services/common/tests/unit/test_utils_stackTrace.js
2012-04-05 23:26:06 -07:00
Gregory Szorc
6f41b50825
Bug 741670 - Don't sync hotfix extensions; r=rnewman, Unfocused
2012-04-03 08:55:58 -07:00
Gregory Szorc
bfb043da1b
Bug 739320 - Handle title in received "display URI" Sync commands; r=rnewman
2012-03-28 12:53:57 -07:00
Richard Newman
2a4fc96e59
Bug 739892 - correct type comparison error and typo in 7703db949571 (Bug 739339). a=borkage
2012-03-27 22:21:22 -07:00
Marina Samuel
550215a57b
Bug 739320 - Send title in display URI command; r=gps
2012-03-27 10:13:52 -07:00
Richard Newman
15fde3b635
Bug 739339 - make desktop Sync more robust against malformed bookmark records. r=gps
2012-03-26 18:40:28 -07:00
Richard Newman
160d0cbd26
Bug 733886 - Ensure that tabs engine always uploads integer timestamps, not strings. r=gps
2012-03-13 16:45:26 -07:00
Marco Bonardo
3cac1a047d
Bug 613588 (Sync) - Load-on-demand livemarks.
...
r=rnewman
2012-02-24 13:42:32 +01:00
Gregory Szorc
60fa181a7c
Bug 712542 - Apply add-on state before install when installing through Sync; r=Unfocused, r=rnewman
2012-02-20 14:53:03 -08:00
Geoff Lankow
c4d2ef72bf
Bug 718255 - Merge nsIPrefBranch2 with nsIPrefBranch - Part G, remove remaining uses of nsIPrefBranch2; r=bsmedberg
2012-01-18 23:23:28 +13:00
Gregory Szorc
b323330aba
Bug 725083 - Handle undefined sourceURI when installing add-ons; r=rnewman
2012-02-07 14:14:41 -08:00
Gregory Szorc
f8528d4840
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
4d1c36a1d5
Bug 708134 - Rewrite add-on URL to note it was installed by Sync; r=rnewman, Unfocused
...
--HG--
extra : rebase_source : cbcdcf2f85d8b68c57accef1b1e2db887df4925f
2012-01-12 17:45:37 -08:00
Rafael Ávila de Espíndola
3a35d81c93
Bug 702848 - Finalize the statements in services sync/modules/engines/forms.js. r=dolske.
2011-12-22 11:21:37 -05:00
Gregory Szorc
e6caf3b308
Bug 534956 - Part 1 - Sync engine for add-ons; r=mconnor
...
This includes the core engine, support code, and tests. UX is not
included.
2011-12-14 17:10:34 -08:00
Fabrice Desré
eea40d3c2f
Bug 706545 - Implement a sync engine for apps exposed by navigator.mozApps : Part 2: sync engine [r=philikon]
2011-12-08 05:33:23 -08:00
Marco Bonardo
546f98b766
Bug 700296 (Sync) - Remove dynamic containers implementation from Places.
...
r=rnewman
2011-11-29 02:22:47 +01:00
Richard Newman
5710457042
Bug 682497 - Strict mode and assorted improvements for bookmarks and history engines. r=philikon
2011-08-26 19:14:09 -07:00
Philipp von Weitershausen
ebb3454501
Bug 681863 - Replace Utils.isArray with Array.isArray. r=rnewman
2011-08-26 10:26:11 -07:00
Allison Naaktgeboren
1a50ccf7af
Merge services-central into mozilla-central.
2011-08-23 14:38:16 -07:00
Richard Newman
d15b1a5cd7
Bug 637576 - Part 2: Sync Form engine: cache queries. r=philikon
2011-08-22 10:38:28 -07:00
Richard Newman
637677bb5d
Bug 637576 - Part 1: Sync Form engine: reuse column name arrays. r=philikon
2011-08-22 10:38:28 -07:00
Richard Newman
e5baec3c9d
Bug 637576 - Part 0: Sync Form engine: tidying and cleanup. r=philikon
2011-08-22 10:38:28 -07:00
Richard Newman
e59d20160a
Bug 679279 - Part 4: bookmarks engine cleanup. r=philikon
...
This patch reformats some definitions to more closely follow the style guide
and allow for easier extension in subsequent patches, and eliminates the
archiveBookmarks helper.
2011-08-19 17:17:58 -07:00
Philipp von Weitershausen
57252adb8d
Bug 676110 - Part 4: Adapt Sync's history engine to implement handleCompletion. r=rnewman
...
--HG--
extra : rebase_source : 6ddb8f8eb77b48c6b17c47b6673617f768a3634a
2011-08-19 10:12:23 -07:00
Matt Brubeck
80006a6161
Bug 599936 - Silence warning about sort operations in moz_historyvisits query [r=mak]
2011-08-22 08:33:30 -07:00
Philipp von Weitershausen
9660d25cd4
Merge m-c to s-c
2011-08-12 09:55:29 -07:00
Philipp von Weitershausen
d818562685
Bug 678259 - Implement mozIVisitInfoCallback::handleResult to avoid exception. r=rnewman
2011-08-11 22:52:48 -07:00
Gregory Szorc
f5a7297399
Bug 676375 - Implement "send URI for display" command in Sync Clients engine; r=rnewman
2011-08-09 09:23:55 -07:00
Richard Newman
8dcf1f8380
Bug 676404 - command API migration. Fixes 845ed0ee7123. a=bustage
2011-08-05 16:01:49 -07:00
Gregory Szorc
d0b1fec42e
Bug 676404 - Migrate command APIs from Service to Clients engine. (relanded) r=rnewman
2011-08-04 16:19:02 -07:00
Richard Newman
8b2ac87e6d
Backed out changeset 3c22aef81976 (Bug 676404) for introducing two TPS failures.
2011-08-04 19:02:49 -07:00
Allison Naaktgeboren
370ae55e31
Bug 636603 - Part 2: mozIAsyncHistory: use new mozIVisitInfoCallback API from Sync. r=philikon
...
Updating the firefox sync consumer for the new api.
2011-08-04 16:50:19 -07:00
Gregory Szorc
85410e3795
Bug 676404 - Migrate command APIs from Service to Clients engine. r=rnewman
2011-08-04 16:19:02 -07:00
Gregory Szorc
2e4e829b57
Bug 646539 - Track client name pref changes and bump score after change; r=philikon
2011-07-26 21:48:50 -07:00
Marco Bonardo
4439a8695d
Bug 666697 - Don't sync history removals caused by expiration.
...
r=philikon
2011-06-30 22:24:50 +02:00
Marina Samuel
9dd7223082
Bug 665965 - Use SCORE_INCREMENT_XLARGE in HistoryTracker's onBeforeDeleteURI. r=philikon
2011-06-27 14:26:04 +01:00
Philipp von Weitershausen
0360a37b5a
Bug 666685 follow-up: continue to not overwrite the lazy getter if building the map fails. a=zpao-owes-me-a-beer
2011-06-24 02:18:24 +02:00
Paul O’Shannessy
5efa9da596
Bug 666685 - JavaScript strict warning: bookmarks.js: setting a property that has only a getter. r=philikon
2011-06-23 23:08:04 +02:00
Marina Samuel
277d79947f
Bug 600429 - Tune score increments to trigger a sync more quickly. r=philikon
...
Part 1: Tune score increments
2011-06-16 21:12:48 +02:00
Richard Newman
7bbc7fae0c
Bug 656513: part 2: revamp lazy GUID map handling (_lazyMap). r=philiKON
2011-06-15 00:03:34 -07:00