Edward Lee
5f6b7af2ff
Remove meta/mini records. Bye!
2009-08-13 18:50:54 -07:00
Edward Lee
b0e99b50a1
Bug 506795 - Handle adding duplicate logins. r=thunder
...
Refactor reconcile to call findLikeId that by default will look for recordLike in the outgoing queue as it does now. Override findLikeId for password engine to search local logins.
2009-07-28 10:06:02 -07:00
Edward Lee
6293c974de
Convert various debug messages to trace.
2009-07-22 21:40:18 -07:00
Dan Mills
54314c829e
Bug 505906: Don't do a last POST if there is nothing left to send. Regression from bug 481347. r=mardak
2009-07-22 17:48:47 -07:00
Edward Lee
ac355ae207
Bug 485573 - Fennec runs out of memory and crashes if too many history items to sync. r=thunder
...
Incrementally process records as the collection finds record boundaries and converts them to records for the engine to use. Get rid of the collection iterator and original RecordParser. Add tests for incremental record parsing and remove old iter tests.
2009-07-22 16:38:34 -07:00
Dan Mills
ddefe825fc
Bug 481347: Split uploads into multiple chunks to get around server upload limit and curtail memory usage
2009-07-22 16:21:33 -07:00
Edward Lee
ac496a8ff4
Bug 504387 - Cache keys after creating/PUTting them instead of after GETting. r=thunder
...
Set the record manager for CryptoMetas, PubKeys, PrivKeys after uploading keys.
2009-07-16 23:13:58 -07:00
Edward Lee
c75387d5ab
Bug 504230 - Use Engine's logging level for Store and Tracker
...
Use the log.logger.engine.* prefs to determine what the Store and Tracker should log with. This requires putting the same engine name on each Store/Tracker object, so there's some duplicate string values right now.
2009-07-14 18:34:03 -07:00
Edward Lee
21ad9fd3dc
Bug 504212 - Have javascript stack traces show [object Object] for various CryptoWrapper functions
...
Pass the ID object instead of reading out the password and passing it in to encrypt/decrypt.
2009-07-14 16:51:04 -07:00
Edward Lee
5abbdfd658
Bug 504177 - Don't block the UI when syncing up/down
...
Sync.sleep(0) to let the main thread do UI, etc. after every record encrypt or decrypt.
2009-07-14 14:01:26 -07:00
Edward Lee
baa6609a31
merge weave. resolve addition of kSpecialIds to bookmarks.js near removal of Async.sugar.
2009-06-23 22:34:57 -07:00
Edward Lee
ce951c538a
Bug 493816 - Timestamps need to be saved as string prefs
...
Internally store .lastSync as a string but keep exposing set/getters as float values. parseFloat takes both strings and numbers and gives a number.
--HG--
extra : rebase_source : b657dd3f732b9f3b3b0ef208ee53e799aa87d2c6
2009-06-16 17:22:59 -07:00
Edward Lee
4ac23d2cab
Remove async.js and wrap.js and remove remaining references to Async.sugar, etc.
2009-06-06 18:24:30 -05:00
Edward Lee
51c0ce9b4b
Remove Async.sugar from engines.js.
2009-06-05 15:34:39 -07:00
Edward Lee
4ed0e2e9db
Engine_wipeServer: async -> sync. SyncEngine__wipeServer: async/yield -> sync.
2009-06-05 15:34:37 -07:00
Edward Lee
301d62f2bb
Engine_wipeClient: async -> sync. Engine__wipeClient: async/yield -> sync.
2009-06-05 15:34:35 -07:00
Edward Lee
a5bc6c458e
Engine_resetClient: async -> sync. SyncEngine__resetClient: async/yield -> sync.
2009-06-05 15:34:34 -07:00
Edward Lee
ddede5e342
Engine_sync: async -> sync. SyncEngine__sync: async/yield -> sync.
2009-06-05 15:34:32 -07:00
Edward Lee
e5c7999e86
Temporarily convert _notify to _notifyAsync and add a Utils.notify.
2009-06-05 15:34:23 -07:00
Edward Lee
6d842a391a
SyncEngine__processIncoming: async/yield -> sync.
2009-06-05 00:39:35 -07:00
Edward Lee
a242dd68b6
CollectionIterator_next: async + async/yield -> sync.
2009-06-05 00:38:23 -07:00
Edward Lee
667c064e18
Store_applyIncoming, SyncEngine__applyIncoming: async + async/yield -> sync.
2009-06-05 00:36:11 -07:00
Edward Lee
cb6f639b26
SyncEngine__syncStartup, SyncEngine__uploadOutgoing, SyncEngine__syncFinish all async/yield -> sync.
2009-06-04 23:48:27 -07:00
Edward Lee
8f9a249f1f
CryptoWrapper_decrypt: async + async/yield -> sync. Fix up bookmark/client decrypt.
2009-06-04 19:06:57 -07:00
Edward Lee
e7babd76eb
CryptoWrapper_encrypt: async + async/yield -> sync.
2009-06-04 17:58:37 -07:00
Edward Lee
26e278509c
CryptoMeta_addUnwrappedKey: async + async/yield -> sync.
2009-06-04 17:36:34 -07:00
Edward Lee
18ddfe6cf0
PubKeyManager_getDefaultKey: async + async/yield -> sync.
2009-06-04 17:04:51 -07:00
Edward Lee
de24904b92
RecordMgr_get: async + async/yield -> sync.
2009-06-04 16:50:57 -07:00
Edward Lee
6f2fce527b
Change SyncEngine._reconcile to not be async/yield.
2009-06-04 14:18:04 -07:00
Edward Lee
3e935d30d1
Fix Resource.* call sites used for wiping the server and initial sync (+ key gen upload)
2009-06-04 10:17:27 -07:00
Edward Lee
5220bc6208
Change Resource.get() to be sync (no callback) and fix up call sites used for login + sync now.
2009-06-04 10:16:07 -07:00
Edward Lee
a76192895b
Bug 493256 - Reconcile doesn't handle removed items correctly. r=thunder
...
Have engines check if the deleted flag is the same for _isEqual.
2009-05-15 13:18:16 -05:00
Edward Lee
a5f88e66c2
Bug 493001 - Dynamically generate weave prefs engine list based on registered engines
...
Remove existing hardcoded engine list + prefs and build checkboxes based on registered engines. Engines that give null for enabled (instead of true/false) are considered disabled. Update base Engine enabled get/set to give null and allow setting.
2009-05-14 11:38:15 -05:00
Dan Mills
0d0030a423
skip getting meta records for records already in the meta list
2009-04-08 18:08:45 -07:00
Edward Lee
d6b09727c8
Bug 486810 - Engines (and their trackers) are created with every new window. r=thunder
...
Register the built-in engines on service start-up instead of from the overlay, and have Engines.register check if the engine has already been registered.
2009-04-08 14:39:14 -05:00
Edward Lee
60afb4ea7c
Bug 487308 - Allow registering of an array of engines
...
Import engines to the Weave global object and use them to register engines, which checks if the arg is an array. To support handling of errors (unused), the engine is returned on register failure.
2009-04-07 16:45:41 -05:00
Edward Lee
9a4da9c571
Add a Utils.isArray and use it
2009-04-07 16:45:29 -05:00
Edward Lee
a9b1c2cc31
Bug 482670 - WBORecord should implement a .deleted property
...
Expose a .deleted property that engines can set to true to store an even thinner deleted payload (empty string "" instead of "[null]") on the server. Handle deserializing of deleted records by setting the property. Note: Engines must set their payloads to something JSON-able if it's not a delete record.
2009-04-03 12:38:47 -05:00
Edward Lee
3cead7f04b
Bug 481741 - Switch to JSON from nsIJSON
2009-03-31 14:09:38 -05:00
Edward Lee
04f5b8828b
Bug 482898 - Allow an optional array of engines for wipeRemote, wipeServer, resetClient, etc.. r=thunder
2009-03-20 00:13:16 -07:00
Edward Lee
e82eb9e0da
self.cb not this.cb for engine._wipeClient
2009-03-11 14:35:23 -05:00
Dan Mills
f40f88e033
Bug 478327: Send minimal '[null]' payload for deleted records
2009-03-11 01:40:04 -07:00
Edward Lee
1a083160c8
Bug 480457 - Expose a resetClient API for weave service and engines. r=thunder
2009-02-26 22:36:14 -08:00
Dan Mills
ef43c50062
add some trace-level debugging to reconciler; ignore old (changed) IDs while reconciling
2009-03-03 01:29:35 -08:00
Dan Mills
85834524e0
Switch away from __defineGetter__ due to bug 481104; explicitly cache logins in password engine; whitespace fixes
2009-03-02 18:55:26 -08:00
Anant Narayanan
fd1d0e8eef
Remove getter that fixes the 'two-store' problem
2009-03-03 01:15:48 +01:00
Dan Mills
7365b0d561
Bug 480461: skip items that cannot be decrypted
2009-02-26 17:31:06 -08:00
Dan Mills
1557586ebb
remove unused observer service getter
2009-02-26 13:52:12 -08:00
Dan Mills
e8c14a7b1b
reset lastSync pref before setting it, as some clients have mismatched types saved
2009-02-23 19:33:40 -08:00
Dan Mills
34b3a01ca1
Wrap.notify now takes the topic prefix as an argument, instead of requiring this._osPrefix to be set; use Observers.js in several places (sync.js, status.js, etc); some event topics have changed, beware; fix up status window, now prints some useful status as sync progresses
2009-02-22 00:04:58 -08:00