Edward Lee
4ac23d2cab
Remove async.js and wrap.js and remove remaining references to Async.sugar, etc.
2009-06-06 18:24:30 -05:00
Edward Lee
c6ef99ffc0
Add a Utils.lock as a sync. version of Wrap.localLock.
2009-06-06 11:52:49 -07:00
Edward Lee
d774dfb76b
Add a Utils.catch as a sync. version of Wrap.catchAll.
2009-06-05 22:21:14 -07:00
Edward Lee
e5c7999e86
Temporarily convert _notify to _notifyAsync and add a Utils.notify.
2009-06-05 15:34:23 -07:00
Edward Lee
d611c2b661
Bug 493363 - Several issues in Utils.deepEquals()
...
Use triple-equals to determine if two things are the same; otherwise, check if both are objects with the same keys and same values for the keys.
2009-05-19 10:53:30 -05:00
Edward Lee
aff1f185c3
Bug 488142 - Make it easier to add simple deferred cleartext/payload values
...
Add a couple Utils helper to create a pair of simple [gs]etters that use a hash property instead. Apply this to various records: WBORecord, {Priv,Pub}Key, Crypto{Meta,Wrapper}, and every engine's type records. Migrate by making sure key data exists (name change).
2009-04-13 16:39:29 -05:00
Edward Lee
a5332e83ca
Bug 487378 - Use the app name as the default client name
...
Use nsIXULAppInfo to get the name and remove Fennec specific bits.
2009-04-08 02:12:57 -05:00
Edward Lee
9a4da9c571
Add a Utils.isArray and use it
2009-04-07 16:45:29 -05:00
Edward Lee
e9647a3977
Bug 486230 - Share json disk caching with Utils.json{Load,Save}
2009-03-31 19:52:16 -05:00
Edward Lee
3cead7f04b
Bug 481741 - Switch to JSON from nsIJSON
2009-03-31 14:09:38 -05:00
Dan Mills
a3416e7e05
make dialogs non-resizable, split lazy callbacks out
2009-03-25 19:28:46 -07:00
Edward Lee
1bb424e037
Bug 482900 - Provide a friendlier UI to choose which ways to sync data. r=thunder
2009-03-20 02:35:46 -07:00
Edward Lee
2e7546aa96
Bug 484144 - Make sync status dialog not modal. r=thunder
2009-03-20 00:11:04 -07:00
Edward Lee
44040f2ce9
More window/dialog cleanup for commonly used dialogs
2009-03-19 14:21:23 -07:00
Edward Lee
08bcb777cd
:( trailing whitespace
2009-03-19 14:02:41 -07:00
Edward Lee
76a417ebc3
More services cleanup; Expose a Utils.openWindow/openDialog
2009-03-19 14:00:57 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
f014c6bb51
Was failing on Fennec because private browsing doesn't exist there -- now more gracefully handles missing components.
2009-03-10 17:12:59 -07:00
Edward Lee
d8fef43b78
Bug 481345 - Weave should be disabled while offline or private browsing mode is active. r=thunder
2009-03-10 06:30:36 -05:00
Edward Lee
e7a623aaec
Bug 482178 - Clean up services -> lazy services. r=thunder
2009-03-10 06:30:30 -05:00
Dan Mills
85834524e0
Switch away from __defineGetter__ due to bug 481104; explicitly cache logins in password engine; whitespace fixes
2009-03-02 18:55:26 -08:00
Anant Narayanan
33a1012482
Password sync for 0.3 (bug #468697 )
2009-03-03 00:42:57 +01:00
Dan Mills
09f5120a3a
use Gecko's version comparison API, don't clobber the server if the remote version > local client version
2009-02-23 12:36:55 -08:00
Dan Mills
5a2bbe124d
add makeURL function (returns an nsIURL), and add Svc.Memory (for memory service)
2009-02-11 19:19:04 -08:00
Dan Mills
cf68f2b71f
put prefs branch into Svc.Prefs
2009-02-10 00:52:05 -08:00
Dan Mills
3cedb09d82
Make records not extend Resource, instead they have a serialize() method that can be used to create a Resource for uploading if necessary.
...
Use global service instances under Svc.*
Consolidate various record managers (caches/convenience factories) to extend the same base object
Log exceptions caught by notify wrapper
2009-01-27 13:35:10 -08:00
Dan Mills
df6f18b5ca
catch undefined URIs in makeURI; use Svc global to cache IO service
2009-01-07 14:22:02 -08:00
Dan Mills
3079faacf5
add clients sync (list of clients with names and types); make it simpler to create Engine subclasses; remove the 2nd 'authenticator' parameter for Resources; resetServer is now wipeServer; consider 0 an invalid place ID (fixes bug when calculating item depths); add a Svc global exported from utils.js where commonly used services can live
2009-01-06 13:54:18 -08:00
Dan Mills
4e03472ec3
add debug for when setting password
2008-12-01 20:01:12 -08:00
Dan Mills
c61ef38151
change chrome url for weave passwords in login manager to chrome://weave
2008-12-01 19:04:49 -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
db796cabb8
makeUri: don't throw on invalid uris, return null instead
2008-11-03 14:56:56 -08: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
ac61d5ab82
fix typo in utils deepCopy
2008-07-30 23:37:21 -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
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
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
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
Anant Narayanan
b580a586dc
Prevent multiple lock requests from being executed (bug 441922, r=thunder)
2008-06-26 11:15:02 -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
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
Atul Varma
323d7df694
Made exception logging routines more informative and added logtests for them.
2008-06-25 00:13:36 -07:00
Atul Varma
15d84c6df5
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
7809c95d7d
Refactored some file operations into a new function in Utils and out of engines.js.
2008-06-18 14:12:24 -07:00
Atul Varma
b48aab609f
Moved XPCOM-specific stuff from engines/passwords.js to util.js so they could be easily stubbed-out by unit tests.
2008-06-18 11:54:24 -07:00
Atul Varma
8181559fa4
Refactored test_service and module code so that the weave service constructor is called, and auth is done more accurately.
2008-06-17 19:54:09 -07:00
Atul Varma
89886c8e2e
Fixed a minor typo, though there's a better way to do the unary getter which Myk told me about; will probably substitute that soon.
2008-06-17 11:11:56 -07:00
Atul Varma
6826c19d20
Fixed a strict warning in util.js.
2008-06-16 18:11:41 -07:00
Atul Varma
c040b0cc2f
Refactoring: made a new function, Utils.makeTimerForCall(), which is used by test suites and async.js.
2008-06-09 19:30:11 -07:00
Dan Mills
9316037c2c
remove some debugging output, fix some remaining array detection code
2008-05-24 17:30:22 -07:00
Dan Mills
38997acef8
continue sync of other engines even after one of them throws an exception; use constructor name instead of instanceof to check for array object in modules
2008-05-23 23:58:53 -07:00