Commit Graph

137 Commits

Author SHA1 Message Date
Dan Mills
40357d6963 more tab sync fixes, only disposing is left to fix; also allow the notify wrapper to pass along an optional data payload 2008-07-30 21:58:13 -07:00
Dan Mills
f4e8d5b2f6 some more ClientData fixes; *do* wipe the server when there is no version file; upload the version file when needed; refresh ClientData on login 2008-07-29 18:34:10 -07:00
Dan Mills
6965a649ec ClientData fixes; export to chrome as well 2008-07-29 18:15:13 -07:00
Dan Mills
34c0adde08 Remote.put doesn't require the data arg anymore 2008-07-29 17:35:10 -07:00
Dan Mills
eb368a0e98 print exceptions that come from engines 2008-07-25 16:54:37 -07:00
Dan Mosedale
67abd828bf Minor refactoring to allow for multiple application embeddings of Weave.
Also adds a Thunderbird embedding of weave and a fix to set the
username/password during verifyPassphrase (bug 446444), r=thunder@mozilla.com.
2008-07-21 18:12:27 -07:00
Dan Mills
ad42e1f155 during version check don't attempt to wipe the server when the version file isn't found (that was a workaround for old clients, before the version file existed) 2008-07-16 19:34:35 -07:00
Dan Mills
54261819d3 fix sanity checks in getKeypair, cause key 404s to be interpreted as a success condition in verifyPassphrase, re-fetch keys after generating them in initialize 2008-07-12 20:58:19 -07:00
Dan Mills
1314f77fd5 fix verifyPassphrase() 2008-07-12 20:31:27 -07:00
Dan Mills
8610bc7831 add last exception to fault tolerance module 2008-07-11 18:55:42 -07:00
Dan Mills
a545a2fe69 login code refactoring 2008-07-11 17:40:52 -07:00
Dan Mills
e0932c9eb0 beef up fault tolerance module and hook it up to the service 2008-07-11 14:47:15 -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
Chris Beard
0864124335 * sync on quit is now also skipped when there is a forced restart of the browser (e.g. updates, extension installs, etc.)
* formatting tweaks and cleanup for modal sync UI
2008-07-10 17:03:56 -07:00
Chris Beard
d8dd14adc2 * major revision to the login dialog to be more robust, adding error handling, styling and a help link
* some minor hacking of the login progress to improve performance
* expanded the application exit sync dialog to be a general modal sync dialog that will display whenever appropriate (e.g. during initial setup, on manual "sync now" requests, and on application exit)
* added a progress meter and status messages to the modal sync dialog to provide users with a better understanding of what's going on, and to assist in debugging
* added ability to cancel a modal sync request, including on application exit. when cancel is clicked on by the user, it will attempt to cancel the sync at the next opportunity (i.e. before the next sync engine is processed)
2008-07-09 17:17:24 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
bd20494b4e Removed a special menu item that I had installed in the main Weave menu just for debugging purposes. 2008-07-08 22:40:52 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
667ff6a599 Merged 2008-07-08 22:39:12 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
f85ccd8e03 I think I have fixed updateIncomingShare now. So everything should work, if I share with a user not myself. 2008-07-08 22:39:05 -07:00
Dan Mills
56d15bb003 sync every 5 minutes (up from 1); start the score threshold at 75 (down from 100); decrement threshold by 25 each iteration (up from 5). these changes guarantee even small changes will sync in no more than 15 minutes (down from 20) 2008-07-08 21:24:59 -07:00
Dan Mills
c99c4a380e remove 'waitOnQuit.enabled' pref, always wait for a running sync before quitting 2008-07-08 19:35:20 -07:00
Pazu
a7007a86a5 Sync on quit improvements.
A new preference called "waitOnQuit.enabled" was created. This preference controls whether Weave will perform any actions on quit. If false, Weave won't perform any actions on quit, nor wait for any running actions. If true, Weave will wait for any running sync to finish.

The old "syncOnQuit.enabled" preference now controls if Weave will actually perform a full sync on quit or not. If false, no sync is started, but we still wait for an active sync to finish, if waitOnQuit.enable is true.

