gecko-dev/services/sync
Lina Cambridge 397d3a1156 Bug 1583413 - Fetch the Send Tab target list from FxA, not Sync. r=markh,eoger
Instead of using the list of FxA devices from the Sync clients engine,
we now fetch the list of Send Tab devices from FxA. This works like
this:

* `FxAccountsDevice#getDeviceList` has been split up into
  `recentDeviceList` and `refreshDeviceList`.
* `recentDeviceList` synchronously returns the last fetched list, so
  that consumers like Send Tab can use it right away.
* `refreshDeviceList` is asynchronous, and refreshes the last fetched
  list. Refreshes are limited to once every minute by default, matching
  the minimum sync interval (Send Tab passes the `ignoreCached` option
  to override the limit if the user clicks the "refresh" button).
  Concurrent calls to `refreshDeviceList` are also serialized, to
  ensure the list is only fetched once.
* The list is flagged as stale when a device is connected or
  disconnected. It's still kept around, but the next call to
  `refreshDeviceList` will fetch a new list from the server.
* The Send Tab UI refreshes FxA devices in the background. Matching FxA
  devices to Sync client records is best effort; we don't do it if Sync
  isn't configured or hasn't run yet. This only impacts the fallback
  case if the target doesn't support FxA commands.

Differential Revision: https://phabricator.services.mozilla.com/D47521

--HG--
extra : moz-landing-system : lando
2019-10-03 22:40:55 +00:00
..
locales
modules Bug 1583413 - Fetch the Send Tab target list from FxA, not Sync. r=markh,eoger 2019-10-03 22:40:55 +00:00
modules-testing Bug 1582633 - allow an FxA user to be signed in without sync being enabled. r=eoger,lina 2019-09-25 06:51:18 +00:00
tests Bug 1583413 - Fetch the Send Tab target list from FxA, not Sync. r=markh,eoger 2019-10-03 22:40:55 +00:00
tps/extensions/tps Bug 1585211 - Have TPS enable sync when the test user logs in. r=tcsc 2019-10-01 00:32:01 +00:00
components.conf Bug 1524688: Part 15 - Convert Weave to static registration. r=markh 2019-01-29 20:44:18 -08:00
moz.build Bug 1582023 - Replace "sync disconnect" dialog and local data removal with simple confirmation dialog. r=eoger,flod,fluent-reviewers 2019-09-19 05:59:51 +00:00
SyncComponents.manifest Bug 1524688: Part 15 - Convert Weave to static registration. r=markh 2019-01-29 20:44:18 -08:00
Weave.jsm Bug 1582633 - allow an FxA user to be signed in without sync being enabled. r=eoger,lina 2019-09-25 06:51:18 +00:00