Dan Mills
f6d457946c
beef up fault tolerance module and hook it up to the service
2008-07-11 14:47:15 -07:00
Dan Mills
94709c6381
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
0c474a106e
Automated merge with http://hg.mozilla.org/labs/weave
2008-07-11 12:59:36 -07:00
Chris Beard
bfde197997
- added checks to see if registration is closed, and if so, shows a message to the user on the account creation pane.
...
- added description to 423 locking warnings, as they are not necessarily a bad thing. temporary as we really need more reobust management of locking when multiple clients are potentially syncing at once.
- minor clean up of passphrase verification in the wizard. passphrase verification is still a bit buggy though...
2008-07-11 09:38:44 -07:00
Chris Beard
0d444333bb
* 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
Dan Mills
5a0524b185
merge upstream changes
2008-07-09 17:37:09 -07:00
Dan Mills
15995cac06
cosmetic cleanup to yield calls in the reconciler
2008-07-09 17:36:40 -07:00
Chris Beard
e9ac166a41
* 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
98215f2fc8
Made bookmarkSharingManager._updateOutgoingShare tolerant of outgoing shares that are lacking a server path annotation: it will warn that they're invalid and return, rather than dying.
2008-07-09 16:57:55 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
436fb329bb
Made wrapping of outgoing shares not crash if an outgoing share is missing an exptected annotation.
2008-07-09 13:45:10 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
3cc4b5541f
Restored a line in bookmarkSharingManager.js which I took out by accident when removing debugging dumps and stuff, changeset 969. It should not have been taken out; without it you get 'mounts undefined' error.
2008-07-09 13:24:49 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
3e2ccbce0c
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
1ebd8b0a44
Merged
2008-07-08 22:39:12 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
a0611ee8e1
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
c2bdb5473d
bump version to 0.2.2
2008-07-08 21:25:15 -07:00
Dan Mills
e7a43d3f19
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
011f9243a4
version bump to 0.2.1
2008-07-08 19:40:55 -07:00
Dan Mills
163332a45b
remove 'waitOnQuit.enabled' pref, always wait for a running sync before quitting
2008-07-08 19:35:20 -07:00
Atul Varma
899b6df522
Automated merge with http://hg.mozilla.org/labs/weave
2008-07-08 16:51:08 -07:00
Atul Varma
33c970ec5e
If an exception is raised by a notification button callback, it is now logged. Also added a unit test for this new behavior.
2008-07-08 16:50:59 -07:00
Dan Mills
33bac67100
merge upstream changes
2008-07-08 16:34:52 -07:00
Dan Mills
1a6a8397c4
Bug 444119: catch errors during a lock and avoid a deadlock
2008-07-08 16:34:27 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
7f36e552e6
Removed a bunch of dump statements that were in bookmarkSharingManager for old debugging stuff that is now done; they were just cluttering up the log.
2008-07-08 15:05:24 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
cfe420f221
updateOutgoingShare now explicitly encodes data to json before encrypting and uploading.
2008-07-08 14:52:31 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
5d937affe2
Fixed a typo in sendXmppNotification call
2008-07-08 14:51:14 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
386784122b
Removed debugging dump statements from dav.js.
2008-07-08 14:37:51 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
2895b903a2
Fixed another trivial bug in BookmarkSharingManager._stopSharing that was making it fail at sending out the xmpp notification.
2008-07-08 14:19:26 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
55ec19cf3c
Fixed some trivial bugs in BookmarkStore._wrapMountOutgoing that were preventing the outgoing share from working properly.
2008-07-08 14:15:55 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
2b8d2d7cb3
Factored the sending of xmpp notifications in bookmarkSharingManager out into a separate function, to save some duplicated code and make it easier to break xmpp stuff into a separate class later. Also made the bookmarkSharingManager cache the current weave username, which it uses a lot. Finally it now prepends /user/this._myUsername/ to server URLs to make them into absolute paths before sending them to the sharing partner over xmpp, which fixes a leftover TODO from a copule days ago.
2008-07-08 14:11:21 -07:00
Dan Mills
b0bede9548
sigh, my previous unlock change actually breaks unlock. fix fix fix.
2008-07-08 13:56:03 -07:00
Dan Mills
13c049d2de
merge upstream changes
2008-07-08 11:59:28 -07:00
Dan Mills
31a5149a4c
check that we have a local lock token before trying to delete it (or 'delete' will fail)
2008-07-08 11:58:59 -07:00
Pazu
318f20223c
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
22d3e6a2d2
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
e4dc334725
Clear KeyPair cache on server wipe, and make new key generation work again.
2008-07-08 17:06:21 -03:00
Pazu
795762882d
Performance improvements: keypair is now fetched only once, and cached in memory.
2008-07-08 15:33:17 -03:00
Dan Mills
5082e5e422
keep track of errors during sync and throw after trying all engines
2008-07-08 17:44:00 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
acf0d0ded8
Merged
2008-07-08 01:18:40 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
1cf9a1dea9
Fixed a bunch of bugs in bookmark share: stuf related to server-side paths being incorrect (because the defaultPrefix in DAV was getting reset to an empty string or was getting applied wrong). Discovered that updateOutgoingShare and updateIncomingShare were both calling the same _wrapMount() function, which was incorrect, so I broke that up and fixed what parts are meant to be outgoing and which incoming.
2008-07-08 01:18:30 -07:00
Dan Mills
54a2a8a785
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
9cfef4be35
Fixed a whole bunch of bugs in bookmark share, mostly related to adding in needed JsonFilters for remote Resources and fixing the server paths which are passed into DAV for the keyring file and encrypted share data files. (Also fixed a minor bug in DAV itself so that mkcol won't quit right away if you pass it something that starts with a slash.)
2008-07-03 17:57:21 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
6732077b30
Merged
2008-07-01 14:41:12 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
f11ad3f3e3
Updated a couple of comments in bookmark sharing
2008-07-01 14:41:04 -07:00
Atul Varma
d70f1743f8
Automated merge with http://hg.mozilla.org/labs/weave
2008-07-01 12:03:12 -07:00
Atul Varma
7303b375dc
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
Myk Melez
c5d6255581
make sure nsIObserverService notifications have subjects before accessing the subjects' wrappedJSObject properties
2008-07-01 11:29:20 -07:00
Atul Varma
0013cac9d2
Automated merge with http://hg.mozilla.org/labs/weave
2008-07-01 11:12:53 -07:00
Atul Varma
71372f5452
Tracebacks for async coroutines now provide a 'best guess' for where the coroutine was at the time that an exception was thrown, by showing the frame at which the generator's last continuation callback was created.
...
Added a 'location' property to RequestException, analogous to the 'location' property of wrapped nsIExceptions, so that tracebacks can be made for the exceptions if needed.
2008-07-01 11:12:00 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
11dda58df6
Fixed yet another typo: this._sharing._share, not this._sharing.share.
2008-07-01 10:35:15 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
b7f7372c9f
Fixed typo where undefined value was getting passed into share and stopSharing: should be node.itemId, not node.id
2008-07-01 10:31:16 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
fd7f338963
Fixed missing import
2008-07-01 10:27:19 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
a410545ba4
Fixed another typo
2008-07-01 10:26:01 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
fcb7743ce0
Fixed typo in BookmarkSharingManager._bms initialization
2008-07-01 10:24:52 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
10d9360015
Merged
2008-07-01 10:18:43 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
ba7249a10a
Made _share() and _stopSharing() take bookmark item ID numbers instead of XUL nodes.
2008-07-01 10:18:35 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
aa859a7626
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
1556cc4511
version bump (0.2.0)
2008-07-01 00:04:47 -07:00
Dan Mills
e53b8d1689
merge upstream changes
2008-06-30 23:42:00 -07:00
Dan Mills
44c908db91
save username/pass in verifyLogin, at least for now
2008-06-30 23:41:47 -07:00
Atul Varma
994e224c7d
Automated merge with http://hg.mozilla.org/labs/weave
2008-06-30 23:36:06 -07:00
Atul Varma
e04369a218
Modified sharing.js to obey the new sharing api.
2008-06-30 23:36:00 -07:00
Dan Mills
802f7a254d
fix cookie command logging; skip cookie commands for items we don't have
2008-06-30 23:26:35 -07:00
Dan Mills
e9d12f341f
continue if there is an edit command for an item we don't have (just print a warning)
2008-06-30 23:25:51 -07:00
Dan Mills
4c4dfecbc8
fix a missing yield, split up a couple of lines for clarity
2008-06-30 23:25:15 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
5d960d2e8f
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
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
dae06b83f1
Added test_bookmark_sharing to version control; note this doesn't pass right now (and in fact the main test is commented out.)
2008-06-30 18:50:06 -07:00
Atul Varma
07f3aacf01
Added documentation for Service._getKeypair().
2008-06-30 18:09:30 -07:00
Atul Varma
aa2cab9380
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
d7ff36daab
Fixed a bug from r5a5113a0a405 that caused some syncing unit tests to fail.
2008-06-30 16:55:38 -07:00
Atul Varma
7512505bb7
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
bd11079518
Automated merge with http://hg.mozilla.org/labs/weave
2008-06-30 15:54:21 -07:00
Atul Varma
4c44bcd581
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
Myk Melez
ac691d002a
Automated merge with ssh://hg.mozilla.org/labs/weave/
2008-06-30 15:16:31 -07:00
Myk Melez
3f7efe892f
bug 442711: validate virtual tabs to make sure they have the minimal information necessary to recreate them before trying to save them or notify the user about them
2008-06-30 15:13:07 -07:00
Atul Varma
3e6bb56f61
Moved isPassphraseValid() out of its test suite and into the crypto module.
2008-06-30 14:40:11 -07:00
Dan Mills
c66f11ca21
merge upstream changes
2008-06-30 14:01:10 -07:00
Dan Mills
d7df22716d
change onQuit dialog to wait for a running sync in order to start the last sync
2008-06-30 14:00:55 -07:00
Dan Mills
32d1262667
style fixes, js warning fixes
2008-06-30 14:00:06 -07:00
Dan Mills
fdde68445a
change AsyncException so it implements toString (which returns the original exception)
2008-06-30 13:58:42 -07:00
Anant Narayanan
7f8e383db6
Fix syntax errors that were causing unit tests to fail
2008-06-30 12:26:41 -07:00
Anant Narayanan
645c447eb6
Fix small bug with PasswordTracker returning scores > 100
2008-06-30 11:33:25 -07:00
Anant Narayanan
f7911b9746
Primitive password tracking support (bug 435320, r=thunder)
2008-06-30 11:19:07 -07:00
Dan Mills
8d3532f8e0
bump version
2008-06-29 17:40:49 -07:00
Dan Mills
cbd9cd6819
import async module
2008-06-29 17:37:11 -07:00
Dan Mills
a4ae67b71a
define _resetGUIDs in store
2008-06-29 17:36:59 -07:00
Dan Mills
091c571bd1
import async module
2008-06-29 17:36:35 -07:00
Dan Mills
293b220818
use this._lookup instead of command.data for remove commands
2008-06-29 17:36:13 -07:00
Dan Mills
b32d63ca14
bump version
2008-06-29 11:54:26 -07:00
Dan Mills
3d16ec76a6
fix cooe engine's resetGUIDs method by importing async module; don't call runInBatchMode in bookmark engine's resetGUIDs, it doesn't work atm
2008-06-29 11:44:27 -07:00
Dan Mills
80417871c4
merge upstream changes
2008-06-29 07:07:11 -07:00
Dan Mills
e03543007a
make resetguids async
2008-06-29 07:00:53 -07:00
Anant Narayanan
d2a1e9e87d
Make PasswordStore process removeCommands correctly (bug 442090, r=thunder)
2008-06-28 01:13:14 -07:00
Anant Narayanan
089c1c0f42
General restructure for performance improvements (bug 441907, r=thunder)
2008-06-27 20:16:43 -07:00
Dan Mills
c0471ca320
make log messages that print raw engine json be trace messages
2008-06-27 14:21:54 -07:00
Dan Mills
1c1346203f
merge upstream changes
2008-06-26 17:28:46 -07:00
Dan Mills
226de0e980
bump version to 0.1.32, storage format version (global & engine) to 3
2008-06-26 17:28:30 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
5856868591
Removed unneeded atob() and btoa() definitions from authenticationLayer.
2008-06-26 17:26:21 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
448ef4478e
Merged
2008-06-26 17:01:12 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
d654677b9a
Fixed several minor bugs with bookmark sharing
2008-06-26 17:00:55 -07:00
Dan Mills
9f77422143
merge upstream changes
2008-06-26 16:38:00 -07:00