Both options default to true.
2008-07-08 15:31:47 -03:00
Dan Mills
0dddd214cb Move KeyPair object (which caches keys) to a property of the service. Clear it on logout 2008-07-08 18:37:14 -07:00
Pazu
dc392c661c Clear KeyPair cache on server wipe, and make new key generation work again. 2008-07-08 17:06:21 -03:00
Pazu
b236620721 Performance improvements: keypair is now fetched only once, and cached in memory. 2008-07-08 15:33:17 -03:00
Dan Mills
96c7ee8c92 keep track of errors during sync and throw after trying all engines 2008-07-08 17:44:00 -07:00
Dan Mills
c81980a78b Bug 443385: unconditionally remove saved local token, regardless of whether the UNLOCK command succeeded; also cleans up some variable naming re: local locks in dav.js; cosmetic changes in wrap.js 2008-07-07 22:30:32 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
aec12c49b7 Merged 2008-07-01 10:18:43 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
4fecd557d6 Made _stopSharing and _stopOutgoingShare more fault-tolerant (they will no longer die if the expected annotation is missing. 2008-07-01 09:58:00 -07:00
Dan Mills
6e7edb9216 save username/pass in verifyLogin, at least for now 2008-06-30 23:41:47 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
7bbfe68b76 Combined shareData and stopSharingData into one function to reuse code; made it so that if it gets called when Weave.DAV is already locked, instead of failing it sets up an observer that will trigger the share to happen as soon as the sync-succeeded or sync-failed message is received. 2008-06-30 22:30:04 -07:00
Atul Varma
458713c3d9 Added documentation for Service._getKeypair(). 2008-06-30 18:09:30 -07:00
Atul Varma
1585bdaea4 The auto-login at startup no longer unconditionally syncs; if the login fails, the sync is now aborted. 2008-06-30 17:55:48 -07:00
Atul Varma
8078914d96 Added a Service.verifyPassphrase() method. Also, Service.login() now checks to ensure that the user's passphrase is valid, and if it's not, it throws an exception. 2008-06-30 16:50:19 -07:00
Atul Varma
a7d8315951 Fixed a potential bug in Service.login() whereby a user's directory wouldn't be created if it didn't exist (though it would in Service.verifyLogin(), which is only called from the setup wizard). 2008-06-30 15:54:15 -07:00
Dan Mills
69e360a807 style fixes, js warning fixes 2008-06-30 14:00:06 -07:00
Dan Mills
367f6c44ac make resetguids async 2008-06-29 07:00:53 -07:00
Dan Mills
07ebed63a8 don't even try to sync when the local lock is taken 2008-06-26 16:37:38 -07:00
Dan Mills
909d679020 fix comment in verifyLogin 2008-06-26 14:30:38 -07:00
Dan Mills
2873c5b700 check login status code in service's verifyLogin; attempt to create user directory when it's a 404 2008-06-26 12:27:54 -07:00
Myk Melez
d187376a75 bug 436636: a system for showing various kinds of notifications in one consolidated location 2008-06-25 13:51:39 -07:00
Atul Varma
434d0a77bf Another automated merge. I'm kind of confused at this point, so I hope I'm not breaking anything by mis-merging. 2008-06-25 04:45:22 -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
Justin Dolske
678aa99626 Split account verification out from login(), make wizard work for using an existing account, related code cleanup/simplification 2008-06-25 00:22:53 -07:00
Atul Varma
130d3dbbe7 Fixed something that I should've changed in my last commit; also removed a call to Utils.stackTrace() that shouldn't have been made. 2008-06-24 19:58:50 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
8ad5c2a828 Merged 2008-06-24 13:41:25 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
6d56568a9e Merged 2008-06-24 13:41:12 -07:00
chris@h-194.office.mozilla.org
7a0411af09 added embedded verification method to login (this wants to be it's own object method, but should work well enough for now.)
some formatted cleanup for wizard.js
2008-06-24 12:42:52 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
415890ca9e Finished the bridge between UI code and bookmark engine so that stopSharing gets called when you pick the menu itme. 2008-06-24 12:22:32 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
c8ba0cdfff Make the stop-sharing-data command work 2008-06-23 18:23:08 -07:00
Justin Dolske
53d6ead038 Bug 433949 - Use WeaveCrypto component (NSS) instead of OpenSSL 2008-06-23 16:23:57 -07:00