Commit Graph

887 Commits

Author SHA1 Message Date
Edward Lee
f6367261d8 Bug 488190 - Use record properties instead of cleartext properties
Switch pretty much all references to cleartext in modules/engines/ to just use the record. Also clean up some references to null cleartext to use deleted. The only reference to cleartext is to iterate over that hash in bookmarks.
2009-04-13 16:39:29 -05:00
Edward Lee
5a136689fb Bug 488170 - Consistently set record cleartext URIs as text spec uris
Switch cleartext properties to Uri that always takes a text spec, so eventually URI refers to nsIURI. GeneratorURIs seems to have been broken either way.. makeURI of an already URI and storing of a URI into cleartext. This landed with changes to keys, so the server wipe also handles the local name changes.
2009-04-13 16:39:29 -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
73ea5a7a89 Bug 488182 - Use an Iterator to grab both key and values from cleartext for processing bookmarks
Get rid of extra record.cleartext references within the for/each/switch -- even for unused keys like incomingSharedAnno.
2009-04-13 16:18:11 -05:00
Edward Lee
3bd7c7fccf Bug 488165 - Correct set the record object type when processing records
Set _recordObj for Bookmarks/History engines and override PlacesItem.decrypt to switch itself to the right type after CryptoWrapper decrypts the payload.
2009-04-13 14:54:31 -05:00
Dan Mills
ee1dca0813 oops fix missing .prototype 2009-04-10 17:30:05 -07:00
Dan Mills
72fe638ff7 Remove __proto__.__proto__ it's fail-prone 2009-04-10 16:08:31 -07:00
Dan Mills
240a108af3 can't get guid on expiration 2009-04-10 16:04:13 -07:00
Edward Lee
cd2b9e8150 Bug 487541 - form submission caused exception 0x80004002 (NS_NOINTERFACE) [nsISupports.QueryInterface]
Get rid of the QueryInterface and just use instanceof while copying the logic of nsFormHistory::Notify to avoid divergent logic until satchel provides a notification.
2009-04-08 22:48:26 -05:00
Dan Mills
9372000a56 don't track history deletes at all; don't built id->guid mapping hash for history tracker 2009-04-08 18:11:14 -07:00
Dan Mills
0d0030a423 skip getting meta records for records already in the meta list 2009-04-08 18:08:45 -07:00
Edward Lee
98d074f59c Bug 487523 - Scheduled sync fires while a sync is running
Just skip the scheduled sync if we're already syncing
2009-04-08 19:23:14 -05:00
Myk Melez
83c54d2014 switch from --utc to -u flag to enable UTC output for date command so it works on both Linux/Windows (which support --utc in addition to -u) and Mac OS X (which only supports -u) 2009-04-08 15:00:02 -07:00
Edward Lee
d6b09727c8 Bug 486810 - Engines (and their trackers) are created with every new window. r=thunder
Register the built-in engines on service start-up instead of from the overlay, and have Engines.register check if the engine has already been registered.
2009-04-08 14:39:14 -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
Mikhail Stepura
1bb93a35bc Bug 486481 - Weird behavior when syncing the bookmark with tags
Add the remaining special top level folders and ignore them for certain behavior like getAllIDs and wipe. Have the tracker ignore changes to things in the tags folder.
2009-04-07 23:17:40 -05:00
Edward Lee
03950c261e Bug 487363 - Share bookmark tracker ignore logic
Share the ignore logic that takes a parent folder and ignore if the engine says so or it's a livemark.
2009-04-07 22:56:04 -05:00
Edward Lee
ca8efb5327 Bug 487338 - Track special folder weave GUIDs <-> bookmark id mapping
Create a specialIds hash and use it to for getting weaveId/id, determine top level, if a folder is a root, getting all ids, wiping, and tracker ignoring.
2009-04-07 19:22:36 -05:00
Edward Lee
60afb4ea7c Bug 487308 - Allow registering of an array of engines
Import engines to the Weave global object and use them to register engines, which checks if the arg is an array. To support handling of errors (unused), the engine is returned on register failure.
2009-04-07 16:45:41 -05:00
Edward Lee
9a4da9c571 Add a Utils.isArray and use it 2009-04-07 16:45:29 -05:00
Anant Narayanan
632de01bf7 Fix indentation 2009-04-06 19:31:39 +02:00
Anant Narayanan
21b13a7d8b Update form sync engine to work with Weave0.3/FF3.5 2009-04-06 19:05:16 +02:00
Edward Lee
20376d2bdc Backed out changeset 430ce13b63f3 (bug 482878)
Bug 482670 restored un-wrapped payloads, so until a version bump, those using trunk will need to do a manual server wipe.
2009-04-03 13:49:22 -05:00
Edward Lee
a9b1c2cc31 Bug 482670 - WBORecord should implement a .deleted property
Expose a .deleted property that engines can set to true to store an even thinner deleted payload (empty string "" instead of "[null]") on the server. Handle deserializing of deleted records by setting the property. Note: Engines must set their payloads to something JSON-able if it's not a delete record.
2009-04-03 12:38:47 -05:00
Edward Lee
c1e5c50285 Bug 486667 - Clients get amnesia -- forget who they are after a wipe
Set the local client info after resetting the clients store hash
2009-04-03 09:26:12 -05:00
Edward Lee
c0f5f6c0eb Bug 480929 - RSS names not synced
Set the title in the record just like any other bookmark (folder)
2009-04-01 17:12:08 -05:00
Edward Lee
ff6f758608 Bug 482896 - Unify local client data and remote client data storage
Initialize unified client store from disk json and local prefs and update on pref changes + sync. Clean up client engine code (local vs inherited, alphabetical), and create a helper modify() to save snapshots.
2009-04-01 01:56:32 -05:00
Edward Lee
8e8a01356e Bug 486234 - Give changes json file name for history, passwords 2009-03-31 20:07:43 -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
e22f52680d Bug 478328: delete old history data from the server 2009-03-30 15:19:00 -07:00
Dan Mills
8c87c983c6 remove dump() debugging from tabs engine 2009-03-30 15:18:20 -07:00
Dan Mills
de2b33001d shorten status messages 2009-03-27 20:57:38 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
a5941f8933 Bug 485539 - added guard to the tab engine to handle the case where there are undefined items in tabContainer.childNodes. 2009-03-27 11:06:43 -07:00
Dan Mills
d278cedf1b fix missing yield in createAccount 2009-03-27 00:56:38 -07:00
Dan Mills
312454680a style police; split findCluster into two, findCluster (no side-effects) and setCluster (saves it); fix verifyLogin to work with any login, not just the saved one; add a createAccount call which creates an account on the server 2009-03-27 00:46:10 -07:00
Dan Mills
1d6b73a5d7 Bug 484848: try #3 2009-03-26 10:58:54 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
d0e24b6318 Moved constants from constants.js to constants.js.in (see bug 481319.) 2009-03-25 23:43:14 -07:00
Dan Mills
fbc81b07ff Bug 481319: try again 2009-03-25 19:47:37 -07:00
Dan Mills
21a55b22a0 merge upstream changes 2009-03-25 19:33:51 -07:00
Dan Mills
28b13f478e add a setHeader() function so you can set some headers and leave others as they are; set merge to /false/ when setting headers on the channel; set content-type properly when uploading content 2009-03-25 19:30:16 -07:00
Dan Mills
a3416e7e05 make dialogs non-resizable, split lazy callbacks out 2009-03-25 19:28:46 -07:00
Dan Mills
af167b9432 Bug 484848: modifyLogin sends an array of nsILoginMetaInfos to observers 2009-03-25 19:27:24 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
4a513caa84 Fixed name of TabStore.changeItemID so that it correctly overrides the abstract base class method. Whoops. 2009-03-25 17:36:11 -07:00
Edward Lee
9686a7ffb5 Bug 483671 - Password engine isn't getting correct hostname. r=thunder 2009-03-26 01:23:50 +08:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
d19ad5e162 Bug 481319: Weave.Service can now be queried for top-level status (OK, failed, partial success), and also for an object that gives detailed status (what caused sync to abort, server status codes, status of each engine, etc.) 2009-03-24 19:23:53 -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
Myk Melez
ad2f71f0df bug 476539: use a XULRunner-based test harness for unit testing; r=thunder 2009-03-20 00:14:21 -07:00
Edward Lee
04f5b8828b Bug 482898 - Allow an optional array of engines for wipeRemote, wipeServer, resetClient, etc.. r=thunder 2009-03-20 00:13:16 -07:00
Edward Lee
2e7546aa96 Bug 484144 - Make sync status dialog not modal. r=thunder 2009-03-20 00:11:04 -07:00