Commit Graph

681 Commits

Author SHA1 Message Date
Dan Mills
704d1c079a fix url vs uri typo 2009-01-15 18:43:44 -08:00
Dan Mills
6891a3b69a merge upstream changes 2009-01-15 15:53:51 -08:00
Dan Mills
fedd698bbb fix typo 2009-01-15 15:53:34 -08:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
e823363952 Merged 2009-01-15 14:06:00 -08:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
cd797f05a7 Added a method to historyStore called tempTableExists which does a SELECT (rather than using tableExists) to correctly tell whether a temp table is there or not, so that historyEngine will work correctly on both Fennec and Firefox (See bug 472963) 2009-01-15 14:05:50 -08:00
Dan Mills
3dd2a14339 Bug 468671: Don't synchronize livemarks. Based on patch by Jorge Alves <jag.alves@gmail.com> 2009-01-15 13:58:59 -08:00
Dan Mills
67f99f74cd add some extra log info to engine; have tracker ignore all changes when applying a change to prevent the tracker from generating new guids for new items before the store has a chance to set the right one 2009-01-14 22:01:04 -08:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
c681501e5c Added callback to Weave.Service.onStartup, which the Fennec UI uses to notify user that Weave has connected, that it ran into an error, or that it's awaiting configuration. Started moving fennec preferences from HTML to XUL. 2009-01-14 11:23:08 -08:00
Dan Mills
23aaa6fcb7 disable unused engines; fix trackers trying to call enable which is gone now; improve bookmarks tracker logging 2009-01-13 16:55:51 -08:00
Dan Mills
3c8aa12c49 syncCores are gone 2009-01-13 16:11:31 -08:00
Dan Mills
d34aba46fd make tracker return true/false when adding a changed ID to indicate if it was a valid add or not; change bookmarks & history trackers to match; fix some problems in bookmarks tracker 2009-01-13 15:55:35 -08:00
Dan Mills
445916b2e6 ignore/unignore specific weave IDs instead of a blanket enable/disable of the tracker during sync. 2009-01-13 14:43:21 -08:00
Dan Mills
51d51a26ed small getchildren/getsiblings cleanup 2009-01-13 13:40:40 -08:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
730c9b4ef5 History sync now works in Fennec, by simply skipping all the temp tables that don't exist in Fennec. This should also fix bug 472853 for weave in Firefox. 2009-01-09 15:44:27 -08:00
Dan Mills
3c586f5121 merge upstream changes 2009-01-08 21:34:43 -08:00
Dan Mills
ee4044e7e1 when an orphan bookmark is found, reparent it to the unfiled bookmarks folder 2009-01-08 21:33:59 -08:00
Dan Mills
cf5c78dfcf skip part of reconciliation for incoming deleted records 2009-01-08 21:33:37 -08:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
308841e718 Merged 2009-01-08 16:59:56 -08:00
Dan Mills
ad5a4b0316 merge upstream changes 2009-01-08 16:57:49 -08:00
Dan Mills
793c17b023 commit so hg will let me merge 2009-01-08 16:57:35 -08:00
Dan Mills
d72b5b3b4d make sure we return false if veryfyLogin fails 2009-01-08 16:55:30 -08:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
8bff01bd48 The Weave check box on the Fennec preferences screen now logs you in/out when you click it in addition to enabling/disabling the scheduler. Improved the fennec-connect page by making the text fields auto-select when you click in them and turning the 'accept TOS' check box into a button. 2009-01-08 16:37:36 -08:00
Anant Narayanan
de382c7b72 Make RecordParser interface little easier to use 2009-01-08 06:39:39 +01:00
Anant Narayanan
0134157f37 Basic record parsing in place 2009-01-08 06:29:55 +01:00
Dan Mills
f65179b732 set guid when creating history entries 2009-01-07 17:46:31 -08:00
Dan Mills
c8c5ae0467 fix Cache 2009-01-07 17:45:17 -08:00
Dan Mills
46e7f4e44c correctly maintain linked list pointers in cache 2009-01-07 16:43:49 -08:00
Dan Mills
7167b95ceb Bug 472480: catch errors when changing history item IDs 2009-01-07 15:01:12 -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
c3dc0195a6 fail recordLike if either record is null (deleted) 2009-01-07 13:05:05 -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
b707751a28 partially re-enable client data (guid,name,type) 2009-01-03 01:40:22 -08:00
Dan Mills
767ad5d9b3 update history engine to work again with latest engine changes, and re-enable history sync 2009-01-03 01:04:17 -08:00
Dan Mills
34a114606d fix depth/index record generation 2009-01-02 21:13:32 -08:00
Dan Mills
df54949485 extra debugging to catch getFolderIdForItem errors 2009-01-02 19:35:23 -08:00
Dan Mills
cc914050b2 drop _isEqual debug statements to trace level 2009-01-02 17:35:47 -08:00
Dan Mills
41bd8b02b9 consider sortindex when checking if a remote record is the same as a local one 2009-01-02 17:27:45 -08:00
Dan Mills
4cb774d408 remove extra debug code 2009-01-02 16:17:36 -08:00
Dan Mills
07caef3f67 warn when trying to add an undefined guid to the tracker's changes list 2009-01-02 16:17:09 -08:00
Dan Mills
fd1579088c fix tracker's onItemRemoved 2009-01-02 16:16:38 -08:00
Dan Mills
2754039971 fix/further simplify reconciliation 2009-01-02 15:51:35 -08:00
Dan Mills
62c5aa360c remove 'outgoing' record cache (generate outgoing records at send time); clear the store cache and force a GC after reconciliation; push depth+index (metadata) records after regular (full) records; simplify + better comment reconciliation function; fix low mem check 2009-01-02 13:51:38 -08:00
Dan Mills
5e7867a4de add a _getWeaveParentIdForItem method; fix getAllIDs; add a createMetadataRecord method 2009-01-02 13:49:19 -08:00
Dan Mills
f19e7c550a change pushDepthRecord to pushLiteral (takes an object instead of a resource; omits the resource upload filters step) 2009-01-02 13:46:55 -08:00
Dan Mills
0f96797713 fix cache typo. remove wrapDepth, it will be replaces with a different method 2009-01-02 13:36:28 -08:00
Dan Mills
4874eb740f limit json filter's debug output 2009-01-02 13:35:40 -08:00
Dan Mills
f5a1c1d230 improve WBORecord's toString() 2009-01-02 13:20:19 -08:00
Dan Mills
d04e52f8f5 typo fix 2008-12-30 23:56:53 -08:00
Dan Mills
5e3ac9586e add a generic cache class for storing records during reconciliation. cache has 100 item limit, and is cleared before and after reconciliation so the OS can reclaim memory after GC 2008-12-30 23:52:20 -08:00
Dan Mills
380b614133 make engine keep less records in memory by limiting the outgoing queue to a maximum of 100 records, and fetch the rest from the store each time 2008-12-29 23:28:17 -08:00