Commit Graph

698 Commits

Author SHA1 Message Date
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
3a20cd63cc add WINNT-5.1 to makefile 2008-07-08 20:57:05 -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
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
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
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
Myk Melez
b4026a6a34 fix capitalization 2008-06-30 23:29:28 -07:00