Dan Mills
085f383f57
more and more refactoring: split weave module into multiple files (finally!)
2007-12-10 21:38:53 -08:00
Dan Mills
391859079a
refactoring: remove log4moz component, use it as a js module instead
2007-12-10 19:47:11 -08:00
Dan Mills
7e58799632
more refactoring: move bookmarks-specific code into an 'engine' object; get rid of sync xpcom component and replace it with Components.utils.import hotness
2007-12-10 16:42:10 -08:00
Dan Mills
e7493064c7
refactoring more stuff out of the service
2007-12-01 22:57:57 -08:00
thunder@daniel-millss-macbook-pro-15.local
ae9e1d1e92
fix incorrect manifest line for locale; move idl files and xpt generation script to a public directory
2007-11-30 10:08:05 -08:00
Dan Mills
e7bb744f64
fix bug 406067; more refactoring; speed up reconciliation
2007-11-29 17:14:10 -08:00
Dan Mills
5a140de2ee
more refactoring
2007-11-28 14:47:40 -08:00
thunder@daniel-millss-macbook-pro-15.local
fd203cba43
refactoring and cleanup
2007-11-27 18:26:21 -08:00
thunder@h-125.office.mozilla.org
991100a461
sync -> weave in chrome URIs; fix broken bookmarks service attribute calls
2007-11-26 13:45:46 -08:00
Dan Mills
16df4695e6
fix maxVersion; fix bookmark root names; get new bookmarks toolbar root
2007-11-20 21:48:41 -08:00
thunder@h-125.office.mozilla.org
88e5943def
use btoa instead of external base64 library
2007-11-14 17:09:09 -08:00
thunder@h-125.office.mozilla.org
2f425c8d59
add not-yet-working ui for the encryption prefs; add bookmarks count to the status file
2007-11-14 16:20:16 -08:00
Dan Mills
cd9b1836db
encryption support, woo\!
2007-11-13 21:37:20 -08:00
Dan Mills
de10e7a246
add encryption library; add login dialog
2007-11-13 15:04:55 -08:00
thunder@daniel-millss-macbook-pro-15.local
a8a06814a4
support new services service (rework auth dance)
2007-11-12 21:23:07 -08:00
Dan Mills
49b0ddbb1f
fix deepEquals to correctly compare non-objects
2007-11-06 17:09:22 -08:00
Dan Mills
1a70050caa
don't sync/reset/login if already doing so; improve some http status code checks
2007-11-06 14:35:23 -08:00
Dan Mills
cd969651d8
Tweak logging output; make detectUpdates asynchronous (makes the spinny much smoother); avoid setting timers in our service object; add missing piece to support query items; force cache verification when making requests (to avoid using stale data)
2007-10-31 18:23:13 -07:00
Dan Mills
f4e685b35c
minor changes, version bump
2007-10-29 17:45:02 -07:00
Dan Mills
5ab6c84dfe
partial fix for deleting bookmark trees
2007-10-22 11:27:55 -07:00
thunder@thunder-mbp.pavlov.net
8cef2fc542
testing possible fix for deserializing feeds with empty site urls
2007-10-19 19:57:39 -07:00
Dan Mills
1894176a1b
don't die when livemarks don't have a site/feed uri set
2007-10-19 16:56:36 -07:00
Dan Mills
ddb5328284
Add reset client button to prefs window; add support for queries (e.g. the new 'Places' folder); display errors for all exceptions caught; reset server/client no longer trigger an atomatic re-sync
2007-10-19 16:33:03 -07:00
Dan Mills
dcf2cb979f
better check for whether we have a token; log event handler events
2007-10-18 20:29:17 -07:00
Dan Mills
4f34719f28
Fix for logout/re-login (no, really!)
2007-10-18 10:00:09 -07:00
Dan Mills
b3416e9ffb
DAVCollection refactoring
2007-10-18 03:13:35 -07:00
Dan Mills
8acdcd6dd6
change all generators to expect to be closed by their onComplete handler; make sure they all do the bulk of their work within try blocks and always call the onComplete handler
2007-10-17 22:03:55 -07:00
Dan Mills
82332dd1cd
add lots more logging output to DAVCollection
2007-10-17 13:49:51 -07:00
Dan Mills
2c3fc3aad0
login/logout fixes; (dav obj) just return from login call right away if we're already logged in
2007-10-16 20:11:35 -07:00
Dan Mills
3ada9edd22
downgrade server changes error to a warning, it will be triggered often by changing indeces
2007-10-16 16:51:44 -07:00
Dan Mills
63a9fb5202
fix same-parent requirement for command likeness
2007-10-16 16:49:46 -07:00
cbeard@h-135.office.mozilla.org
8612dfd801
fix to allow subsequent logins
2007-10-16 15:47:54 -07:00
Dan Mills
c468a0489b
baseURL -> userURL
2007-10-16 15:36:26 -07:00
Dan Mills
2c507f7654
merge
2007-10-16 15:29:53 -07:00
Dan Mills
760bdcd242
fix logout/re-login
2007-10-16 15:29:31 -07:00
cbeard@h-135.office.mozilla.org
15299da484
myk's patch to catch and ignore a microsummary exception
2007-10-16 15:29:02 -07:00
Dan Mills
58df792f30
add a sync error event; make event names slightly more uniform; fix some resolver bugs
2007-10-16 15:22:40 -07:00
thunder@thunder-mbp.local
0a4db4175d
move account 'creation' into the service
2007-10-16 01:45:57 -07:00
Dan Mills
d69cd561f0
accept only 200 and 404 as good return codes from a DELETE during resetServer(); release lock before calling doSync
2007-10-15 20:16:11 -07:00
Dan Mills
fa692fe149
hook up resetServer to UI
2007-10-15 20:07:00 -07:00
Dan Mills
77c99339e4
only run generatorDone if there's an onComplete handler
2007-10-15 20:04:02 -07:00
Dan Mills
58448e90c2
new xpt from resetServer idl changes
2007-10-15 20:01:56 -07:00
Dan Mills
4056b7d633
add resetServer to idl
2007-10-15 20:00:42 -07:00
Dan Mills
7dd8463192
add resetServer, fix schedule pref
2007-10-15 19:59:54 -07:00
Dan Mills
578e8848b6
listen to sync.enabled pref and enable/disable auto sync
2007-10-15 18:45:02 -07:00
cbeard@h-135.office.mozilla.org
1fa4216f9b
revised prefpane and workflows to get us to a more public test of sync
2007-10-15 18:26:39 -07:00
Dan Mills
7b2ef9a45b
add timer support, needs cbeard's new prefs
2007-10-15 18:14:44 -07:00
Dan Mills
f4abd0e177
one more conflict detection fix
2007-10-15 17:06:13 -07:00
Dan Mills
6d96c0487f
various backendy fixes
2007-10-15 16:52:43 -07:00
Dan Mills
35f70cc103
go go synchotron!
2007-10-15 15:31:15 -07:00
Dan Mills
af4caa7f76
add resetLock() method to service interface, it resets any server-side locks there may be. not hooked up to any ui.
2007-10-15 13:31:25 -07:00
thunder@thunder-mbp.local
56dfbcc926
fix recursive function bug
2007-10-12 22:58:38 -07:00
Dan Mills
beb67ee2d7
fix guids reset method
2007-10-12 18:44:58 -07:00
Dan Mills
6ff50feed6
reset guids on initial sync; prune out commands with guids that already exist on the system
2007-10-12 18:30:26 -07:00
Dan Mills
65da711e60
minor cleanup
2007-10-12 16:10:42 -07:00
Dan Mills
126f9f7d21
logging fixes + make verbose logs more readable; fix guid rename commands when applying to objects; make stealLock work even when the resource isn't locked; remove extra tmp logging
2007-10-12 15:08:22 -07:00
Dan Mills
ae2531a19d
calculate server deltas based on server latest -> final state diff. fix some logger calls.
2007-10-12 13:29:33 -07:00
Dan Mills
b08f4454d4
tri-license log4moz
2007-10-10 17:12:20 -07:00
Dan Mills
3cfe31fa38
additional logging; use __proto__ hack for inheriting object properties in subclassed Appenders
2007-10-10 17:08:58 -07:00
Dan Mills
258d4e372b
log the logger name; add a timestamp to logs
2007-10-10 14:02:56 -07:00
thunder@thunder-mbp.local
ad74591b2c
Add 'log4moz', a log4net clone for Mozilla
...
--HG--
rename : services/sync/nsBookmarksSyncService.js => services/sync/BookmarksSyncService.js
rename : services/sync/nsIBookmarksSyncService.idl => services/sync/IBookmarksSyncService.idl
rename : services/sync/nsIBookmarksSyncService.xpt => services/sync/IBookmarksSyncService.xpt
2007-10-10 02:09:28 -07:00
Dan Mills
7c0bbf4aa8
sync starred (but unfiled) items; fix autoconnect on browser startup; move all prefs under the same root (though we may need to move them all again later)
2007-10-05 18:38:31 -07:00
Dan Mills
547e328f8e
* Fix broken check when loading the locally saved snapshot from disk.
...
* Add syntactic sugar for "async" functions (generators that can
continue themselves)
* Do away with separate load & error handlers in general - we never
used them.
* Wrap generator bodies in a try block to ensure (with a finally
block) that we execute the generator closing protocol.
* Refactor login code somewhat.
2007-10-05 03:05:01 -07:00
Dan Mills
52e798cffe
* add support for livemarks and microsummaries
...
* add locking support
* don't use db type constants, define our own instead
* standardize capitalization of acronyms
Note: server-side needs to be wiped, no migration code included.
2007-10-04 23:41:09 -07:00
thunder@thunder-mbp.local
9f8bad4933
print http status codes on errors; improve xpath queries we use to get the dav lock tokens
2007-10-04 02:25:57 -07:00
Dan Mills
6f7b2e7e6c
locking fixes (still commented out); better error checking; fail if the remote format version is higher than we can read; refactor generator code, bring back asyncRun()
2007-10-03 19:16:47 -07:00
cbeard@chris-beards-computer.local
87d095a326
fleshing out of the setup wizard
2007-10-03 18:00:16 -07:00
Dave Camp
522be42223
sync keywords
2007-10-02 15:30:20 -07:00
Dave Camp
d5506ea31e
simple tag syncing
2007-10-02 15:07:19 -07:00
Dan Mills
3c8b5717dc
rewrote network logic to be far cleaner and more correct. Add initial support for a 'format version'.
2007-10-02 01:39:55 -07:00
Dan Mills
98c2075218
keep a guid when the snapshot is first generated and uplaoded to the server, and propagate it to all clients. this way we know if the server store gets completely wiped out
2007-09-28 17:42:37 -07:00
Dan Mills
ead009146c
sync engine fixes; logging improvements; try to ensure that property keys are always strings
2007-09-28 03:02:15 -07:00
Dan Mills
4a0275dfc6
better log viewer performance thanks to chris; small bugfixes in the component; temporarily disable some very verbose logging output
2007-09-27 14:40:21 -07:00
Dan Mills
b4397c442a
activity log fixes
2007-09-26 19:26:29 -07:00
Dan Mills
e181ad6bdb
activity log fixes
2007-09-26 19:25:55 -07:00
cbeard@h-135.office.mozilla.org
22aad07da3
reconciliation of changes between branches.
2007-09-26 17:45:54 -07:00
cbeard@h-135.office.mozilla.org
55474654a1
added wizard to setup service and get login information for new users
...
updated server pointers to point to the new services.mozilla.com backend
2007-09-26 17:34:36 -07:00
Dan Mills
53ae8e84c5
unify logging routines, log via the component. Log to a file. Add a couple of crappy attempts at nicer logging output
2007-09-26 15:28:01 -07:00
cbeard@h-135.office.mozilla.org
d4c815234e
added preferences pane to main pref dialog and wired everything up (except the password bit)
...
added autoconnect pref and actions
removing sync-engine.js as it doesn't look like we're using it anymore
2007-09-26 12:08:53 -07:00
cbeard@h-135.office.mozilla.org
b22d47953a
wired up the "cancel" and "sync now" menu items, although they don't do a whole lot yet
2007-09-25 17:19:01 -07:00
cbeard@h-135.office.mozilla.org
f6f8318ce2
- super fun spinning throbber goodness!
2007-09-25 16:33:23 -07:00
Dan Mills
3139d1ba1f
Fix some nasty bugs with the way js generators were being used. Have the snapshot [de]serialized to the profile
2007-09-24 18:34:03 -07:00
cbeard@chris-beards-computer.local
c34946845c
- tree[guid] is null for some (as yet) unknown reason
2007-09-24 15:10:25 -07:00
Dan Mills
d85686cb70
Add code to disable any auth prompt and turn them into failures (from the microsummary svc).
...
Get/save sync service password in the password manager (ui missing).
Fix a bug in the reconciler that prevented it from returning any conflicts.
Other misc cleanup.
2007-09-24 00:21:22 -07:00
Dan Mills
dd6028d09e
Yield to main loop during reconciliation, so as to not block the UI. Fix a broken check when changing the guid of an item.
2007-09-21 16:38:19 -07:00
Dan Mills
6ad7e960a7
Add xpt file, for the xpidl-deprived ;)
2007-09-21 01:47:01 -07:00
Dan Mills
2fb887333b
Yay, sync works again!
2007-09-21 01:23:05 -07:00
Dan Mills
4dd14dd3c7
sync.js: move code into an object. Add observer implementation, use observer service to listen to sync events.
...
sync.xul: cleanup, point into the global sync object from sync.js.
nsBookmarksSyncService.js: add login code, use observer service to publish events.
nsIBookmarksSyncService.idl: add login methods, add comments.
2007-09-20 23:57:18 -07:00
Dan Mills
dd3252e20e
woo! first sync across profiles works now
2007-09-20 17:26:20 -07:00
Dan Mills
df57784c35
flesh out new sync engine - cleanup needed
2007-09-20 16:56:05 -07:00
Dan Mills
5074a3b4e5
Add more awesome. Still some bugs, will try to replace sync-engine.js next (with a more domain-specific version) - beginnings of that already in the code (unused)
2007-09-19 21:08:00 -07:00
Dan Mills
4cb8461d0f
Sprinkle the awesome (we correctly create items in the correct place (index) now)
2007-09-18 16:00:52 -07:00
Dan Mills
4a4c291cab
Return conflicts from sync engine; change bookmarks serialization to use a flat dictionary keyed by guid, instead of a deep structure.
2007-09-18 11:18:01 -07:00
Dan Mills
43fabdf2af
run xptgen from build script, use env vars from xptgen to get mozilla objdir/srcdir paths
2007-09-14 14:56:06 -07:00
Dan Mills
f4a130cf8f
update from chris' work
2007-09-12 17:12:33 -04:00
Dan Mills
cd258ec577
Bookmarks sync extension - initial import
2007-09-12 17:03:30 -04:00