jono@jono-gibbon-laptop
0640b8474c
Removed some lines that were only in there for debugging purposes.
2008-04-01 19:12:03 -07:00
jono@jono-gibbon-laptop
4ad1b9c94f
Fixed some minor errors in cookieStore / cookieSyncCore (still getting used to the getter idiom in javascript -- had too many underscores). Syncing cookies now works in as much as it can upload all cookies to the server without raising any exceptions; now to see if it can download and merge cookies on the other side...
2008-04-01 17:51:10 -07:00
jono@jono-gibbon-laptop
b405d397ce
Fixed a couple of missing symbol exports that were stopping CookieEngine from being able to be instantiated.
2008-04-01 17:32:14 -07:00
jono@jono-gibbon-laptop
609b043699
Fixed a couple of syntax errors that were preventing weave from starting
2008-04-01 16:36:08 -07:00
jono@jono-gibbon-laptop
640267d614
Merged changes and resolved conflicts between my cookie stuff and r282.
2008-04-01 14:46:29 -07:00
Dan Mills
b8cca5d3a9
bump version
2008-03-31 17:46:29 -07:00
Dan Mills
e4254ee7bd
fix tag sync
2008-03-31 17:07:40 -07:00
Dan Mills
27580b967a
hide share bookmarks menu item; clean up ui init code
2008-03-31 16:55:54 -07:00
Dan Mills
1cbfe5b3e3
add warnings to reset client/server data buttons in the prefs
2008-03-31 16:24:43 -07:00
Dan Mills
a5bb6bf61f
[mostly] beat login dialog into submission; use DAV singleton instead of making a new DAVCollection in service.js; split up checks from login into their own functions, call them on sync(); check we are logged in before syncing
2008-03-31 07:20:09 -07:00
Dan Mills
2028f0a69d
bump storage format version to cause a server wipe
2008-03-30 08:52:49 -07:00
Dan Mills
8f9f414efb
bump version
2008-03-30 08:42:35 -07:00
Dan Mills
acdfa5a921
use the wrapper notifier for login(), change observers to the slightly different observer topics; allow server url to not have a trailing slash (add one automatically); dial down dav.js verbosity; add serverWipe service method; change 'reset server data' button in prefs pane to do serverWipe instead of resetServer; allow for wrappers to have extra args both saved in the closure (at wrap creation time) as well as passed in later (via .async())
2008-03-30 08:40:23 -07:00
Dan Mills
18f1113dcf
remove try/catch block in the reconciler; correctly fix parent guids of remove commands during guid changes; only allow guid changes for create commands
2008-03-30 03:36:25 -07:00
Dan Mills
e7a26a8229
show 'sync now' menuitem by default
2008-03-29 00:22:28 -07:00
Dan Mills
3ba627c585
fix the bookmarks likeness comparator (a.data undefined bug)
2008-03-29 00:00:16 -07:00
Dan Mills
54e61dbe6b
ignore 'type' properties in edit commands; fix history sync
2008-03-28 22:55:23 -07:00
Dan Mills
78041c490b
fix 'clear logs' on windows
2008-03-28 19:36:11 -07:00
Dan Mills
fc6202f2e2
bump version
2008-03-28 03:27:05 -07:00
Dan Mills
eaca70f4d9
add status notification to sharing dialog; fix async generators in the case where an async method is missing a yield (better error, continue execution in parent); add guts of demo sharing code to engine & store (for bookmarks, with some spillage)
2008-03-28 03:25:51 -07:00
Dan Mills
62e963c8b9
status label now has service status instead of username; service [un]lock observer notifications are gone; don't error when async methods don't call done() - consider them methods with no return value; don't require passing null into login() to cause the identity to look up the password in the pw mgr; make some wrapper 'method generators' to make lock handling and observer notification simpler
2008-03-27 19:12:53 -07:00
Dan Mills
62a6461323
add a 'clear logs' button to the log window
2008-03-27 01:05:21 -07:00
Dan Mills
4517e592d0
tweak logging defaults; add a hidden pref to make the 'sync now' menu option visible again
2008-03-27 00:36:50 -07:00
Dan Mills
cfbb3a75b1
remove old '500 error' hack for services.m.c during mkcol; fix applyCommands to do async right & make a listener correctly
2008-03-26 23:51:01 -07:00
Dan Mills
1b3916bc83
make XHRs non-blocking again; change sharing dialog so sharing is done without closing the dialog (still lacks any feedback though)
2008-03-26 23:22:35 -07:00
Dan Mills
cfae90a73a
fix typo
2008-03-26 23:12:58 -07:00
Dan Mills
ebf0b6a973
make applyCommands asynchronous
2008-03-26 23:11:15 -07:00
Dan Mills
24ba577b6f
improve async generator logging; don't call done() on StopIteration when we already have a timer set (it means the generator just 'bottomed out' after calling done()); make XHRs be synchronous (blocking) - temporarily; fix up sharing code (adding to the keyring)
2008-03-26 00:59:34 -07:00
Dan Mills
7ec09f1317
add sharing ui+backend code (not working yet); make engines less chatty when applying commands
2008-03-25 23:01:34 -07:00
Dan Mills
0a4be048f7
make service.js the main entry point from chrome/content; make the service be lazy-loaded; make crypto be lazy-loaded
2008-03-25 15:14:00 -07:00
Dan Mills
86d8009d14
lazy-load service
2008-03-25 13:55:34 -07:00
Dan Mills
5b6dc30300
work with all exception objects, whether we can modify them or not
2008-03-24 19:08:43 -07:00
Dan Mills
aa012aa6cf
bump version
2008-03-24 16:05:02 -07:00
Dan Mills
6c82a158bd
decrypt private rsa keys before decrypting data with it (rather than doing it in one step). fix for windows openssl.exe
2008-03-24 16:04:29 -07:00
Dan Mills
8541c2d22a
bump version; bump storage format version
2008-03-21 16:07:44 -07:00
Dan Mills
233a0d648d
fix resetClient's locking. change bookmarks wrap format to have hardcoded guids for the 3 roots (menu, toolbar, unfiled) rather than random ones.
2008-03-21 15:56:41 -07:00
Dan Mills
99618dc083
bump version
2008-03-20 14:59:59 -07:00
Dan Mills
22ef0e035f
bookmarks syncCore: remove actions never qualify for 'likeness'
2008-03-20 14:59:20 -07:00
Dan Mills
2739b301fc
split up/simplify login functions; add a global (server-wide) storage version; wipe server for storage version upgrades
2008-03-19 18:42:12 -07:00
Dan Mills
6d055afeb8
bump version
2008-03-19 17:31:45 -07:00
Dan Mills
fd86363364
bookmarks sync core: always include type information when generating commands. also, allow for properties to not be set when comparing commands for likeness.
2008-03-19 17:31:00 -07:00
Dan Mills
16920cd2ae
Various improvements:
...
* Logging improvements / default log levels tweaked. Less chatty now.
Ability to tweak log levels of individual loggers via prefs.
* Various crypto module fixes, specially for RSA.
* 'service' lock removed, reuses server lock now. dav module supports
temporarily blocking locks to simulate the 'service' lock (login()
needs this, since dav is not configured at that time).
* PKI support: data encryption uses randomly-generated symmetric keys,
which are then encrypted with RSA public keys and stored on the
server.
2008-03-19 15:17:04 -07:00
Dan Mills
07c4bbd0dc
bump version
2008-03-12 23:07:04 -07:00
Dan Mills
732f6b234c
workaround for services.m.c 500 error on some GET requests
2008-03-12 23:06:28 -07:00
jono@jono-gibbon-laptop
4c23a0a589
Merged my changes with the changes to async.js -- no conflicts.
2008-03-11 14:59:06 -05:00
thunder@h-132.office.mozilla.org
cdbd7976e2
add missing async.js module
2008-03-11 11:47:54 -07:00
jono@jono-gibbon-laptop
a2c4928bc5
My changes to weave to enable cookie synchronization. So far untested and still missing a thing or two.
2008-03-11 12:08:38 -05:00
Dan Mills
075381eca7
fix full (first) upload brokenness
2008-03-07 04:49:56 -08:00
Dan Mills
48733f699a
add a dav method for getting a list of server files/directories; delete all server data when private key isn't found (this will cause everyone's server data to get wiped, since no one has a key yet); fix a bug in checkStatus with specific status codes (as opposed to ranges)
2008-03-07 04:20:55 -08:00
Dan Mills
4bfb8c52e7
version bump
2008-03-07 01:57:18 -08:00
Dan Mills
941dd24c3b
Asynchronous generator helpers rework + PKI work
...
* Async helpers are in a module of their own now
* Async routines have simpler semantics now. onComplete handlers are taken care of by the helpers. Exceptions are bubbled up across nested asynchronous generators
* Stack traces are automatically logged for unhandled exceptions
* Async generators are now allowed to 'bottom out' (StopIteration is ignored) - this is configurable.
* RSA key generation fixes
* On login we now create an RSA keypair, encrypt the private one with PBE, and upload them to the server
* Log files are now limited to 2MB (down from 5)
2008-03-07 01:56:36 -08:00
Dan Mills
0ed61df581
don't sync bookmarks/history unless they have been enabled
2008-03-05 18:36:58 -08:00
Dan Mills
cc0892b5ff
ignore broken local snapshots if they can't be parsed; trigger an initial sync instead
2008-03-05 17:11:08 -08:00
Dan Mills
c1f8acb964
switch to nsIJSON for JSON parsing and output. add a deepCopy function instead of using eval(uneval()). make *sure* to read and write UTF-8 to files. bump version
2008-03-05 00:00:56 -08:00
Dan Mills
288aaae471
fix openssl args mangling
2008-02-19 21:01:11 -08:00
Dan Mills
1817c866fe
version bump
2008-02-19 20:53:45 -08:00
Dan Mills
350adaed51
use a scriptableinputstream to correctly read openssl output
2008-02-19 20:53:01 -08:00
Dan Mills
5efa6b7b5f
flesh out openssl code; still needs more work
2008-02-19 11:39:39 -08:00
thunder@h-132.office.mozilla.org
093fac248a
move openssl() into crypto object so it can use the logger there. up version
2008-02-18 11:18:04 -08:00
Dan Mills
261ddf2a9e
clean up prefs; add logging prefs; check weave is enabled on scheduled sync
2008-02-13 16:07:11 -08:00
Dan Mills
d6b5a9fc29
put utility functions in an object to avoid namespace pollution
2008-02-13 14:30:44 -08:00
Dan Mills
d5c5e064e7
create user directories when they don't exist - good for personal webdav servers
2008-02-08 01:03:45 -08:00
Dan Mills
ec4aa0abba
fix openssl binary path on windows
2008-02-05 16:15:43 -08:00
Dan Mills
e6eda21f32
branch merge
2008-02-05 14:16:38 -08:00
Dan Mills
731575d8bf
add openssl support
2008-02-05 14:15:53 -08:00
Myk Melez
e6c482d3b5
make log4moz not depend on constants.js so it's easier to reuse it in another project
2008-01-24 17:41:36 -08:00
Dan Mills
14f74078bb
remove obsolete xpcom component code
2008-01-23 15:35:11 -08:00
Dan Mills
fac152858b
bump version
2008-01-22 22:46:39 -08:00
Dan Mills
c967d1b41f
Bug 411105: nsILoginInfo no longer accepts null values for usernameField/passwordField. Send empty strings instead
2008-01-22 22:46:07 -08:00
Dan Mills
062ba11eda
bump version
2008-01-07 20:20:54 -08:00
Dan Mills
a3b17ebe6a
bump version
2008-01-07 16:29:30 -08:00
Dan Mills
d4392ac825
load all modules directly from load-weave.js to get around bug 408412; fix uses of |let| not directly within a block
2008-01-07 16:28:57 -08:00
Dan Mills
dd6341464b
bump version in constants.js
2007-12-28 16:34:28 -08:00
Dan Mills
23affe6333
Bug 409908: don't decrypt cleartext. Also, fix broken checkStatus calls when resetting server data.
2007-12-28 16:33:09 -08:00
Dan Mills
c00d20a783
move xxxtea.js -> xxtea.js (typo)
2007-12-27 12:50:51 -08:00
Dan Mills
2883ed0621
Make {en,de}cryption asynchronous so as to not block the UI; fix 'xxxtea' typos (it's xxtea); fix auth header suppression
2007-12-26 17:40:46 -08:00
Dan Mills
7e968fc10e
remove debug statements
2007-12-26 16:11:19 -08:00
Dan Mills
79688a1c16
Pull xxxtea code into modules/; fix passphrase bug in the login dialog
2007-12-26 16:10:23 -08:00
Dan Mills
a3cc4e318d
Bug 409601: Ask for an email instead of a username (since Weave usernames are email addresses)
2007-12-26 14:56:52 -08:00
Dan Mills
c3f4b08ffc
Fix typo in last commit; use asterisks in place of auth header
2007-12-26 14:51:52 -08:00
Dan Mills
6dfb3eae28
Bug 409673: Don't log the authentication header
2007-12-26 14:49:03 -08:00
thunder@daniel-millss-macbook-pro-15.local
539fdecb0f
fix getTagsForURI call (API changed); bump version
2007-12-24 14:47:37 -08:00
Dan Mills
c2c6f2597a
version bump
2007-12-21 18:38:04 -08:00
Dan Mills
4959c7beaf
alert errors when the passphrase is empty
2007-12-21 18:05:01 -08:00
Myk Melez
3951dfad84
clean up preferences XUL and make Create Account button work on Windows and Linux
2007-12-21 17:41:26 -08:00
Dan Mills
e320b490d8
version bump
2007-12-21 16:51:14 -08:00
Dan Mills
c713a81236
process GUID changes *before* anything else
2007-12-21 16:50:32 -08:00
Dan Mills
21f147b7bb
limit history sync to the last 500 items; load snapshots from the right directory in the profile
2007-12-21 16:07:42 -08:00
cbeard@Macintosh.local
c60c01bca7
refactoring of the setup wizard, fix for opening prefs pane to weave pane regardless of previous state
2007-12-21 15:08:47 -08:00
cbeard@Macintosh.local
9e1b175737
UI clean up and refactoring
2007-12-21 13:34:43 -08:00
Myk Melez
f131be79e2
make prefpane localizable
2007-12-21 01:09:08 -08:00
Myk Melez
7f05e503c8
make login dialog localizable
2007-12-21 00:29:54 -08:00
Myk Melez
ec2d19faf6
make log dialog localizable
2007-12-21 00:11:50 -08:00
Myk Melez
633faa5bac
make wizard localizable
2007-12-20 23:31:29 -08:00
Myk Melez
952e48c556
make the browser overlay (sync.xul) localized and localizable
2007-12-20 17:19:36 -08:00
cbeard@Macintosh.local
e954cf7ddf
merging
2007-12-20 15:44:49 -08:00
cbeard@Macintosh.local
1a0d0f7773
sorry about the tabs! lots of refactoring of the UI bits
2007-12-20 15:43:18 -08:00
Dan Mills
28e2504a7f
implement firstrun/updated pages
2007-12-20 15:35:19 -08:00
Dan Mills
232f7951a9
change prefs to live under extensions.weave
2007-12-20 14:46:12 -08:00
Dan Mills
fb020f0577
ui / prefs fixes
2007-12-20 12:18:41 -08:00
Dan Mills
bdb1273a28
move logs and snapshots into a 'weave' directory in the profile; use .txt filenames for logs to (hopefully) fix content type problems some people are seeing
2007-12-19 19:49:28 -08:00
Dan Mills
2cc8662f0f
rename 'bookmarks' events to be weave events; add service-level events in addition to engine-specific ones (where appropriate)
2007-12-19 17:37:01 -08:00
Dan Mills
6782f99ad3
login fixes; history sync fixes; make reset client actually delete all client data (useful for testing and for syncing down server data - e.g. the restore case)
2007-12-19 13:24:31 -08:00
Dan Mills
516dfc2930
some more cleanup/refactoring; add history engine/core/store (history sync\!)
2007-12-14 18:07:25 -08:00
Dan Mills
f9df1f57a8
assume in loaded modules that the resource:// alias has already been added - remove all the templatey code to do that
2007-12-11 11:57:13 -08:00
Dan Mills
e44b47a493
more and more refactoring: split weave module into multiple files (finally!)
2007-12-10 21:38:53 -08:00
Dan Mills
e5050adc9c
refactoring: remove log4moz component, use it as a js module instead
2007-12-10 19:47:11 -08:00
Dan Mills
5de0bd93c4
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
f55a31870a
refactoring more stuff out of the service
2007-12-01 22:57:57 -08:00
thunder@daniel-millss-macbook-pro-15.local
7d7b9e3717
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
875a683faf
fix bug 406067; more refactoring; speed up reconciliation
2007-11-29 17:14:10 -08:00
Dan Mills
e2b20068b4
more refactoring
2007-11-28 14:47:40 -08:00
thunder@daniel-millss-macbook-pro-15.local
65efcd5816
refactoring and cleanup
2007-11-27 18:26:21 -08:00
thunder@h-125.office.mozilla.org
239d02823c
sync -> weave in chrome URIs; fix broken bookmarks service attribute calls
2007-11-26 13:45:46 -08:00
Dan Mills
87ffe5695e
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
8f1a6d1763
use btoa instead of external base64 library
2007-11-14 17:09:09 -08:00
thunder@h-125.office.mozilla.org
2097c793ae
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
bfe6a04b7c
encryption support, woo\!
2007-11-13 21:37:20 -08:00
Dan Mills
5e7ca6fd00
add encryption library; add login dialog
2007-11-13 15:04:55 -08:00
thunder@daniel-millss-macbook-pro-15.local
fabe8a4f91
support new services service (rework auth dance)
2007-11-12 21:23:07 -08:00
Dan Mills
10797c184e
fix deepEquals to correctly compare non-objects
2007-11-06 17:09:22 -08:00
Dan Mills
1ae22980da
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
f4063917d0
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
6cd2dcc4f8
minor changes, version bump
2007-10-29 17:45:02 -07:00
Dan Mills
5c0e1acd51
partial fix for deleting bookmark trees
2007-10-22 11:27:55 -07:00
thunder@thunder-mbp.pavlov.net
6e1eec843c
testing possible fix for deserializing feeds with empty site urls
2007-10-19 19:57:39 -07:00
Dan Mills
8e716dce30
don't die when livemarks don't have a site/feed uri set
2007-10-19 16:56:36 -07:00
Dan Mills
83781b9914
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
47edd251e7
better check for whether we have a token; log event handler events
2007-10-18 20:29:17 -07:00
Dan Mills
d1a7c2c9db
Fix for logout/re-login (no, really!)
2007-10-18 10:00:09 -07:00
Dan Mills
83dcf8a934
DAVCollection refactoring
2007-10-18 03:13:35 -07:00
Dan Mills
9c582b26b9
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
028733fdcf
add lots more logging output to DAVCollection
2007-10-17 13:49:51 -07:00
Dan Mills
e4b5cd0af2
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
0fbbdb858d
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
2c83f59126
fix same-parent requirement for command likeness
2007-10-16 16:49:46 -07:00
cbeard@h-135.office.mozilla.org
e37ed78cbd
fix to allow subsequent logins
2007-10-16 15:47:54 -07:00
Dan Mills
306473cb72
baseURL -> userURL
2007-10-16 15:36:26 -07:00
Dan Mills
6c22ec8c4f
merge
2007-10-16 15:29:53 -07:00
Dan Mills
974bcd67cb
fix logout/re-login
2007-10-16 15:29:31 -07:00
cbeard@h-135.office.mozilla.org
f6026320d6
myk's patch to catch and ignore a microsummary exception
2007-10-16 15:29:02 -07:00
Dan Mills
4a15101d19
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
d7735d64e5
move account 'creation' into the service
2007-10-16 01:45:57 -07:00
Dan Mills
2cd9ed32cc
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
41fb97e1de
hook up resetServer to UI
2007-10-15 20:07:00 -07:00
Dan Mills
2b7699609d
only run generatorDone if there's an onComplete handler
2007-10-15 20:04:02 -07:00
Dan Mills
0203f6800c
new xpt from resetServer idl changes
2007-10-15 20:01:56 -07:00
Dan Mills
6dd8a95935
add resetServer to idl
2007-10-15 20:00:42 -07:00
Dan Mills
756c89fabd
add resetServer, fix schedule pref
2007-10-15 19:59:54 -07:00
Dan Mills
7b3006a7bd
listen to sync.enabled pref and enable/disable auto sync
2007-10-15 18:45:02 -07:00