Commit Graph

24 Commits

Author SHA1 Message Date
Dan Mills
a7291a69bd 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
4bbd3af126 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
89a59249b4 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
254b85afef 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
1908175a9c 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
384d06b7c6 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
4fd10f52ed workaround for services.m.c 500 error on some GET requests 2008-03-12 23:06:28 -07:00
Dan Mills
056dc3d2eb 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
99333d3c98 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
ad5f58d76e don't sync bookmarks/history unless they have been enabled 2008-03-05 18:36:58 -08:00
Dan Mills
b5fa263db3 clean up prefs; add logging prefs; check weave is enabled on scheduled sync 2008-02-13 16:07:11 -08:00
Dan Mills
907f537607 put utility functions in an object to avoid namespace pollution 2008-02-13 14:30:44 -08:00
Dan Mills
e81f3184d4 create user directories when they don't exist - good for personal webdav servers 2008-02-08 01:03:45 -08:00
Dan Mills
58454da1d0 add openssl support 2008-02-05 14:15:53 -08:00
Dan Mills
4712164e73 remove debug statements 2007-12-26 16:11:19 -08:00
Dan Mills
bf099ed106 Pull xxxtea code into modules/; fix passphrase bug in the login dialog 2007-12-26 16:10:23 -08:00
Dan Mills
46c7fac398 change prefs to live under extensions.weave 2007-12-20 14:46:12 -08:00
Dan Mills
af405adc38 ui / prefs fixes 2007-12-20 12:18:41 -08:00
Dan Mills
b957c13f7d 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
56b54b801e 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
87591e4c96 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
dee6b23c4d some more cleanup/refactoring; add history engine/core/store (history sync\!) 2007-12-14 18:07:25 -08:00
Dan Mills
8c9defe994 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
085f383f57 more and more refactoring: split weave module into multiple files (finally!) 2007-12-10 21:38:53 -08:00