Richard Newman
b3e8068dcd
Bug 629742: more efficient handling of bookmark callbacks in Sync. r=philiKON
2011-04-07 15:55:29 -07:00
Philipp von Weitershausen
3eeacec085
Bug 648338 - Remove remaining Firefox 3.5/3.6 compat code. r=rnewman
2011-04-07 15:31:11 -07:00
Philipp von Weitershausen
a7469d0b21
Bug 648338 - Remove Firefox 3.5/3.6 compat code in the form engine. r=rnewman
2011-04-07 15:30:54 -07:00
Philipp von Weitershausen
bb5befa38f
Bug 648338 - Remove Firefox 3.5/3.6 compat code in the history engine. r=rnewman
2011-04-07 15:30:44 -07:00
Philipp von Weitershausen
262f5e8e99
Bug 648338 - Remove Firefox 3.5/3.6 compat code in the bookmarks engine. r=rnewman
2011-04-07 15:30:31 -07:00
Richard Newman
61fd5fd9b2
Bug 577565: downgrade forms log message. r=philiKON
2011-03-24 21:34:01 -07:00
Richard Newman
77d7c794ad
Bug 642727 - Don't trigger sync error when bad HMAC records are deleted. r=philiKON
2011-03-20 16:10:40 -07:00
Philipp von Weitershausen
9e38e27df8
Bug 636312 - Forms and passwords engines: yield back to the main thread during batches of synchronous I/O. r=rnewman a=blocking-fennec
2011-03-07 13:07:59 -08:00
Philipp von Weitershausen
b0b3e2a514
Bug 636673 - Avoid accessing 'arguments' in code that's called a lot. r=rnewman a=blocking-fennec
2011-03-02 15:27:16 -08:00
Philipp von Weitershausen
91354212df
Bug 636305 - History engine: make incoming records comply to mozIPlaceInfo. r=rnewman a=blocking-fennec
2011-03-01 21:26:38 -08:00
Philipp von Weitershausen
451da0c655
Bug 636676 - Utils.queryAsync: reuse mozIStorageStatementCallback object. r=rnewman a=blocking-fennec
2011-03-01 14:29:52 -08:00
Richard Newman
23ab949c38
Bug 629463: delete bad server-side clients records. r=philiKON a=beltzner
2011-03-01 11:56:29 -08:00
Philipp von Weitershausen
c218c4a0a0
Bug 636402 - Simplify Sync.js to avoid creating new objects. r=rnewman a=blocking-fennec
2011-02-25 14:43:18 -08:00
Richard Newman
da22a75a3b
Bug 634441: livemark robustness. r=philiKON, a=beltzner
2011-02-25 11:56:58 -08:00
Richard Newman
f31dcaaab4
Bug 632287: delete and recreate if a bookmark update changes type. r=philiKON, a=beltzner
2011-02-23 12:14:11 -08:00
Marco Bonardo
516faf90c4
Bug 634401 - Use nsINavBookmarksService::moveItem rather than setItemIndex in Sync. r=philikon a=beltzner
2011-02-16 15:53:23 -08:00
Philipp von Weitershausen
74ebb180df
Bug 631891 - Determine GUID immediately when URIs are about to be deleted. r=rnewman a=crossweave
2011-02-10 14:12:25 -08:00
Philipp von Weitershausen
b40fd2aa78
Bug 631891 - Don't spin the event loop in a history observer. r=mconnor a=blocking-final
2011-02-10 09:06:55 -08:00
Philipp von Weitershausen
a03998ca83
Bug 631001 - Password sync: apply records batched and in transactions to avoid fsyncs. r=mconnor a=blocking-fennec
2011-02-08 20:37:06 -08:00
Richard Newman
590ff514eb
Bug 628788: return more readily after processing GUID anno. r=mconnor
2011-02-07 17:49:42 -08:00
Richard Newman
10f3e22207
Bug 628788: copying a bookmark should yield a new Sync GUID. r=philiKON
...
--HG--
extra : transplant_source : J9%A1Bw%B2%14%2C.%E1R%40%B6%EC2%E1%E4%3B%24t
2011-02-07 11:25:47 -08:00
Philipp von Weitershausen
b9c170275b
Bug 630720 - Form sync: apply records batched and in transactions to avoid fsyncs. r+a=mconnor
2011-02-03 10:23:38 -08:00
Richard Newman
3697c219a8
Bug 609380: password sync: don't apply records with both httpRealm and formSubmitURL. r=mconnor
2011-01-31 23:22:13 -08:00
Philipp von Weitershausen
09d22d8119
Bug 606353 - History sync: use mozIAsyncHistory::updatePlaces. r=rnewman
2011-01-28 09:39:35 -08:00
Philipp von Weitershausen
28e18f7541
Bug 622762 - Add batch API for incoming records, deal with exceptions in SyncEngine's recordHandler. r=mconnor,rnewman
2011-01-28 09:39:12 -08:00
Richard Newman
ba33594a62
Bug 610501: better rewriting of tag search smart bookmarks. r=philiKON
2011-01-28 00:18:36 -08:00
Richard Newman
cd62cfe8dc
Bug 610501: dupe Smart Bookmarks based on anno. r=philiKON
2011-01-28 00:14:08 -08:00
Richard Newman
decb0e220a
Bug 610501: handle smart bookmarks correctly in Sync.
2011-01-26 12:36:38 -08:00
Richard Newman
82aebc9e26
Bug 627497: remove annotations from copied bookmarks. r=philiKON
2011-01-25 12:37:23 -08:00
Richard Newman
bdc5390864
Bug 626796: Bookmark sync: restore from backup should trigger reupload. r=philiKON
2011-01-24 23:06:42 -08:00
Richard Newman
6a1fddc2f0
Bug 627490: Bookmark sync: don't cache places IDs. r=philiKON
2011-01-24 10:45:27 -08:00
Philipp von Weitershausen
821318dd56
Bug 609421 follow-up: fix copypasta. r=rnewman
2011-01-19 14:12:14 -08:00
Philipp von Weitershausen
448d9b94ac
Bug 609421 - Combine base_record/* files into record.js. r=rnewman
...
--HG--
rename : services/sync/modules/base_records/wbo.js => services/sync/modules/record.js
2011-01-18 16:23:30 -08:00
Philipp von Weitershausen
52ed8e305a
Bug 609421 - Move tracker and store implementation into engines.js. r=rnewman
2011-01-18 16:23:25 -08:00
Philipp von Weitershausen
df43d53fe2
Bug 609421 - Combine type_record/* files with their respective engines/* counterparts. r=rnewman
2011-01-18 16:23:20 -08:00
Philipp von Weitershausen
f6e432c2f5
Bug 618403 - Orphan reparenting too aggressive, can lead to double bookmarks on storage version upgrade. r=rnewman
2011-01-14 13:41:09 -08:00
Philipp von Weitershausen
370ffe57dd
Bug 591103 - Ensure the client record is refreshed. r=mconnor
2011-01-14 13:22:20 -08:00
Philipp von Weitershausen
16d250d5d1
Bug 623418 - Bookmark sync: use a SQL query to fetch child GUIDs. r=mconnor,sdwilsh
2011-01-13 14:03:11 -08:00
Philipp von Weitershausen
0e0a895bb1
Bug 623418 - Bookmark sync: don't record children in annotation. r=mconnor
2011-01-13 14:03:09 -08:00
Philipp von Weitershausen
d61cf5a4b9
Bug 623375 - History sync: failure on javascript: URLs. r=mconnor
2011-01-11 15:04:45 -08:00
Richard Newman
e905821e24
Bug 597400: return null if GUID lookup fails in forms engine. r=philiKON
2011-01-06 12:05:30 -08:00
Philipp von Weitershausen
3244eba263
Bug 621489 - Make sure to call _orderChildren even if _processIncoming fails. r=mconnor
2011-01-04 15:04:18 -08:00
Philipp von Weitershausen
0f15591bbb
Bug 621594 - History sync: failure when title is null. r=mconnor
2010-12-28 17:36:18 -08:00
Philipp von Weitershausen
caab2e2f93
Bug 616001 follow-up: Async statements are compiled asynchronously and fail on first execution, not creation. r=sdwilsh
2010-12-15 16:08:04 -08:00
Shawn Wilsher
2762c45298
Bug 616001 - Sync needs to check moz_places.guid and moz_bookmarks.guid if it exists. r=philikon
...
Part 2 - Update bookmark engine.
2010-12-14 15:48:05 -08:00
Shawn Wilsher
87f7327377
Bug 616001 - Sync needs to check moz_places.guid and moz_bookmarks.guid if it exists. r=philikon
...
Part 1 - Update history engine.
2010-12-14 15:48:03 -08:00
Philipp von Weitershausen
3ace8aaf0a
Bug 617521 - Random bookmark reordering due to dupe handling. r=mconnor
2010-12-07 21:49:22 -08:00
Richard Newman
98051adf04
Bug 616265: Add download limit for history, lift magic number. r=mconnor
2010-12-06 17:25:35 -08:00
Philipp von Weitershausen
d8c109a724
Bug 615285 - Bookmark sync: track ordering on folder. r=mconnor
2010-12-06 15:51:56 -08:00
Philipp von Weitershausen
5ea3894792
Bug 615410 - Use different annotations for parent and predecessor. r=mconnor
...
The old annotations will no longer be valid because they point to a different kind of GUID.
Since we're using our own GUID system now, we also don't have to munge predecessor and parent GUIDs before setting them.
2010-12-06 15:51:48 -08:00
Philipp von Weitershausen
85eb795fda
Bug 615410 - Have bookmarks generate new-style GUIDs. r=mconnor
2010-12-06 15:51:38 -08:00
Philipp von Weitershausen
f9740e32c7
Bug 616179 - Persona is not displayed after pref sync cleanup. r=mconnor
2010-12-02 11:03:01 -08:00
Philipp von Weitershausen
729a42719c
Bug 615604 - Only accept pref updates for the current app. r=mconnor
2010-11-30 13:37:07 -08:00
Philipp von Weitershausen
01ffd2d9a2
Bug 615604 - Make pref GUIDs base64url. r=mconnor
2010-11-30 13:36:01 -08:00
Philipp von Weitershausen
c8ecebe93b
Bug 614104 - Use new annotation for history GUIDs. r=mconnor
...
This way all history entries are assigned new-style GUIDs.
2010-11-30 10:26:15 -08:00
Richard Newman
ffb07cee37
Bug 603489, 614489: simplified crypto. r=mconnor
2010-11-29 16:41:17 -08:00
Philipp von Weitershausen
b445191feb
Bug 560580 - Pref sync cleanup [r=mconnor]
2010-11-23 21:21:37 -08:00
Philipp von Weitershausen
a8b99bdfa2
Bug 600993 - Tab sync has no reason to ever touch disk [r=mconnor]
2010-11-11 11:00:41 -08:00
Philipp von Weitershausen
f591065405
Bug 610375 - Make bookmark folders not sync last [r=mconnor]
2010-11-09 13:53:50 -08:00
Philipp von Weitershausen
f32561863b
Bug 584927 - Use async queries to set page annotations in the history engine [r=mconnor,sdwilsh]
2010-11-02 16:34:46 -07:00
Philipp von Weitershausen
8e81c5b7cd
Bug 584927 - Use an async query to get page annotations in the history engine [r=mconnor,sdwilsh]
2010-11-02 16:34:38 -07:00
Philipp von Weitershausen
3d8a0cccc7
Bug 584927 - Factor GUIDForUri and setGUID into HistoryStore [r=mconnor]
2010-08-06 14:40:06 -07:00
Philipp von Weitershausen
17e9694951
Bug 603502 - Syncing an account with email will generate a nonsensical device name [r=mconnor]
2010-10-14 10:59:08 +02:00
Philipp von Weitershausen
b82a6c9745
Bug 597404 - History sync: Null id for anno! (invalid uri) [r=mconnor]
...
Don't fail history sync when the places DB contains invalid URIs.
2010-10-14 07:12:19 +02:00
Philipp von Weitershausen
6e250f858f
Bug 569968 - Migration requires client to remove absolute URLs in crypto records
...
Make WBORecord.uri, CryptoWrapper.encryption, PubKey.privateKeyUri, PrivKey.publicKeyUri as well as the CryptoMeta keyring keys relative URLs in the payload. As a result, all records now *must* know their URI.
Bump storage version from 2 to 3 to trigger reupload of all data and exclude older clients.
2010-08-12 22:19:39 +02:00
Matt Brubeck
19147be0a2
Bug 580050 - Use hardware model instead of oscpu to identify clients [r=Mardak]
2010-09-08 11:55:57 -07:00
Philipp von Weitershausen
252e31061d
Bug 585753 - Changeset 7e8b1f7852a9 breaks bookmark sync [r=mconnor]
2010-08-10 01:59:26 +02:00
Philipp von Weitershausen
7af40237fb
Bug 583847 - Weave should be using createAsyncStatement instead of createStatement [r=mconnor]
2010-08-09 18:38:18 +02:00
Philipp von Weitershausen
67d49970e4
Bug 583852 - Weave should not be querying on places views [r=mconnor]
...
Query moz_places, moz_historyvisits *and* moz_places_temp, moz_historyvisits_temp instead of the slower views.
If the temp tables aren't available (bug 552023), just query the regular tables.
Fixed some style and syntax nits.
2010-08-09 18:38:18 +02:00
Philipp von Weitershausen
59d452e839
Bug 487558 - Use satchel notifications to track form data [r=mconnor]
2010-08-06 17:31:36 +02:00
Philipp von Weitershausen
a6703ed75f
Bug 584241 - Disable trackers when client isn't configured [r=mconnor]
2010-08-06 17:30:58 +02:00
Philipp von Weitershausen
4678af4c19
Bug 584402 - Audit references across XPCOM borders [r=mconnor]
...
Use weak references for observers.
2010-08-04 21:07:53 +02:00
Philipp von Weitershausen
d2bdde4533
Bug 584402 - Audit references across XPCOM borders [r=mconnor]
...
Nuke refs to XPCOM services on shutdown.
2010-08-04 21:07:27 +02:00
Mike Connor
31d5c911e8
Bug 584369 - history sync is busted on tip, r=philiKON
2010-08-04 11:07:50 -04:00
Mike Connor
9be564a5ca
[mq]: weakRefForms
2010-08-04 10:42:09 -04:00
Paul O’Shannessy
4cdd8a43b7
Bug 545752 - DB Statements aren't finalized in HistoryStore [r=mconnor]
...
Also nullifies the cached service so we don't leak.
2010-08-04 14:59:34 +02:00
Paul O’Shannessy
69a6017b51
Bug 584040 - Fix leaky tests [r=mconnor]
...
Make sure we explicitly nullify the cached services in the BookmarksStore & BookmarksTracker.
Also, explicitly finalize the statement if it was created.
2010-08-04 14:50:44 +02:00
Philipp von Weitershausen
23ee08503e
Bug 580158 - Change Firefox Sync behavior in Private Browsing mode [r=mconnor]
...
Don't disable sync when in private browsing. When in explicit private browsing mode (either via menu item or -private command line flag), have tabs engine not provide data.
2010-07-19 23:07:45 -07:00
Edward Lee
eca54fde2e
Bug 575423 - Forced syncs fail to upload some history [r=mconnor]
...
Select from views to get disk and memory data now that async makes it not block.
2010-06-29 11:18:21 -07:00
Philipp von Weitershausen
43920b5e3d
Bug 572436 - Get rid of app-specific hacks (switch (Svc.AppInfo.ID)) in sync library [r=mconnor]
...
Set relevant default preferences programmatically in app specific overlays, making app-specific code paths in the sync library unnecessary.
2010-06-16 23:11:40 +01:00
Edward Lee
46e1de249f
Bug 570636 - Decide how to co-exist as a sync add-on and built-in sync [r=mconnor]
...
Migrate prefs from extensions.weave. to services.sync. when loading the service for the first time before migration.
2010-06-16 14:30:13 -07:00
Edward Lee
4e55362a90
Bug 570636 - Decide how to co-exist as a sync add-on and built-in sync [r=mconnor]
...
Map the modules directory to services-sync instead of weave and update imports.
2010-06-16 14:30:08 -07:00
Edward Lee
61f3668330
Bug 562878 - Override for machine name [r=mconnor]
...
Allow setting of the computer name during Firefox account setup and from prefs. Also allow setting device name from Fennec prefs. Fix up strings for Fennec.
2010-06-11 11:36:51 -07:00
Edward Lee
fd2b51aee6
Bug 566061 - After server syncing, lightweight themes do not get applied to Chrome [r=mconnor]
...
Make sure the pref exists (is a bool) before trying to access its value.
2010-06-10 10:57:49 -07:00
Edward Lee
1fdb100093
Bustage fix for bug 570635 to check null for item.guid instead of item.
2010-06-09 16:10:38 -07:00
Edward Lee
ef8599f8c5
Bug 570635 - Use async queries for fetching form data [r=mconnor]
...
Create a Utils.queryAsync to wrap executeAsync that fetches all rows and columns by name. Update form and history engines to use it.
2010-06-09 09:35:01 -07:00
Edward Lee
b217211241
Bug 565411 - Accept max_results as a parameter to allow configuring the number of history items. [r=mconnor]
2010-06-02 15:18:01 -07:00
Edward Lee
653b88df98
Bug 565411 - Sync 5000 most frecent pages instead of 1000 recent for first sync [r=mconnor]
...
Use an async sql query to get uris by frecency instead of query result nodes, and wrap it with sync/async to keep the sync interface without blocking UI. Rough timings of getAllIDs: old 1k = 1.6sec blocking; old 5k = 2.7sec blocking; new 1k = .2sec non-block; new 5k = .6sec non-block.
2010-05-13 11:44:19 -07:00
Edward Lee
c2d690b112
Bug 568256 - form history changes breaks form sync, FF search bar, probably more [r=mconnor]
...
Check for both old and new class IDs and use the one that exists when wrapping. Also add FormTracker as the observer object so that its notify function is correctly called by nsHTMLFormElement.
--HG--
extra : rebase_source : 470430eaa643415e635836db3c38fb639a4e44b6
2010-05-26 11:56:04 -07:00
Edward Lee
b7c52221c4
Bug 563989 - Reset Sync option 3, doesn't properly propagate to other clients [r=mconnor]
...
Always sync client data by making sure it's always enabled and only update local cilent with remote commands. Make sure to sync clients to get a list of clients that need to receive commands. Also, make sure to upload data after wiping remote now that remoteSetup happens before wipeRemote.
2010-05-05 17:16:17 -07:00
Edward Lee
f65cfa40d2
Bug 561839 - import PlacesUtils.jsm instead of utils.js [r=mconnor]
...
Try the new PlacesUtils file before the old utils.js.
2010-05-04 12:14:48 -07:00
Mike Connor
2c1b819cdf
Bug 561382 - Theme doesn't dynamically switch on sync to default theme, r=Mardak
...
--HG--
extra : rebase_source : e2a8fe1659816065cd162c2514336ec6f5a07521
2010-05-03 16:44:18 -04:00
Edward Lee
ff3ec7ac67
Bug 559163 - Don't select from slow indexless views for just one item [r=mconnor]
...
Just select from moz_places instead of _view where data might be slightly stale but good enough.
2010-04-29 14:36:15 -07:00
Edward Lee
d98d0bfafa
Bug 554836 - On idle occurs 'JavaScript component does not have a method named: "onDeleteVisits"' [r=mconnor]
...
Add onDeleteVisits in addition to onPageExpired to maintain compatibility with old and new API.
2010-04-29 16:42:39 -07:00
Edward Lee
69584666ee
Bustage fix from sync-asyncExecute: don't throw as the old code would catch and implicit return undefined.
2010-04-29 15:18:05 -07:00
Edward Lee
3c6fd67fb6
Bug 553709 - Syncing "Browsing History" uses 100% of a CPU core for extended periods [r=mconnor]
...
Sync asyncExecute to avoid forcing synchronous waits on disk but keep existing calling conventions (no callbacks) for callers by using Sync.
2010-04-29 14:36:15 -07:00
Edward Lee
ffe2ddb849
Bug 558077 - Bookmark folder and its contents lost under certain conditions of syncing same named folder [r=mconnor]
...
Mark entries as dupe if they're known to be dupes locally so that receiving ends won't bother looking for dupes for these items.
--HG--
extra : rebase_source : 2623f7ed20160ba445b58f538c3397caa0ef78e3
2010-04-29 14:36:09 -07:00
Mike Connor
f2d003872f
Bug 562159 - Tabs from other computers don't show at about:weave-tabs, r=Mardak
...
--HG--
extra : rebase_source : 6e585fc3ddf75f3654286c08f1cd660586ce2de3
2010-04-28 22:20:08 -04:00
Mike Connor
11c85ae589
Bug 526012 - audit observer service usage, r=mardak
2010-04-20 21:56:44 -04:00
Edward Lee
9d76d3dc30
Bug 553402 - New pages in a tab aren't synced [r=mconnor]
...
Trace pageshow events to indicate that new tab data should be uploaded. Because scores must be integers, still increment the score by 1, but only do that 10% of the time for pageshows.
2010-04-21 16:35:51 -07:00
Edward Lee
7493d97441
Bug 558191 - Theme/persona sync sometimes doesn't happen until restart of client [r=mconnor]
...
Wait until all lightweight theme prefs have synced before poking at the lightweight theme manager.
2010-04-21 13:41:18 -07:00
Edward Lee
be8613110f
Bug 437277 - update daily backup before first bookmark sync [r=mconnor]
...
Share an archiveBookmarks function that wraps the PlacesUtils call to be used from storage.wipe and first sync.
2010-04-21 11:10:32 -07:00
Edward Lee
5771a28188
Bug 558654 - Firefox crashes every ~2min after update to 1.2 [r=mconnor]
...
Limit the number of initial form entries to 500 ordered by "frecency".
2010-04-11 12:34:27 -07:00
Edward Lee
4bc0d28e5b
Bug 558264 - Form data fails to sync when there's nothing to upload [r=mconnor]
...
Wrap the createStatement calls to guard against missing guid columns and lazily add it.
--HG--
extra : rebase_source : c59a692c6ad08321835c75023b54f02e8d1964da
2010-04-09 10:20:58 -07:00
Edward Lee
9dea7f5571
Bug 557503 - bookmark restore from backup and server-wins interact badly [r=mconnor]
...
Don't resetLastSync as that will make local changes look old and instead mark each as changed now that addChangedID doesn't jsonSave on each call.
2010-04-06 11:59:50 -07:00
Edward Lee
37ec3dd78c
Replace tabs in files under source/ with appropriate number of spaces.
2010-04-02 16:37:53 -07:00
Edward Lee
3b4aa0220d
Bug 550627 - Default reconciliation to server wins for older changed items [r=mconnor]
...
Save the time the tracker adds a new changed id and use that to compare the age of the record on the server vs the age of the local change to decide if it's server wins or client wins. Fix up various direct uses of changedIDs to use the API and make the save-to-disk lazy to avoid excessive writes. Add a test to make sure addChangedID only increases in time.
2010-04-01 15:54:53 -07:00
Edward Lee
e2f2dee6c3
Bug 546768 - form history uses hashes for GUIDs [r=mconnor]
...
Write a FormWrapper that knows about GUIDs and get/sets them in moz_formhistory as needed. It lazily adds the columns on failure and lazily generates GUIDs for entries that are missing it. Don't eagerly create a sha1 formItem mapping -- don't create it at all, so empty syncs will be much faster too.
2010-04-01 15:29:16 -07:00
Edward Lee
5833da7aa7
Bug 556361 - New searches from the searchbar don't get synced [r=mconnor]
...
Add a component that notifies when satchel methods are getting called. The notifications come as "form-notifier" with JSON data of the function name, arguments, and type (before vs after).
2010-04-01 15:21:54 -07:00
Edward Lee
ab278f01cd
Bug 556509 - folders description not synchronised [r=mconnor]
...
Allow descriptions to be set on folder records and set description on creation.
--HG--
extra : rebase_source : d380f5d28130bd53532e5b4d293468aa053c19b2
2010-04-01 15:11:42 -07:00
Edward Lee
05af24a32c
Bug 535326 - Need to rethink tab sync limit of 25 [r=mconnor]
...
Fit as many tabs as possible in 20000 characters by linearly estimating how many will fit then remove extras one by one.
--HG--
extra : rebase_source : 1ef3700a9cddd7e3cb0f96b9affada15e98ea672
2010-02-17 18:24:22 -08:00
Mike Connor
23d76a73c9
bug 539056 - Better Tab sync UI and discoverability, r=Mardak
...
--HG--
extra : rebase_source : d0c98d78b889ed74f5b130077a6ee1806bd81282
2010-03-12 16:14:09 -08:00
Paul O’Shannessy
9aefb399d5
Bug 555015 - JavaScript strict warning: bookmarks.js: undeclared variable record [r=Mardak]
...
Just make sure the record variable is declared before using it.
2010-03-25 13:58:27 -07:00
Edward Lee
21f7747109
Bug 548066 - JavaScript strict warning: clientData.js, line 194: reference to undefined property this.clients[id] [r=mconnor]
...
Get rid of get/setInfo on ClientEngine and ClientStore and expose functions to read/modify client data: stats, clearCommands, sendCommand. Also expose the local client information as local[ID,Name,Type,Commands] and rework the storage to use these instead of trying to keep the JS object clients entry in sync with prefs, etc. Update users of the old interface (service/tabs/chrome) to use the new local*. Set the client type based on app id instead of from each app's overlay.
2010-03-16 16:39:08 -07:00
Edward Lee
15e1f02e87
Bug 554427 - Move syncID from clients.js to service.js [r=mconnor]
...
Switch from Clients.syncID to this.syncID for service.js. Don't special case resetSyncID and just use = "".
2010-03-25 16:52:45 +00:00
Edward Lee
af0bf0ab2a
Bug 546772 - Encrypt the clients records [r=mconnor]
...
Store data in cleartext instead of directly in the payload to have it encrypted with the CryptoWrapper. This cleans up some hacks needed to get the plain WBO client record to behave nicely with other encrypted data.
2010-03-16 16:31:55 -07:00
Edward Lee
dced4ea743
Bug 554472 - Only sync prefs under extensions.weave.prefs.sync. (with a trailing dot) [r=mconnor]
...
Add a "." to the end of WEAVE_SYNC_PREFS value and fix up uses that did extra work to remove the dot (or something that might not have been a dot).
2010-03-23 18:51:47 -07:00
Paul O’Shannessy
59471f450c
Bug 548939 - Use SessionStore in tab engine [r=Mardak]
...
Created a fake SessionStore service for Fennec that imitates the parts of Firefox's SessionStore API that we need. Then used the now "consistent" SessionStore service in the Tabs engine.
2010-03-16 15:14:32 -07:00
Edward Lee
1ce05d4603
Bug 549633 - Standardize record creation so all SyncEngines encrypt data [r=mconnor]
...
Always add the id and encryption value so client and delete records can be encrypted.
2010-03-05 14:46:48 -08:00
Edward Lee
a9c2e6c4c2
Bug 549632 - Remove storage cache, which is mostly un/incorrectly used [r=mconnor]
...
Remove incorrectly used cache from some engines and clean up references from SyncEngine.
2010-03-05 14:43:11 -08:00
Paul O’Shannessy
f39831ac01
Bug 546397 - Exception: Clients.getClients()[Clients.clientID] is undefined [r=Mardak]
...
Overrode _wipeClient in ClientEngine; treat resetting the same as wiping.
2010-02-19 13:36:42 -08:00
Edward Lee
3273de6ac1
Bug 545785 - Actively remove passwords that we don't want to sync
...
Check if we haven't deleted yet, and if not, grab the guids for weave credentials and delete them from the server.
2010-02-11 17:14:57 -08:00
Edward Lee
1ad29052b7
Bug 545767 - Clean up various names/strings needed for each set of engines/stores/trackers
...
Pass the engine name when constructing a subclass engine and construct the store/tracker with the same name.
2010-02-11 15:29:15 -08:00
Edward Lee
b8de893593
Bug 545764 - Convert constructor -> _init pattern to just use constructor
...
Inline various _init calls and do super's init with <Super>.call(this, args..). Add various get/set sugar to those missing e.g., meta.keyring. Also simplify crypto record creation by setting cleartext in the parent.
--HG--
extra : rebase_source : 6c9a9f210f8f46ac338adb84188538e7353c9673
2010-02-11 15:25:31 -08:00
Paul O’Shannessy
a3f801887c
Bug 545487 - Cleanup TabTracker_observe [r=Mardak]
...
Remove the "load" event listener and don't QI since we don't need to.
2010-02-11 15:08:28 -08:00
Edward Lee
e238de1fc6
Bug 545701 - explicitly exclude Weave password/passphrase from pw sync
...
Don't include weave passwords when getting all ids and ignore their changes.
2010-02-11 15:05:22 -08:00
Edward Lee
ed5e098629
Bug 544068 - Assume moved bookmarks should be where they're moved
...
Don't keep the annotation around in-case the predecessor/parent finally syncs because the user positioned it otherwise.
2010-02-03 15:34:42 -08:00
Edward Lee
39e968e8de
Bug 531489 - weave lost bookmarks with same url
...
Do dupe detection for bookmarks like how we do folders/separators but check against the url/title. Add parentName to bookmark records, so bump version.
2010-01-25 09:33:49 -08:00
Edward Lee
4cbaa75427
Lower tab logging to trace when wrapping tabs.
2010-01-21 09:59:27 -08:00
Edward Lee
8dfdbe920a
Bug 526937 - Bookmarks are re-uploaded when they get visited
...
Don't mark item as changed on a favicon notification to avoid churn that can result in merge messing up bookmark ordering.
2010-01-19 11:24:00 -08:00
Edward Lee
48b1cf979f
Bug 537954 - Some tabs don't get synced
...
Listen for load before adding the unload listener (and the Tab listeners).
2010-01-06 09:54:15 -08:00
Edward Lee
d3218dee1f
Bug 535479 - Be smarter in getting rid of the "remote tabs" notification
...
Add a tri-state pref that is unset, 0, or a number (modified time in seconds) and don't show the notification if it's in the "0" state. Unset pref means no modified time has been saved, and a non-0 state is the modified time of the last synced tab. So when tabs arrive with a different modified time, switch to the 0 state. Additionally, still remember if the user ever dismissed the notification and never show it again.
2009-12-17 12:20:07 -08:00
Edward Lee
1213f59b7e
Bug 534923 - Only show Mobile Bookmarks if there are mobile bookmarks
...
Fix up existing users as well as only creating the place query under AllBookmarks if there are mobile bookmarks.
2009-12-15 14:21:13 -08:00
Edward Lee
baf9c41432
Bug 534687 - Weave's pref syncing can sync lightweight themes in a broken fashion
...
Trigger lightweight theme manager's currentTheme setter when changing the usedThemes pref.
2009-12-14 16:05:07 -08:00
Edward Lee
c77f5b2807
Have wipeRemote wipe just the engines' data and make sure the clients process the command.
2009-12-10 18:39:51 -08:00
Edward Lee
a48b0da141
Bug 532936 - Add root level node for bookmarks synced from Fennec
...
Create a mobile root in Firefox and link it to the Library UI as a query that fixes its own title if changed. Mark the mobile root on Firefox/Fennec as special so Weave uses "mobile" for the guid in the record, and items will appear in the appropriate folder.
--HG--
extra : rebase_source : fbd3afa2647204a370f7dacdf9d824e462ebb9b9
2009-12-10 16:12:14 -08:00
Edward Lee
6f16e5f19c
Bug 532770 - Allow tab sync's filtered urls to be set by pref
...
Expose engine.tabs.filteredUrls as a string to be used as regex and filter case insensitively.
2009-12-03 14:54:23 -08:00
Edward Lee
4676b9cb18
Bug 488922 - Treat bookmarks restore specially
...
Add observers for bookmarks-restore-* and ignore changes during import and trigger a fresh start on success.
2009-12-02 19:20:44 -08:00
Edward Lee
bef67b3db3
Bug 532173 - Don't sync tabs of some pages (weave firstrun, about:blank)
...
Ignore certain filtered urls when creating a list of tabs for remote machines.
2009-12-02 14:46:02 -08:00
Edward Lee
08eca0017c
Bug 530717 - sync after wipe local should always replace local values with remote
...
Always take the incoming item after a wipe and otherwise do the normal reconcile.
2009-12-02 14:44:52 -08:00
Edward Lee
c5bc7653dd
Bug 531239 - clear out duplicate/old machines from Clients record
...
Get rid of persistent storage for clients and tabs to always fetch fresh records.
2009-12-02 14:44:17 -08:00
Edward Lee
a46e202447
Share tab-gathering code for both createRecord and locallyOpenTabMatches.
2009-12-01 11:36:56 -08:00
Edward Lee
eb87765d7b
Bug 530823 - Engines need to be able to specify a prefName for sharing prefs (different history types)
...
Use prefName for checking if an engine is enabled and have forms share a prefName with history.
2009-11-30 12:15:18 -08:00
Edward Lee
d4295ef8e9
Remove unused prefs and imports. (Bug 524916)
...
--HG--
extra : rebase_source : 074e542f63ee840b61db7fe63a6c3540c13a31a5
2009-11-25 17:49:15 -08:00
Mike Connor
7e923534c2
archive local bookmarks before wiping
...
--HG--
extra : rebase_source : dd54af2118cf60c9e4f4b3bf08b7a5c61e9e78b8
2009-11-25 17:09:32 -08:00
Edward Lee
df947df75e
Bug 531177 - Tabs don't sync from firefox (when there's lots of tabs)
...
Simplify tab record to just use deferGetSet like the other records and sort tabs based on their last usage to pick out a subset.
2009-11-25 15:22:45 -08:00
Edward Lee
dd2f688ee2
Bug 531171 - Tabs don't always update
...
Only expose that the tab engine knows about the current client's tabs, so always create/apply incoming and only create records tabs for local.
2009-11-25 15:17:39 -08:00
Edward Lee
877e53a9da
Bug 531170 - Tabs don't sync from fennec
...
Add listeners for Fennec tab events the same way we do it for Firefox and share listener logic for various event types.
--HG--
extra : rebase_source : 685e45c16052db3d285c25c68db47680b7d15f72
2009-11-25 15:14:56 -08:00
Edward Lee
b4233752d2
Bug 524916 - remove any/all code/images/strings that we aren't using anymore
...
Remove unused sync engines (cookies, extensions, input, microformats, plugins, themes).
2009-11-24 16:02:55 -08:00
Edward Lee
c05e0c5f94
Remove trailing whitespace from the codebase.
2009-11-20 14:34:20 -08:00