Commit Graph

713 Commits

Author SHA1 Message Date
Anant Narayanan
25744eb911 Automated merge with ssh://anarayanan@mozilla.com@hg.mozilla.org/labs/weave 2008-06-30 11:33:31 -07:00
Anant Narayanan
645c447eb6 Fix small bug with PasswordTracker returning scores > 100 2008-06-30 11:33:25 -07:00
Atul Varma
1533675aa9 Automated merge with http://hg.mozilla.org/labs/weave 2008-06-30 11:25:06 -07:00
Atul Varma
688dcddb1c Refactored test_service a bit to use the synctestinginfrastructure. 2008-06-30 11:24:58 -07:00
Anant Narayanan
ebd2009229 Automated merge with ssh://anarayanan@mozilla.com@hg.mozilla.org/labs/weave 2008-06-30 11:19:16 -07:00
Anant Narayanan
f7911b9746 Primitive password tracking support (bug 435320, r=thunder) 2008-06-30 11:19:07 -07:00
Atul Varma
76a60f1dfe 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
777c82cf0b 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
dd7821e265 merge upstream changes 2008-06-29 17:41:19 -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
Justin Dolske
901b76b301 Bug 442257 – Weave 1.32: WeaveCrypto doesn't work under Linux. 2008-06-29 16:58:10 -07:00
Justin Dolske
74d8b0e43a Partial bustage fix: test was broken, is now less broken but still fails. 2008-06-29 16:46:59 -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
05b1427691 Merge 2008-06-27 20:17:12 -07:00
Anant Narayanan
089c1c0f42 General restructure for performance improvements (bug 441907, r=thunder) 2008-06-27 20:16:43 -07:00
Maria Emerson
749eabb8f0 merging heads 2008-06-27 16:05:40 -07:00
Maria Emerson
6278ecd1ee 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
d709a5c770 disable form sync by default 2008-06-27 15:01:40 -07:00
Dan Mills
c0471ca320 make log messages that print raw engine json be trace messages 2008-06-27 14:21:54 -07:00
Maria Emerson
2e956767d3 added run wizard option to pref pane, fixed spacing issues 2008-06-26 21:42:43 -07:00
Atul Varma
52e47aeb5b Revalidated logtest files, just a formatVersion change from 2 to 3. 2008-06-26 18:26:07 -07:00
Atul Varma
b35bbe0a4b Fixed test_service. 2008-06-26 18:09:53 -07:00
Atul Varma
29f7b89a5a 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
7127d6d7c8 Automated merge with http://hg.mozilla.org/labs/weave 2008-06-26 17:34:21 -07:00
Atul Varma
44b8be12aa Added more assertion checks in test_bookmark_syncing. 2008-06-26 17:31:57 -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
60fbccf06c Merged 2008-06-26 17:26:31 -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
Maria Emerson
837be83ecb branch merge 2008-06-26 17:11:30 -07:00
Maria Emerson
1c37b4647d fixed captcha screen 2008-06-26 17:08:44 -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
Atul Varma
e1f5bf9e13 Oops, forgot to revalidate logs in my last commit. 2008-06-26 17:00:01 -07:00
Atul Varma
df57d1a0fc Fixed a typo, added an explicit check in test_bookmark_syncing. 2008-06-26 16:59:25 -07:00
Dan Mills
9f77422143 merge upstream changes 2008-06-26 16:38:00 -07:00
Dan Mills
6f246308bc don't even try to sync when the local lock is taken 2008-06-26 16:37:38 -07:00
Atul Varma
b31c786d84 Automated merge with http://hg.mozilla.org/labs/weave 2008-06-26 16:28:55 -07:00
Atul Varma
e0f26c39a3 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
aa4a046d61 Added an additional check in stores.js to prevent a strict warning from appearing. 2008-06-26 16:27:54 -07:00
Dan Mills
8bc8c1abbb 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
c3a7956e61 fix unit test makefile so it works on windows (no symlinks on windows, boo) 2008-06-26 16:09:22 -07:00
Dan Mills
6d7c4f1bbd merge upstream changes 2008-06-26 15:37:55 -07:00
Dan Mills
47dd0daafe disabling password sync by default due to bug 438356 2008-06-26 15:37:30 -07:00
Chris Beard
e4bd9df954 adding EULA that will be displayed and must be agreed to on first run 2008-06-26 18:37:05 -04:00
Justin Dolske
1b2e7b297b Use statically-sized stack buffers to fix building on Windows. 2008-06-26 15:22:48 -07:00
Atul Varma
e9e88705ce Automated merge with http://hg.mozilla.org/labs/weave 2008-06-26 15:02:08 -07:00
Atul Varma
2bd0a8ac17 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
62a0ebb31e Add license headers to all files which didn't have them. 2008-06-26 14:49:01 -07:00
Dan Mills
277753d21a tone down tab engine debugging output a bit 2008-06-26 14:34:32 -07:00
Dan Mills
703829a510 fix comment in verifyLogin 2008-06-26 14:30:38 -07:00
Dan Mills
5c7f8c6a40 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
6badbcac4d merge upstream changes 2008-06-26 12:23:07 -07:00
Dan Mills
2d3216c74e return http status code from dav's checkLogin 2008-06-26 12:22:19 -07:00
Dan Mills
e021d9ade1 disable bookmarks sharing & xmpp for developer release 2008-06-26 12:21:25 -07:00
Maria Emerson
8d963abd80 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
437cac3a82 For developer release, made bookmark sharing and xmpp preferences default to false 2008-06-26 12:07:38 -07:00
Atul Varma
f33b85dc5d Automated merge with http://hg.mozilla.org/labs/weave 2008-06-26 11:40:24 -07:00
Atul Varma
792f0f7e87 Refactored password sync test to use newly-added functionality in the sync testing infrastructure. 2008-06-26 11:40:14 -07:00
Atul Varma
0e87611a56 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
dcb7a1ada2 Automated merge 2008-06-26 11:16:02 -07:00
Anant Narayanan
2339871cf6 Prevent multiple lock requests from being executed (bug 441922, r=thunder) 2008-06-26 11:15:02 -07:00
Atul Varma
6e8d38ac08 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
4abaf0f90c bustage fix: call this.foo(), not foo(). 2008-06-25 18:32:59 -07:00
Anant Narayanan
ee51a31ea5 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
b53674f5dc Handle removeCommand in FormEngine correctly. (bug 441874, r=thunder) 2008-06-25 17:09:18 -07:00
Atul Varma
4740979f77 Automated merge with http://hg.mozilla.org/labs/weave 2008-06-25 17:05:25 -07:00
Atul Varma
cd2f7cdb93 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
710665c8e2 Branch merge 2008-06-25 16:34:50 -07:00
Anant Narayanan
c8b970ae19 Change default server URL to services.mozilla.com 2008-06-25 16:34:28 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
a2dede213a Merged 2008-06-25 15:55:13 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
3f37543011 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
946084c271 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
9beba70275 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
cab1d95570 bug 436636: a system for showing various kinds of notifications in one consolidated location 2008-06-25 13:51:39 -07:00
Myk Melez
b379fdece8 the tabs engine needs a constant 2008-06-25 13:51:32 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
6f37a50f99 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
92f85d952e 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
c747b0559e Automatic merge. 2008-06-25 04:44:25 -07:00
Maria Emerson
e1e6f79037 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
37225f431c 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
be2bf638be 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
b015539e7a 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
9d7f1afc80 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
1d19d1357f Merged 2008-06-24 21:15:23 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
b24d0c7180 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
7b4737aed7 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
e25d17c184 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
7327a55d0d 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
caa3295271 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
bc4d891c3a 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
8cc67dd324 Merged 2008-06-24 18:28:26 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
fcd94e31e2 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
4cba1fd51c 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
0edbf9998f 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
4bc77b8e05 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
8dcf0279c4 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
b5dc3b878a Added a really, really basic sync test for bookmarks. 2008-06-24 16:55:56 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
2158cdf9c4 Merged 2008-06-24 13:41:25 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
c4fa84f683 Merged 2008-06-24 13:41:12 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
03d94018af Added todo about exception handling 2008-06-24 13:41:01 -07:00
chris@h-194.office.mozilla.org
95d87d63e0 merging 2008-06-24 12:44:26 -07:00
chris@h-194.office.mozilla.org
32d06ac143 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
e2fc25dbfa Store each delta as a separate file on the server 2008-06-24 12:33:27 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
286e670fb2 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
b969583294 another pass at polishing the first run experience, work in progress 2008-06-24 08:51:40 -07:00
Maria Emerson
c968d59fe3 consolidated error reporting, formatting tbd 2008-06-23 22:48:44 -07:00
Atul Varma
f9ab00520c 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
0258487f7a 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
ed99f7cb53 Make the stop-sharing-data command work 2008-06-23 18:23:08 -07:00
Atul Varma
088eeebfd3 Added some more visibility to the individual steps of test_passwords. 2008-06-23 18:01:48 -07:00
Atul Varma
387927da84 Updated expected log for test_passwords based on recent code changes. 2008-06-23 17:41:01 -07:00
Justin Dolske
6ed3755104 Bug 433949 - Use WeaveCrypto component (NSS) instead of OpenSSL 2008-06-23 16:23:57 -07:00
Myk Melez
bb55bba909 Automated merge with ssh://hg.mozilla.org/labs/weave/ 2008-06-23 16:22:17 -07:00
Myk Melez
9668227aad wrap notify around lock instead of the other way around so that notify includes locking failure/success in its notifications 2008-06-23 16:22:05 -07:00
Justin Dolske
6162fe5ab1 Use allocated buffers instead of stack when the buffers can be large (OS X has a 1MB limit) 2008-06-23 16:14:55 -07:00
Myk Melez
6cdf7d9c0d bug 435341: sync automatically when Firefox quits 2008-06-23 16:10:31 -07:00
Maria Emerson
21df91abd7 work in progress, push for wizard 2008-06-23 15:48:01 -07:00
Atul Varma
ed6f207586 Added 'resync on second computer' step to test_passwords. 2008-06-23 14:45:58 -07:00
Atul Varma
c573243c97 Removed a line of code that was raising a strict warning, and which also just defined an unused local variable that called no functions and therefore had no side effects (unless there were property getters that had side-effects involved, which hopefully wasn't the case). 2008-06-23 14:32:55 -07:00
Atul Varma
cd6f3ef8d3 Moved the FakeGUIDService from test_passwords.js to head.js. 2008-06-23 14:13:46 -07:00
Justin Dolske
1cba11e508 Add Makefile support for building on ARM, move comment that triggers bug on scratchbox's Make 3.80 2008-06-22 14:43:09 -07:00
Atul Varma
9baa177ade A tiny bit more refactoring to test_passwords. 2008-06-20 18:36:33 -07:00
Atul Varma
77a64f448f Oops, forgot to recommit the canonical log for test_passwords in my last commit. 2008-06-20 18:36:11 -07:00
Atul Varma
7e429a9eba Fake GUID generator now provides a different yet deterministic GUID upon each invocation. 2008-06-20 18:25:21 -07:00
Atul Varma
fd24f3706a test_passwords now also removes a user after doing everything else. 2008-06-20 18:04:59 -07:00
Atul Varma
01b47a4865 Factored out the fake filesystem related functions in test_passwords.js into a FakeFilesystemService class in head.js. 2008-06-20 17:47:32 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
4489fb2ce3 The XMPP server is now configured to use LDAP for authentication (on sm-labs01, and soon to be on services.mozilla too) so the xmpp username/password will now be the same as the weave username/password. So I now use those to login, and I got rid of the two extra preferences which we used to have for xmpp username/password. 2008-06-20 17:19:10 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
7d953f2669 fixed some minor formatting 2008-06-20 16:46:38 -07:00
Atul Varma
0d27ee6f89 Refactored test_passwords to make it more modular and readable, changed the formatting of some log messages to be more descriptive. 2008-06-20 15:39:07 -07:00
Myk Melez
e760fc6a12 make xmpp requests be background requests so they don't get horked by load group problems or throw up auth dialogs 2008-06-20 14:26:40 -07:00
Atul Varma
4c78f8d170 Improved test_passwords so that it syncs, re-syncs, adds a new user, and re-syncs again.
Fixed a strict warning in engines.js.
2008-06-20 14:22:06 -07:00
Atul Varma
4e39258260 Made the tracking of async generators/coroutines more robust for debugging purposes.
Refactored code	in syncCores.js	to use Utils.makeTimerForCall().

Improved test_passwords to perform an additional sync after the initial one.
2008-06-20 13:58:56 -07:00
Atul Varma
2f9945b9d3 Added more informative output for fake DAV, so that log-based tests are both more self-documenting re: Weave's behavior and serve as more robust test cases. 2008-06-20 12:49:25 -07:00
Atul Varma
a39acd2449 Added an expected-log for the passwords sync engine unit test. 2008-06-20 12:39:50 -07:00
Atul Varma
ac90aaff04 Refactoring: consolidated duplicate code creating GUIDs via XPCOM gunk into a new function, Utils.makeGUID().
Note that there are some strange things re: whitespace in engines/bookmarks.js in this changeset; I literally only changed one line, though, and I'm not sure where they came from.  Maybe it was js2-mode?
2008-06-20 12:34:29 -07:00
Atul Varma
11abf27a3e Minor code tidying. 2008-06-20 12:27:17 -07:00
Atul Varma
32c7be2a6f Changed log level in a unit test. 2008-06-20 12:24:02 -07:00
Justin Dolske
58435fa195 Small bug fix from my last small bugfix. :( 2008-06-19 20:18:59 -07:00
Atul Varma
aa73eb4763 Fixed a bug in the outstanding-callback-warning system and made Generator.throw() and Generator.cont() private methods because no client code was using them and it could introduce bugs in the system if they do; we can revisit making them public again later if we want. 2008-06-19 19:03:10 -07:00
Maria Emerson
19ef5f5903 Automated merge with ssh://memerson@mozilla.com@hg.mozilla.org/labs/weave 2008-06-19 17:55:09 -07:00
Atul Varma
ea744597ab Modified the way logging works in unit testing; fake testing components now log as part of the 'Testing' logger instead of the root logger. 2008-06-19 17:04:04 -07:00