Commit Graph

282 Commits

Author SHA1 Message Date
Edward Lee
68ce1e4224 Change SyncEngine._reconcile to not be async/yield. 2009-06-04 14:18:04 -07:00
Edward Lee
428d54a14a Change Resource.get() to be sync (no callback) and fix up call sites used for login + sync now. 2009-06-04 10:16:07 -07:00
Wladimir Palant
8f33b68063 Bug 495924 - TabTracker wrongly assumes that "this" pointer will be set correctly for event handlers 2009-06-02 11:25:37 +02:00
Anant Narayanan
252a823626 Preference sync (bug #428370) 2009-05-24 02:11:05 +02:00
Anant Narayanan
dbad6932cb Use first login found if there are multiple GUIDs 2009-05-24 00:25:30 +02:00
Anant Narayanan
b6a3ce9d6e Use searchLogins instead of caching passwords (bug #489268) 2009-05-24 00:03:53 +02:00
Edward Lee
0a32933db7 Bug 493004 - Create stubs of unimplemented engines to list them as disabled (extension, microformat, plugin, theme)
Add the 4 engines with just the base code to set their name and register them for Firefox.
2009-05-14 11:50:59 -05:00
Edward Lee
93847aa32d Bug 493002 - List partially implemented engines (cookies, input history) as disabled
Import the outdated engines, but delete their pref so they show up as disabled. Clean up the old engines a little bit so they don't allocate unnecessarily and to not use syncCore.
2009-05-14 11:43:56 -05:00
Edward Lee
690c26f9d5 Fix form engine displayname to displayName 2009-05-14 11:09:08 -05:00
Edward Lee
48f3b8796d Remove old Firefox 3 places DB code.
Min version is 3.1/5, so we grab DBConnection from places directly now.
2009-05-13 16:31:42 -05:00
Myk Melez
bab5749a17 bug 492435: work around crasher bug 492442 by not calling isVisited for a history entry without a URL; r=thunder 2009-05-11 16:11:04 -07:00
Edward Lee
e55cf3a52a 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
2c5fc6c54f 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
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
253a6ca0d8 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
9a582a606e 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
c92f210ac9 oops fix missing .prototype 2009-04-10 17:30:05 -07:00
Dan Mills
a789863032 Remove __proto__.__proto__ it's fail-prone 2009-04-10 16:08:31 -07:00
Dan Mills
67fd1f1e82 can't get guid on expiration 2009-04-10 16:04:13 -07:00
Edward Lee
f1f0742fae 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
ebca2e9c0f 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
Myk Melez
c699fdf732 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
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
Mikhail Stepura
e97e9389db 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
25b484a48a 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
09653caf66 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
Anant Narayanan
da004b2423 Update form sync engine to work with Weave0.3/FF3.5 2009-04-06 19:05:16 +02:00
Edward Lee
3993035a59 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
eebdf48521 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
2e72dcf2a7 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
0d1e91ca16 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
b0633f2208 Bug 486234 - Give changes json file name for history, passwords 2009-03-31 20:07:43 -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
fd14693e9f Bug 478328: delete old history data from the server 2009-03-30 15:19:00 -07:00
Dan Mills
9df4203349 remove dump() debugging from tabs engine 2009-03-30 15:18:20 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
53fa9e5846 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
51c55c8f41 Bug 484848: try #3 2009-03-26 10:58:54 -07:00
Dan Mills
f6f3adc09e Bug 481319: try again 2009-03-25 19:47:37 -07:00
Dan Mills
4abd146e4f merge upstream changes 2009-03-25 19:33:51 -07:00
Dan Mills
a3725fab15 Bug 484848: modifyLogin sends an array of nsILoginMetaInfos to observers 2009-03-25 19:27:24 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
b690a2858d Fixed name of TabStore.changeItemID so that it correctly overrides the abstract base class method. Whoops. 2009-03-25 17:36:11 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
6555e1e1ef Experimenting with getting tab last-used-time data on Fennec 2009-03-18 12:40:27 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
0f809c8372 Removed unused code from tab tracker. 2009-03-17 18:02:13 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
a6e05ab37a TabTracker now keeps track of when each tab was most recently used; tabStore wraps this data for sync, and fennec UI uses it to sort incoming tabs by most-recently-used date. This fixes 481326. 2009-03-17 17:57:53 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
95ae06e497 If you click the button to show synced tabs before Weave has been configured, it will now take you straight to the sign-in screen. Fixes bug 482818. 2009-03-16 16:49:56 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
859e51e20b The remote-tabs menu (on both firefox and fennec) no longer shows tabs you already have open locally. Fixes bug 480405. 2009-03-12 15:54:26 -07:00
Edward Lee
dfc2d1f68a Bug 481266 - Provide a way to perform actions on remote clients. r=thunder 2009-03-03 17:29:35 -06:00
Dan Mills
489e86bdc5 oops, client was not updating depth/index of records 2009-03-11 02:02:58 -07:00
Dan Mills
7b9eedde66 Bug 478327: Send minimal '[null]' payload for deleted records 2009-03-11 01:40:04 -07:00