Граф коммитов

743 Коммитов

Автор SHA1 Сообщение Дата
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
Atul Varma 8e25800585 Automated merge with http://hg.mozilla.org/labs/weave 2008-06-30 18:09:35 -07:00
Atul Varma 458713c3d9 Added documentation for Service._getKeypair(). 2008-06-30 18:09:30 -07:00
Maria Emerson 092cb1b58f reverted back to original weave logo, increased wizard height for linux problem, added passphrase verification 2008-06-30 18:00:55 -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 ac7e7ddb87 Fixed a bug from r5a5113a0a405 that caused some syncing unit tests to fail. 2008-06-30 16:55:38 -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 69a5198bbf Automated merge with http://hg.mozilla.org/labs/weave 2008-06-30 15:54:21 -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
Maria Emerson 1c43bf8988 updated strings, increased wizard height, updated background with new height and logo 2008-06-30 15:35:00 -07:00
Myk Melez 48e745da62 Automated merge with ssh://hg.mozilla.org/labs/weave/ 2008-06-30 15:16:31 -07:00
Myk Melez 73e9361cfc 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 aa4c8ed954 Moved isPassphraseValid() out of its test suite and into the crypto module. 2008-06-30 14:40:11 -07:00
Atul Varma 1875fe398b Automated merge with http://hg.mozilla.org/labs/weave 2008-06-30 14:29:32 -07:00
Atul Varma 9033253ba8 test_passphrase_checking now actually tests real code and shows that it works. Still have to move isPassphraseValid() into a different place though, probably crypto. 2008-06-30 14:29:26 -07:00
Dan Mills f7e43cc1c5 merge upstream changes 2008-06-30 14:01:10 -07:00
Dan Mills 02fabaf344 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 69e360a807 style fixes, js warning fixes 2008-06-30 14:00:06 -07:00
Dan Mills 75c9b40027 change AsyncException so it implements toString (which returns the original exception) 2008-06-30 13:58:42 -07:00
Atul Varma 58c76e2b9a Removed test_loadall.js, as its need is obviated by the auto-generated js module loader tests. 2008-06-30 13:37:31 -07:00
Atul Varma cff0864ce0 Revalidated test logs, as 'actual changes for server' details are no longer being logged. 2008-06-30 13:32:13 -07:00
Anant Narayanan db884bab1f Update tests to reflect changes in store/syncCore methods 2008-06-30 12:31:02 -07:00
Anant Narayanan e942f3e0d2 Automated merge with ssh://anarayanan@mozilla.com@hg.mozilla.org/labs/weave 2008-06-30 12:26:47 -07:00
Anant Narayanan 6829f5a63b Fix syntax errors that were causing unit tests to fail 2008-06-30 12:26:41 -07:00
Atul Varma d5e3fd90c0 Updated test_passphrase_checking 2008-06-30 11:54:10 -07:00
Anant Narayanan e1a9e953e7 Automated merge with ssh://anarayanan@mozilla.com@hg.mozilla.org/labs/weave 2008-06-30 11:33:31 -07:00
Anant Narayanan 91ca7c32fa Fix small bug with PasswordTracker returning scores > 100 2008-06-30 11:33:25 -07:00
Atul Varma 01c50a1d08 Automated merge with http://hg.mozilla.org/labs/weave 2008-06-30 11:25:06 -07:00
Atul Varma e3691a1a98 Refactored test_service a bit to use the synctestinginfrastructure. 2008-06-30 11:24:58 -07:00
Anant Narayanan 9773d2ebcf Automated merge with ssh://anarayanan@mozilla.com@hg.mozilla.org/labs/weave 2008-06-30 11:19:16 -07:00
Anant Narayanan 35b5fc1915 Primitive password tracking support (bug 435320, r=thunder) 2008-06-30 11:19:07 -07:00
Atul Varma 10be71bd57 Added a test_passphrase_checking test suite to test passphrase checking code; it's not yet complete. 2008-06-30 11:18:16 -07:00
Justin Dolske 7eb4f6a421 Fix crypto component to not mangle certain strings when doing 8/16 bit character conversion. 2008-06-29 20:51:22 -07:00
Dan Mills c0ef3a39f4 merge upstream changes 2008-06-29 17:41:19 -07:00
Dan Mills 0c76829361 bump version 2008-06-29 17:40:49 -07:00
Dan Mills 918899ff1d import async module 2008-06-29 17:37:11 -07:00
Dan Mills 3254b5838b define _resetGUIDs in store 2008-06-29 17:36:59 -07:00
Dan Mills 2b66df1272 import async module 2008-06-29 17:36:35 -07:00
Dan Mills e2e14c1426 use this._lookup instead of command.data for remove commands 2008-06-29 17:36:13 -07:00
Justin Dolske a6a038656a Bug 442257 – Weave 1.32: WeaveCrypto doesn't work under Linux. 2008-06-29 16:58:10 -07:00
Justin Dolske 0780fb5c83 Partial bustage fix: test was broken, is now less broken but still fails. 2008-06-29 16:46:59 -07:00
Dan Mills 446aeccfad bump version 2008-06-29 11:54:26 -07:00
Dan Mills db6b49392e 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 7c62863c93 merge upstream changes 2008-06-29 07:07:11 -07:00
Dan Mills 367f6c44ac make resetguids async 2008-06-29 07:00:53 -07:00
Anant Narayanan d66a183b16 Make PasswordStore process removeCommands correctly (bug 442090, r=thunder) 2008-06-28 01:13:14 -07:00
Anant Narayanan 7401fa6562 Merge 2008-06-27 20:17:12 -07:00
Anant Narayanan df5a216eb1 General restructure for performance improvements (bug 441907, r=thunder) 2008-06-27 20:16:43 -07:00
Maria Emerson a7fbee9d37 merging heads 2008-06-27 16:05:40 -07:00
Maria Emerson 0116419b0f grayed out form and password data options, update error log messages, fix last screen to prevent accidental advancing during sync 2008-06-27 16:02:52 -07:00
Dan Mills 1e98193713 disable form sync by default 2008-06-27 15:01:40 -07:00
Dan Mills cef841858e make log messages that print raw engine json be trace messages 2008-06-27 14:21:54 -07:00
Maria Emerson 94f86ee625 added run wizard option to pref pane, fixed spacing issues 2008-06-26 21:42:43 -07:00
Atul Varma 278a615111 Revalidated logtest files, just a formatVersion change from 2 to 3. 2008-06-26 18:26:07 -07:00
Atul Varma 574392b993 Fixed test_service. 2008-06-26 18:09:53 -07:00
Atul Varma 44572145f8 Implemented DELETE and listFiles on fake DAV so that test_service doesn't raise an exception. 2008-06-26 17:48:39 -07:00
Atul Varma b169b97bc7 Automated merge with http://hg.mozilla.org/labs/weave 2008-06-26 17:34:21 -07:00
Atul Varma 8db391cd02 Added more assertion checks in test_bookmark_syncing. 2008-06-26 17:31:57 -07:00
Dan Mills 0c712a5965 merge upstream changes 2008-06-26 17:28:46 -07:00
Dan Mills 78b08a1f36 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 e8b81ae67e Merged 2008-06-26 17:26:31 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local 696a7ad0f6 Removed unneeded atob() and btoa() definitions from authenticationLayer. 2008-06-26 17:26:21 -07:00
Maria Emerson f33e9a20d5 branch merge 2008-06-26 17:11:30 -07:00
Maria Emerson c9a7cc7a97 fixed captcha screen 2008-06-26 17:08:44 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local 7d605a4378 Merged 2008-06-26 17:01:12 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local 4f1720a6fc Fixed several minor bugs with bookmark sharing 2008-06-26 17:00:55 -07:00
Atul Varma eb46716053 Oops, forgot to revalidate logs in my last commit. 2008-06-26 17:00:01 -07:00
Atul Varma 2789cef3c6 Fixed a typo, added an explicit check in test_bookmark_syncing. 2008-06-26 16:59:25 -07:00
Dan Mills b476ed0a18 merge upstream changes 2008-06-26 16:38:00 -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
Atul Varma 361206ff0d Automated merge with http://hg.mozilla.org/labs/weave 2008-06-26 16:28:55 -07:00
Atul Varma d80752f41a Added a bookmark sync test that exercises the commandLike() method by adding two identical bookmarks with different GUIDs to different profiles and then syncing. 2008-06-26 16:28:44 -07:00
Atul Varma f8137c67c5 Added an additional check in stores.js to prevent a strict warning from appearing. 2008-06-26 16:27:54 -07:00
Dan Mills f07cb3970d when we abort a lock request because we already hold a token, reset _lockAllowed to allow further requests for locks 2008-06-26 16:26:14 -07:00
Dan Mills 69080714d8 fix unit test makefile so it works on windows (no symlinks on windows, boo) 2008-06-26 16:09:22 -07:00
Dan Mills 155392214f merge upstream changes 2008-06-26 15:37:55 -07:00
Dan Mills a70940d45f disabling password sync by default due to bug 438356 2008-06-26 15:37:30 -07:00
Chris Beard 90e662ce43 adding EULA that will be displayed and must be agreed to on first run 2008-06-26 18:37:05 -04:00
Justin Dolske 1b1d0f308a Use statically-sized stack buffers to fix building on Windows. 2008-06-26 15:22:48 -07:00
Atul Varma 773399e36a Automated merge with http://hg.mozilla.org/labs/weave 2008-06-26 15:02:08 -07:00
Atul Varma 6cb9821bbd Refactored some things in the test framework to make tests easier to write, and to make certain things possible to write. 2008-06-26 15:01:34 -07:00
Anant Narayanan 981d2f0a46 Add license headers to all files which didn't have them. 2008-06-26 14:49:01 -07:00
Dan Mills 333d044200 tone down tab engine debugging output a bit 2008-06-26 14:34:32 -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
Dan Mills 434f582257 merge upstream changes 2008-06-26 12:23:07 -07:00
Dan Mills 76c7dbd4f1 return http status code from dav's checkLogin 2008-06-26 12:22:19 -07:00
Dan Mills c3a7096c74 disable bookmarks sharing & xmpp for developer release 2008-06-26 12:21:25 -07:00
Maria Emerson b07cfbf417 added text (not final), changed background, some code clean-up, todo: more code clean-up, fix large buttons (they are ugly) 2008-06-26 12:09:28 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local 8bcf41653e For developer release, made bookmark sharing and xmpp preferences default to false 2008-06-26 12:07:38 -07:00
Atul Varma 0dfa48971f Automated merge with http://hg.mozilla.org/labs/weave 2008-06-26 11:40:24 -07:00
Atul Varma 24bfe869f6 Refactored password sync test to use newly-added functionality in the sync testing infrastructure. 2008-06-26 11:40:14 -07:00
Atul Varma 49ad3beeab Revalidated log for password sync test, which changed due to Thunder's changes that put deltas for individual versions into their own files on WebDAV. 2008-06-26 11:38:40 -07:00
Anant Narayanan 22d4f11f65 Automated merge 2008-06-26 11:16:02 -07:00
Anant Narayanan b580a586dc Prevent multiple lock requests from being executed (bug 441922, r=thunder) 2008-06-26 11:15:02 -07:00
Atul Varma f041c5a9a5 Refactored client state-changing functions out of test_bookmark_syncing.js and into head.js, as part of the SyncTestingInfrastructure class, so that other test suites can use them. 2008-06-26 11:07:13 -07:00
Justin Dolske 7464b11b4c bustage fix: call this.foo(), not foo(). 2008-06-25 18:32:59 -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
Anant Narayanan 5d79a9825c Handle removeCommand in FormEngine correctly. (bug 441874, r=thunder) 2008-06-25 17:09:18 -07:00
Atul Varma 6c35a6610e Automated merge with http://hg.mozilla.org/labs/weave 2008-06-25 17:05:25 -07:00
Atul Varma afa9d50b44 Bookmark sync test now attempts to add a bookmark on the second computer, then re-sync on the first computer and ensure that the bookmark is copied over. 2008-06-25 17:05:20 -07:00
Anant Narayanan bcb6631187 Branch merge 2008-06-25 16:34:50 -07:00
Anant Narayanan 040f3d1db5 Change default server URL to services.mozilla.com 2008-06-25 16:34:28 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local 10287a32be Merged 2008-06-25 15:55:13 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local 465dd3b407 Set up bookmarkEngine._incomingShareOffer to use Myk's new Notification stuff to offer a notification to the user, asking them to accept or reject the incoming share. 2008-06-25 15:54:33 -07:00
Maria Emerson bd10f4a9dd fixed interaction details, all login/verify cases work correctly, final screen creates account and syncs correctly 2008-06-25 15:44:35 -07:00
Atul Varma 93d091cbd9 Added a number of "real" bookmark sync tests; see test_bookmark_syncing.js for information. 2008-06-25 14:30:53 -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
Myk Melez c11c1547c2 the tabs engine needs a constant 2008-06-25 13:51:32 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local 5a96cc26b0 The share/stop sharing menu item is now added only to normal bookmark folders: Not to the main bookmark menu or to magic folders like 'recently tagged' or whatever. 2008-06-25 11:58:04 -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 089a4f6a9d Automatic merge. 2008-06-25 04:44:25 -07:00
Maria Emerson bab9cb62c9 fix login calls, do login and sync on final screen, add try again link to server errors throughout 2008-06-25 04:43:13 -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
Myk Melez 0e87884e99 bug 441446: set mozBackgroundRequest on XMPP request object when created rather than when used, since it only needs to be set once 2008-06-25 01:56:17 -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 323d7df694 Made exception logging routines more informative and added logtests for them. 2008-06-25 00:13:36 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local 3b57cacd79 Merged 2008-06-24 21:15:23 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local 92fd12fed8 Moved all of the bookmark-share stuff out of the bookmarkEngine class into a new BookmarksSharingManager class. 2008-06-24 21:15:14 -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
Justin Dolske 8dae69c9e8 Bustage fix: frame.filename can be null, and the async stack dump can then fail (which causes other problems) 2008-06-24 19:39:58 -07:00
Atul Varma d0b90b39c3 Renamed AsyncException.trace and Generator.trace to AsyncException.traceback and Generator.traceback, respectively, to distinguish them from Logger.trace() and also explicitly indicate their noun-like nature (since they're properties). 2008-06-24 19:15:54 -07:00
Atul Varma e9ba6b88d2 Renamed the global trace() function in async.js to traceAsyncFrame(), to avoid confusing it with Logger.trace(), AsyncException.trace, and Generator.trace, all of which are also used in that file. 2008-06-24 19:08:35 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local ce3ae0b557 Moved the folder name and annotation for the incoming shares root folder to string constants. 2008-06-24 18:38:29 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local d127999403 Merged 2008-06-24 18:28:26 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local ff23d2ce9d Fixed all the places where I was accidentally calling it incomingShareAnno instead of incomingSharedAnno (note the missing letter d). Same for outgoingSharedAnno. 2008-06-24 18:28:01 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local cc4a591a95 Removed all uses of the 'weave/mounted-shares-id' annotation, since it's been made obsolete by INCOMING_SHARED_ANNO. 2008-06-24 18:23:43 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local 239839244f Changes in the annotations relevant to incoming/outgoing share folders are now handled by editCommands in the syncCore. 2008-06-24 18:15:17 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local 0de75a4e1a Annotations on incoming and outgoing share folders are now wrapped for sync, and handled on incoming createCommands. 2008-06-24 18:09:41 -07:00
Myk Melez c9fba002aa bug 441446: set mozBackgroundRequest on XMPP request object when created rather than when used, since it only needs to be set once 2008-06-24 17:45:37 -07:00
Atul Varma 4c1fcc3c2b Added a really, really basic sync test for bookmarks. 2008-06-24 16:55:56 -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
jonathandicarlo@jonathan-dicarlos-macbook-pro.local 968af20f5e Added todo about exception handling 2008-06-24 13:41:01 -07:00
chris@h-194.office.mozilla.org 9ae9a3f5e8 merging 2008-06-24 12:44:26 -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
Dan Mills 4b9dbfb59b Store each delta as a separate file on the server 2008-06-24 12:33:27 -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
chris@chris-beards-macbook-pro-2.local 52a8ad1e41 another pass at polishing the first run experience, work in progress 2008-06-24 08:51:40 -07:00
Maria Emerson 6e54ca06f6 consolidated error reporting, formatting tbd 2008-06-23 22:48:44 -07:00
Atul Varma 5fea10727c Separated test_passwords into itself, which contains pure unit tests, and test_password_syncing, which contains a suite that's more along the lines of a system test, though still with plenty of stuff faked-out. fake_login_manager.js contains code shared between the two suites.
--HG--
rename : services/sync/tests/unit/test_passwords.log.expected => services/sync/tests/unit/test_password_syncing.log.expected
2008-06-23 21:21:40 -07:00
Atul Varma 8d52b5a923 Refactored stuff out of test_passwords and into head.js to make creating new sync tests for different engines easier. 2008-06-23 20:57:10 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local c8ba0cdfff Make the stop-sharing-data command work 2008-06-23 18:23:08 -07:00
Atul Varma c09f48513b Added some more visibility to the individual steps of test_passwords. 2008-06-23 18:01:48 -07:00
Atul Varma 23901bc549 Updated expected log for test_passwords based on recent code changes. 2008-06-23 17:41:01 -07:00