Commit Graph

83 Commits

Author SHA1 Message Date
Dan Mills
e4ea37a013 Adds another pref for the "misc" api, makes base/misc url prefs default to auth.smc/{user,misc}/, fixes about:weave captcha path. r=Mardak 2009-08-26 15:01:28 -07:00
Mike Connor
a99aaee6d7 bug 512393 - l10n cleanup for 0.6, includes fix for bug 511548 as well 2009-08-25 00:47:35 -04:00
Edward Lee
e6e554073c Bug 512001 - Kill the Wizard! (and Account Pane + Login)
Remove the Wizard Dialog, Account Pane, Login Dialog, Add-ons Pane, Advanced Dialog and their related xul/js/css/strings/images. Clean up some unused functions, xul:preferences, css, strings. Orphaned functionality: autoconnect preference, reset/forgot password/passphrase.
2009-08-21 17:32:41 -07:00
Edward Lee
94e6abd74c Extend Utils.anno to handle pages and clean up GUID code for history engine. Also fix a bug where changeItemID would set annotations to expire on session. 2009-08-21 14:29:37 -07:00
Edward Lee
144a9195b9 Merge weave to about-weave. 2009-08-19 22:46:50 -07:00
Dan Mills
bd35370bb3 initial commit of new about:weave 2009-08-18 20:03:11 -07:00
Edward Lee
39895d48b2 Put Annotations in Svc and expose a get/set Utils.anno call to use from bookmarks. 2009-08-13 17:59:26 -07:00
Edward Lee
bc5f3d3be8 Bug 507296 - Sync bookmarks and history in batched mode. r=thunder
Wrap the original SyncEngine._sync function with a call to runInBatchMode, so SQL disk writes happen at the end of batch mode instead of on every change.
2009-07-30 11:52:26 -07:00
Anant Narayanan
e299866ead Re-structure window utils 2009-07-28 14:30:32 -07:00
Edward Lee
d02b8efc49 Bug 506302 - Shorten stack traces
Trim the full path from JS stacks and just show the file and convert nsIException traces to look like js stacks: func()@file:line. Only difference is js stacks show arguments while nsIException always shows just (). Fix up some places where we print the exception instead of the fixed up string.
2009-07-24 15:28:42 -07:00
Edward Lee
39607ef7b9 Bug 505940 - Unnecessarily uploading records on first sync
Remove short-circuit logic of comparing number of keys for deepEquals and iterate through each key on both objects to make sure both have the same value.
2009-07-22 23:49:15 -07:00
Anant Narayanan
c6a90202ff Add ability to change passphrase (and merge XUL files) bug #443696 2009-07-21 16:54:46 -07:00
Edward Lee
c5690e2288 Bug 504256 - sync should observe idle service and only sync when the user is idle
Detect if the user has been recently active, and if so, skip the sync. Arbitrarily picking 30 seconds for now.
2009-07-17 16:55:15 -07:00
Edward Lee
bc0326da9c Log jsonLoad/Save as trace instead of debug. 2009-07-14 18:44:41 -07:00
Edward Lee
84c52a6411 merge weave. resolve addition of kSpecialIds to bookmarks.js near removal of Async.sugar. 2009-06-23 22:34:57 -07:00
Edward Lee
ad7d001bb3 Bug 498924 - Refactor bookmark special ids out of BookmarksStore
Lazily load places ids for a given weave id/place name pair into kSpecialIds and update all consumers. Expose a Svc.Bookmark in utils.
2009-06-17 09:28:15 -07:00
Edward Lee
4084603da5 Remove async.js and wrap.js and remove remaining references to Async.sugar, etc. 2009-06-06 18:24:30 -05:00
Edward Lee
2f189ad5a8 Add a Utils.lock as a sync. version of Wrap.localLock. 2009-06-06 11:52:49 -07:00
Edward Lee
5a0f364bb6 Add a Utils.catch as a sync. version of Wrap.catchAll. 2009-06-05 22:21:14 -07:00
Edward Lee
4f22e547b2 Temporarily convert _notify to _notifyAsync and add a Utils.notify. 2009-06-05 15:34:23 -07:00
Edward Lee
b2d872175e 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
b7a138755c 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
d6a16ace0a 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
cebb90b5bc Add a Utils.isArray and use it 2009-04-07 16:45:29 -05:00
Edward Lee
ba7af5037c Bug 486230 - Share json disk caching with Utils.json{Load,Save} 2009-03-31 19:52:16 -05:00
Edward Lee
4f6ebe6be5 Bug 481741 - Switch to JSON from nsIJSON 2009-03-31 14:09:38 -05:00
Dan Mills
76043d7ad9 make dialogs non-resizable, split lazy callbacks out 2009-03-25 19:28:46 -07:00
Edward Lee
fef6073d7c 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
1789f15ff7 Bug 484144 - Make sync status dialog not modal. r=thunder 2009-03-20 00:11:04 -07:00
Edward Lee
17f4365fbc More window/dialog cleanup for commonly used dialogs 2009-03-19 14:21:23 -07:00
Edward Lee
767f48bb69 :( trailing whitespace 2009-03-19 14:02:41 -07:00
Edward Lee
bbb0fa332f More services cleanup; Expose a Utils.openWindow/openDialog 2009-03-19 14:00:57 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
3615b62fdd 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
6bb65722d3 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
a45ed6623b Bug 482178 - Clean up services -> lazy services. r=thunder 2009-03-10 06:30:30 -05:00
Dan Mills
3e1235a9e5 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
05dfbc7c8a Password sync for 0.3 (bug #468697) 2009-03-03 00:42:57 +01:00
Dan Mills
aad93f5efc 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
7e4d6cb6bd add makeURL function (returns an nsIURL), and add Svc.Memory (for memory service) 2009-02-11 19:19:04 -08:00
Dan Mills
7f00fb6de9 put prefs branch into Svc.Prefs 2009-02-10 00:52:05 -08:00
Dan Mills
a3d9640e3c 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
90d45aefc0 catch undefined URIs in makeURI; use Svc global to cache IO service 2009-01-07 14:22:02 -08:00
Dan Mills
ff240dd3ce 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
0a4d159fd2 add debug for when setting password 2008-12-01 20:01:12 -08:00
Dan Mills
cc4ab1bb14 change chrome url for weave passwords in login manager to chrome://weave 2008-12-01 19:04:49 -08:00
Dan Mills
32e411e1a4 print exception in async stack traces, skip async frames in async stack traces 2008-11-06 17:34:34 -08:00
Dan Mills
8c5dd2449d makeUri: don't throw on invalid uris, return null instead 2008-11-03 14:56:56 -08:00
Dan Mills
7ff40bec59 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
3fc5d0e8a1 fix typo in utils deepCopy 2008-07-30 23:37:21 -07:00
Dan Mills
ea65089051 when making deep copies of an object, default to alphabetically sorting the properties for adding 2008-07-23 15:46:48 -07:00