Edward Lee
3cead7f04b
Bug 481741 - Switch to JSON from nsIJSON
2009-03-31 14:09:38 -05:00
Dan Mills
a3416e7e05
make dialogs non-resizable, split lazy callbacks out
2009-03-25 19:28:46 -07:00
Edward Lee
1bb424e037
Bug 482900 - Provide a friendlier UI to choose which ways to sync data. r=thunder
2009-03-20 02:35:46 -07:00
Edward Lee
2e7546aa96
Bug 484144 - Make sync status dialog not modal. r=thunder
2009-03-20 00:11:04 -07:00
Edward Lee
44040f2ce9
More window/dialog cleanup for commonly used dialogs
2009-03-19 14:21:23 -07:00
Edward Lee
08bcb777cd
:( trailing whitespace
2009-03-19 14:02:41 -07:00
Edward Lee
76a417ebc3
More services cleanup; Expose a Utils.openWindow/openDialog
2009-03-19 14:00:57 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
f014c6bb51
Was failing on Fennec because private browsing doesn't exist there -- now more gracefully handles missing components.
2009-03-10 17:12:59 -07:00
Edward Lee
d8fef43b78
Bug 481345 - Weave should be disabled while offline or private browsing mode is active. r=thunder
2009-03-10 06:30:36 -05:00
Edward Lee
e7a623aaec
Bug 482178 - Clean up services -> lazy services. r=thunder
2009-03-10 06:30:30 -05: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
33a1012482
Password sync for 0.3 (bug #468697 )
2009-03-03 00:42:57 +01:00
Dan Mills
09f5120a3a
use Gecko's version comparison API, don't clobber the server if the remote version > local client version
2009-02-23 12:36:55 -08:00
Dan Mills
5a2bbe124d
add makeURL function (returns an nsIURL), and add Svc.Memory (for memory service)
2009-02-11 19:19:04 -08:00
Dan Mills
cf68f2b71f
put prefs branch into Svc.Prefs
2009-02-10 00:52:05 -08:00
Dan Mills
3cedb09d82
Make records not extend Resource, instead they have a serialize() method that can be used to create a Resource for uploading if necessary.
...
Use global service instances under Svc.*
Consolidate various record managers (caches/convenience factories) to extend the same base object
Log exceptions caught by notify wrapper
2009-01-27 13:35:10 -08:00
Dan Mills
df6f18b5ca
catch undefined URIs in makeURI; use Svc global to cache IO service
2009-01-07 14:22:02 -08:00
Dan Mills
3079faacf5
add clients sync (list of clients with names and types); make it simpler to create Engine subclasses; remove the 2nd 'authenticator' parameter for Resources; resetServer is now wipeServer; consider 0 an invalid place ID (fixes bug when calculating item depths); add a Svc global exported from utils.js where commonly used services can live
2009-01-06 13:54:18 -08:00
Dan Mills
4e03472ec3
add debug for when setting password
2008-12-01 20:01:12 -08:00
Dan Mills
c61ef38151
change chrome url for weave passwords in login manager to chrome://weave
2008-12-01 19:04:49 -08:00
Dan Mills
4417f60124
print exception in async stack traces, skip async frames in async stack traces
2008-11-06 17:34:34 -08:00
Dan Mills
db796cabb8
makeUri: don't throw on invalid uris, return null instead
2008-11-03 14:56:56 -08:00
Dan Mills
ccaa17d552
Bug 450526: fix tag sync bug created by a typo in deepCopy. Fix by Mishail <mishail.mishail@gmail.com>
2008-08-14 17:23:11 -07:00
Dan Mills
ac61d5ab82
fix typo in utils deepCopy
2008-07-30 23:37:21 -07:00
Dan Mills
39b90d3639
when making deep copies of an object, default to alphabetically sorting the properties for adding
2008-07-23 15:46:48 -07:00
Dan Mills
d01bd7d888
allow deep copies of objects to optionally copy object properties in alphabetical order. This is useful to guarantee the order in which they would be serialized as json (which may depend on the order in which properties are added)
2008-07-16 19:36:06 -07:00
Dan Mills
115e70bcba
move formatAsyncFrame to utils, don't print 'regular' stack trace when we have an async exception (it's not useful)
2008-07-11 13:40:06 -07:00
Atul Varma
324ad97fb0
Refactored the exception-handling code a bit and made traces produced by async look more like they used to.
2008-07-01 12:03:05 -07:00
Anant Narayanan
b580a586dc
Prevent multiple lock requests from being executed (bug 441922, r=thunder)
2008-06-26 11:15:02 -07:00
Anant Narayanan
19b2afb2b9
Remove runCmd and other openssl related stuff we no longer need. (bug 441898, r=thunder)
2008-06-25 17:10:24 -07:00
Atul Varma
2e2db69479
Changed AsyncException so that it dynamically subclasses the exception it's wrapping, and adds an 'asyncStack' property to allow access to the asynchronous call stack. This, along with my previous few commits, makes the processing of stack traces in our code much more streamlined, and also allows our debugging output to be more informative, as stack information is now logged from the point at which an exception was thrown, rather than the point at which it was caught.
...
Also renamed some things in async.js to be more descriptive and easier-to-understand, albeit a bit more verbose.
2008-06-25 04:43:07 -07:00
Atul Varma
323d7df694
Made exception logging routines more informative and added logtests for them.
2008-06-25 00:13:36 -07:00
Atul Varma
15d84c6df5
Refactoring: consolidated duplicate code creating GUIDs via XPCOM gunk into a new function, Utils.makeGUID().
...
Note that there are some strange things re: whitespace in engines/bookmarks.js in this changeset; I literally only changed one line, though, and I'm not sure where they came from. Maybe it was js2-mode?
2008-06-20 12:34:29 -07:00
Atul Varma
7809c95d7d
Refactored some file operations into a new function in Utils and out of engines.js.
2008-06-18 14:12:24 -07:00
Atul Varma
b48aab609f
Moved XPCOM-specific stuff from engines/passwords.js to util.js so they could be easily stubbed-out by unit tests.
2008-06-18 11:54:24 -07:00
Atul Varma
8181559fa4
Refactored test_service and module code so that the weave service constructor is called, and auth is done more accurately.
2008-06-17 19:54:09 -07:00
Atul Varma
89886c8e2e
Fixed a minor typo, though there's a better way to do the unary getter which Myk told me about; will probably substitute that soon.
2008-06-17 11:11:56 -07:00
Atul Varma
6826c19d20
Fixed a strict warning in util.js.
2008-06-16 18:11:41 -07:00
Atul Varma
c040b0cc2f
Refactoring: made a new function, Utils.makeTimerForCall(), which is used by test suites and async.js.
2008-06-09 19:30:11 -07:00
Dan Mills
9316037c2c
remove some debugging output, fix some remaining array detection code
2008-05-24 17:30:22 -07:00
Dan Mills
38997acef8
continue sync of other engines even after one of them throws an exception; use constructor name instead of instanceof to check for array object in modules
2008-05-23 23:58:53 -07:00
Atul Varma
2802dad13d
Fixed a variety of style issues and minor warnings raised by js2-mode.
2008-05-23 11:05:42 -07:00
Dan Mills
017524a4d0
Various improvements:
...
* async generators: much better stack traces
* dav: use global identity system rather than login/logout to manage
usernames and passwords.
* dav: there is a checkLogin() instead of login() which can be used to
verify auth at any time.
* dav: make it so that we can (only internally atm) hold multiple
locks for different URLs.
* identity: add an identity manager singleton service to keep
identities globally, referenced by a name, with aliasing support (so
e.g., dav can ask for the 'dav' identity, while something else can
alias 'dav' to another identity).
* service: keep track of logged in status here, rather than in the dav
service. Use the global id manager.
2008-04-10 21:38:15 -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
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
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
019a0c8e6c
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
597fef2a0e
use a scriptableinputstream to correctly read openssl output
2008-02-19 20:53:01 -08:00
Dan Mills
e5769661ad
flesh out openssl code; still needs more work
2008-02-19 11:39:39 -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
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