Commit Graph

987 Commits

Author SHA1 Message Date
Dan Mills
4e0bcf16b3 fix bookmark deletion sync 2008-11-25 01:49:02 +09:00
Dan Mills
e33f7592d2 add some debug chatter 2008-11-25 01:48:38 +09:00
Dan Mills
89b35d0700 clean up sync function, get last timestamp properly from post result, save correct snapshot at the end, only attempt to post changes to server if there are any changes at all 2008-11-25 01:04:14 +09:00
Dan Mills
f2e8d057d2 add tmp hack to work around server payload json decoding bug 2008-11-25 01:03:01 +09:00
Dan Mills
393262eead enable batch upload, yay! 2008-11-20 10:38:53 +09:00
Dan Mills
12497bf643 merge with upstream changes 2008-11-20 09:25:32 +09:00
Dan Mills
529df21f87 work with NewEngine 2008-11-20 09:21:12 +09:00
Dan Mills
f5d4bdee2f more NewEngine impl 2008-11-20 09:20:25 +09:00
Dan Mills
e29bc6f56b make it so filters can be called (to e.g. manually copy resource data out 2008-11-20 09:19:51 +09:00
Dan Mills
97f4ec08be attempt at fixing login/server setup, needs more work still 2008-11-20 09:18:35 +09:00
Dan Mills
e024387870 remove unused fields, add half-baked impl to get password from ui 2008-11-20 09:17:15 +09:00
Dan Mills
a39e685d32 add filter to wbo to set their id automatically based on uri 2008-11-20 09:16:08 +09:00
Dan Mills
08938154f7 collection class 2008-11-20 09:15:34 +09:00
Dan Mills
37168b9208 add rsa gen debug messages 2008-11-20 09:15:16 +09:00
Dan Mills
7fbf3df420 record import (cache) fix 2008-11-20 09:14:42 +09:00
Dan Mills
29327d3a4a add resource logger pref; lower numretries to 2 2008-11-20 09:13:06 +09:00
Anant Narayanan
8913caf3b1 Fix redeclaration (bug #463870) 2008-11-13 01:51:24 +01:00
Dan Mills
a326e50969 cache crypto meta objects 2008-11-08 20:24:12 -08:00
Dan Mills
06155f7fae crypto changes: private keys get their own iv and salt, crypto meta records get a separate iv and no salt. various fixes in crypto code and other wbo related objects. fix crypto tests to match. 2008-11-08 02:00:33 -08:00
Dan Mills
5ad74e339a make sure records always have a data field that represents their state (e.g. for serialization); add some pki routines (createKeypair); add incoming/outgoing queue to NewEngine 2008-11-06 23:23:35 -08:00
Dan Mills
69c1a4e1d6 say sync complete when it is! 2008-11-06 19:19:32 -08:00
Dan Mills
bcc82d82b7 remove some sharing code, derive from NewEngine 2008-11-06 19:18:46 -08:00
Dan Mills
928d63611b add a temp NewEngine class that will talk to the 0.3 server 2008-11-06 19:18:07 -08:00
Dan Mills
0fac05e0b5 url -> uri 2008-11-06 17:38:35 -08:00
Dan Mills
4d7fbe6ec5 small module to get an event at startup 2008-11-06 17:37:48 -08:00
Dan Mills
07040c452e lots o' fixes 2008-11-06 17:37:17 -08:00
Dan Mills
8a9de827b9 onException cleanup 2008-11-06 17:36:41 -08:00
Dan Mills
301038743b url -> uri 2008-11-06 17:36:19 -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
1d2ec8a7a2 use util module's stack formatter 2008-11-06 17:32:33 -08:00
Dan Mills
777ac672ee hg merge 2008-11-03 15:02:00 -08:00
Dan Mills
25a8c72d97 fix log4moz calls (new api), fix module imports for renamed modules 2008-11-03 15:00:38 -08:00
Dan Mills
03017b4bfc remove lots of code that will not be needed with new server 2008-11-03 14:59:45 -08:00
Dan Mills
87609716e1 remove server lock wrapper; change local lock to work with service.js local locking api 2008-11-03 14:57:59 -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
9fbfbe43a0 add max retries config setting that resources support now 2008-11-03 14:54:21 -08:00
Dan Mills
951c71e98a wizard eula screen changes 2008-11-03 14:53:33 -08:00
Dan Mills
e7ff943d3a log4moz api change: Log4Moz.Service is gone. There is now a Log4Moz.repository which will auto-instantiate to a LoggerRepository (but can also be set if one wishes to use a different one). Also includes some other minor changes, e.g. formatters are now optional (and default to a BasicFormatter if not provided) 2008-11-03 14:48:53 -08:00
Dan Mills
039bc89a8c add http js server for unit tests; add tests for resources, auth manager, base weave record types (WBOs, keys, crypto wrappers/crypto meta) 2008-11-03 14:41:39 -08:00
Dan Mills
99d2fbfe17 Update Observers js module to latest version 2008-11-03 14:40:28 -08:00
Dan Mills
70ac045761 add prefs js module 2008-11-03 14:40:09 -08:00
Dan Mills
7fcd3cdee1 commit platform-dependent binaries so that it's easier to get started to hack on weave 2008-11-03 14:39:40 -08:00
Dan Mills
2ffe3b8d8f remove dav.js (gone) and remote.js (resources now in resource.js) 2008-11-03 14:38:34 -08:00
Dan Mills
542bee77cd add base record types for the new weave server api 2008-11-03 14:37:51 -08:00
Dan Mills
432eb0750b updates to resource class, use a new Auth service with pluggable 'authenticator' objects 2008-11-03 14:36:29 -08:00
Dan Mills
39cd06892b fix terms link 2008-10-16 12:40:54 -07:00
Dan Mills
69192d9edb bump version to 0.2.7 2008-10-16 12:32:40 -07:00
Dan Mills
fe5432229f disable sharing test 2008-10-16 12:31:27 -07:00
Dan Mills
84f34f44c7 disable bookmark sharing hooks 2008-10-16 12:30:30 -07:00
Dan Mills
a9952f3101 Bug 443489: use the correct cookie xpcom interface 2008-10-16 12:29:21 -07:00
Dan Mills
21c2151727 remove eula screen, replace it with shorter text on the intro page of the wizard 2008-10-16 12:17:42 -07:00
Dan Mills
dc8208bcd3 add platform-specific binaries so they don't need to be built when making a fresh checkout 2008-09-29 13:17:49 -07:00
Dan Mills
727df70c34 Add some logging helpers to log4moz, written by myk 2008-08-19 17:28:02 -07: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
54aa798d98 catch exceptions from microsummaries that don't have a static title set 2008-08-13 15:23:15 -07:00
Dan Mills
2e17c212f4 Bug 450396: password engine does not define a tracker 2008-08-13 15:19:56 -07:00
Dan Mills
3f46b77cd5 bump version to 0.2.6 2008-08-08 15:14:04 -07:00
Dan Mills
949e936ba2 merge upstream changes 2008-08-08 14:43:36 -07:00
Dan Mills
dea1506c58 move some code from the engine to remote.js; rename FileEngine to BlobEngine (since it doesn't actually sync complete files); clean up SyncEngine's sync method 2008-08-08 14:42:57 -07:00
Dan Mills
7785d82950 small fix in _fixParents; change reconcile to 1) not require a deepEquals to drop an incoming/outgoing command pair, merely a GUID match (we can do this because we know we'll drop server changes and use client ones, and because we know we'll actually do a fresh diff at the end to send commands to the server), and 2) check for creates of existing guids after the first pass (since we might find command pairs that go away and thus not hit that error) 2008-08-08 14:40:52 -07:00
Dan Mills
6829e5453a whitespace fix 2008-08-08 12:34:01 -07:00
Anant Narayanan
308d8f0df0 Automated merge with ssh://anarayanan@mozilla.com@hg.mozilla.org/labs/weave 2008-08-07 20:00:46 -07:00
Anant Narayanan
201ede3f4d Syncing for Awesome bar (bug 437133, r=thunder) 2008-08-07 20:00:35 -07:00
Dan Mosedale
3670146b3a Fix a typo that could cause an error in appendDelta() 2008-08-06 14:51:41 -07:00
Anant Narayanan
f02be43079 Client-side OAuth support (bug 444528, r=thunder) 2008-08-04 17:34:21 -07:00
Anant Narayanan
b5905c72cf Automated merge with ssh://anarayanan@mozilla.com@hg.mozilla.org/labs/weave 2008-08-04 17:23:36 -07:00
Anant Narayanan
b5847e6adf Asynchronous bookmark sharing (bug 449113, r=thunder) 2008-08-04 17:23:23 -07:00
Dan Mills
6ca851f06f refresh clients on a timer when changed via the prefpane, otherwise just wait until next sync 2008-07-31 01:59:03 -07:00
Dan Mills
87cc594f38 sync client data when client prefs change 2008-07-31 01:02:41 -07:00
Chris Beard
b16f30644c UI for clients 2008-07-31 00:39:57 -07:00
Dan Mills
19f1930dbf merge upstream changes 2008-07-31 00:21:53 -07:00
Dan Mills
92d6278f39 filter out invalid tags when applying edit commands 2008-07-31 00:21:22 -07:00
Dan Mills
7e76ae5040 add a hack that supresses a strange error (this._remote.status.data is null, even though it was downloaded correctly) 2008-07-31 00:20:55 -07:00
Chris Beard
dac82813d9 adding UI to add/edit client name and types 2008-07-30 23:48:33 -07:00
Dan Mills
ac61d5ab82 fix typo in utils deepCopy 2008-07-30 23:37:21 -07:00
Dan Mills
0a5898a74f do log some stack traces 2008-07-30 22:53:27 -07:00
Dan Mills
2486e65567 have RemoteStore inherit from Store 2008-07-30 22:53:11 -07:00
Dan Mills
feddcff67b fix snapshot typos in SyncEngine 2008-07-30 22:52:49 -07:00
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
820b732ed5 get tab sync halfway working again, with fileengine 2008-07-30 00:05:09 -07:00
Dan Mills
893bbb5609 use client GUID (from ClientData) for FileEngine 2008-07-29 18:38:58 -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
9ad12df38a mostly finish up ClientData impl 2008-07-29 17:34:21 -07:00
Dan Mills
71ee248930 allow Resource.put to have no data arg (in which case it will use its internal _data property) 2008-07-29 17:33:53 -07:00
Dan Mills
5eaf61e96f initial client data module from chris+me 2008-07-29 15:44:36 -07:00
Dan Mills
5243e7a653 Keychain's constructor doesn't need an identity anymore 2008-07-29 15:39:09 -07:00
Dan Mills
856921abd1 sync the *latest* 10 back-button entries per tab (not the earliest ones) 2008-07-29 15:37:59 -07:00
Dan Mills
3cc3c36b0b get crypto working with FileEngine 2008-07-29 12:04:41 -07:00
Dan Mills
dea3f0cad7 initial try to get crypto working with FileEngine 2008-07-29 11:03:06 -07:00
Dan Mills
c9220f8d0f Implement FileEngine 2008-07-25 17:02:43 -07:00
Dan Mills
eb368a0e98 print exceptions that come from engines 2008-07-25 16:54:37 -07:00
Dan Mills
cadfaec0d3 split Engine into SyncEngine and FileEngine 2008-07-25 01:06:23 -07:00
Dan Mills
bf0fbff313 Default to not doing anything for resetGUIDs. Define an observer for subclasses to use 2008-07-24 19:29:11 -07:00
Dan Mills
65401314a1 merge upstream changes 2008-07-23 15:47:49 -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
94bb10dca1 only wrap the first 10 entries in a tab 2008-07-23 15:46:13 -07:00
Anant Narayanan
2e5f6e903f Fix forgot password link (bug #442956) 2008-07-21 20:53:30 -07:00
Dan Mills
298c978e1e merge upstream changes 2008-07-21 18:24:35 -07:00
Dan Mills
713d7b5015 Fix network timeouts, make them take into account progress; re-upload new snapshot after 25 deltas 2008-07-21 18:23:51 -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
9c15468557 version bump to 0.2.5 2008-07-17 21:27:50 -07:00
Dan Mills
c8127f0d15 fixes to request timeout code 2008-07-17 21:27:01 -07:00
Dan Mills
1cf2bb8b65 when changing passwords, do not allow the new one to be the same as the passphrase 2008-07-17 20:41:10 -07:00
Dan Mills
9f0826260d time out requests after 30 seconds 2008-07-17 20:40:29 -07:00
Dan Mills
6360e435d6 check at startup if the crypto module appears to be working and alert the user if not 2008-07-17 20:39:55 -07:00
Dan Mills
5d2591dac9 use just 'Darwin' for the platform dir on OSX. 'Darwin-gcc3' does not appear to work correctly 2008-07-17 20:38:42 -07:00
Dan Mills
3b80869547 rollback last commit (1843a139184a), it causes cookie unit test to fail 2008-07-16 21:11:18 -07:00
Dan Mills
1881fb20f5 Bug 443489: Use nsICookie2 interface instead of nsICookie. Patch by fabrice@bellet.info 2008-07-16 20:51:25 -07:00
Dan Mills
a8f5952d90 Bug 442931: Create a universal (x86/PPC) component on mac. Patch by Godwin Chan <godwinchan@hotmail.com>, with tweaks by me 2008-07-16 20:47:16 -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
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
54b69b59c8 fix a strict warning when onComplete is null 2008-07-16 19:33:07 -07:00
Dan Mills
d52c57db3a Bug 442679: Add support for compiling on 64-bit linux systems. Patch by Mark Wilkinson <mhw@kremvax.net> 2008-07-13 04:06:44 -07:00
Dan Mills
ab7300dfcb version bump to 0.2.4 2008-07-12 21:08:36 -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
b777b12006 version bump to 0.2.3 2008-07-11 19:01:36 -07:00
Dan Mills
75cfafcd2e rethrow exceptions the fault tolerance module says are bad. catch lock exceptions in the notify wrapper and don't rethrow them (hack) 2008-07-11 19:01:06 -07:00
Dan Mills
83a044888c merge upstream changes 2008-07-11 18:55:58 -07:00
Dan Mills
8610bc7831 add last exception to fault tolerance module 2008-07-11 18:55:42 -07:00
Chris Beard
f689241aa2 - adding modal sync dialog handling of lock condition 2008-07-11 18:52:04 -07:00
Chris Beard
9d136721e3 - in sync error notification changed "try again" to "sync now.." which will pop a modal sync. 2008-07-11 18:29:33 -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
Atul Varma
0640d43c73 Automated merge with http://hg.mozilla.org/labs/weave 2008-07-11 12:59:36 -07:00
Chris Beard
767489d1f8 - s/out/our and server timeout from 10s to 15s (from originally 30s, which was causing people to think the app was locked up) 2008-07-11 09:44:17 -07:00
Chris Beard
ae91da4fe7 - 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
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
Dan Mills
8ea82588a1 merge upstream changes 2008-07-09 17:37:09 -07:00
Dan Mills
07413564b5 cosmetic cleanup to yield calls in the reconciler 2008-07-09 17:36:40 -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
3958272f2f 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
3b9c5862fe 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
641eb1a7b6 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
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
dec3de3f43 bump version to 0.2.2 2008-07-08 21:25:15 -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
57c0a00aea add WINNT-5.1 to makefile 2008-07-08 20:57:05 -07:00
Dan Mills
e52df6465a version bump to 0.2.1 2008-07-08 19:40:55 -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
Atul Varma
dca3df0b8e Automated merge with http://hg.mozilla.org/labs/weave 2008-07-08 16:51:08 -07:00
Atul Varma
c2a871ca90 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
292500626c merge upstream changes 2008-07-08 16:34:52 -07:00
Dan Mills
40960d1ed6 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
ce41859570 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
03f88e3999 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
d8efbc2d3a Fixed a typo in sendXmppNotification call 2008-07-08 14:51:14 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
d2653194ec Removed debugging dump statements from dav.js. 2008-07-08 14:37:51 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
47bc8eddcb 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
0de5281660 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
a5f9dcec3c 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
7f6f588251 sigh, my previous unlock change actually breaks unlock. fix fix fix. 2008-07-08 13:56:03 -07:00
Dan Mills
eb2c86fbad merge upstream changes 2008-07-08 11:59:28 -07:00
Dan Mills
52b346f2ae 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
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
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
7eaefd664c Merged 2008-07-08 01:18:40 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
96c266fabd 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
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
2730650303 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
36eefd48b9 Merged 2008-07-01 14:41:12 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
2d565ac8d1 Updated a couple of comments in bookmark sharing 2008-07-01 14:41:04 -07:00
Atul Varma
2bbe3209ba Automated merge with http://hg.mozilla.org/labs/weave 2008-07-01 12:03:12 -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
Myk Melez
e54c191e12 make sure nsIObserverService notifications have subjects before accessing the subjects' wrappedJSObject properties 2008-07-01 11:29:20 -07:00
Atul Varma
993d72b845 Automated merge with http://hg.mozilla.org/labs/weave 2008-07-01 11:12:53 -07:00
Atul Varma
3e0284ee03 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
b3333fd199 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
80b01453fd 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
b3e8f8b8db Fixed missing import 2008-07-01 10:27:19 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
d67ca10f88 Fixed another typo 2008-07-01 10:26:01 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
a35f51f73c Fixed typo in BookmarkSharingManager._bms initialization 2008-07-01 10:24:52 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
aec12c49b7 Merged 2008-07-01 10:18:43 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
b1a3079307 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
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
dc70624e6a version bump (0.2.0) 2008-07-01 00:04:47 -07:00
Dan Mills
e9adfe310f merge upstream changes 2008-06-30 23:42:00 -07:00
Dan Mills
6e7edb9216 save username/pass in verifyLogin, at least for now 2008-06-30 23:41:47 -07:00
Atul Varma
5ed80bc920 Automated merge with http://hg.mozilla.org/labs/weave 2008-06-30 23:36:06 -07:00
Atul Varma
1706138873 Modified sharing.js to obey the new sharing api. 2008-06-30 23:36:00 -07:00
Myk Melez
8556bd6f1b fix capitalization 2008-06-30 23:29:28 -07:00
Dan Mills
e920fd9905 merge upstream changes 2008-06-30 23:26:49 -07:00
Dan Mills
0d37d89362 fix cookie command logging; skip cookie commands for items we don't have 2008-06-30 23:26:35 -07:00
Dan Mills
99733dce11 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
2491e11076 fix a missing yield, split up a couple of lines for clarity 2008-06-30 23:25:15 -07:00
Myk Melez
9b63eb2e35 bug 442849: correct inconsistencies and grammar nits in wizard text 2008-06-30 22:58:51 -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
Maria Emerson
af37bfa156 image update 2008-06-30 21:05:18 -07:00
Atul Varma
6f5c49a7f2 Fixed a todo in test_bookmark_sharing, still more left to do as jono's modifications to the bookmark sharing API change. 2008-06-30 19:27:39 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
5a356c8855 Merge 2008-06-30 18:50:19 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
d0ad973507 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
Dan Mills
5f5f2e4d23 update URLs to services.mozilla.com/ 2008-06-30 18:49:46 -07:00