gecko-dev/services/fxaccounts
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
..
interfaces Bug 1489047 - Change almost all DOMString occurrences in XPIDL files to AString. r=nika 2018-09-06 18:02:43 +10: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
components.conf Bug 1524688: Part 44 - Convert FxAccountsPush to static registration. r=markh 2019-01-30 11:06:04 -08:00
Credentials.jsm Bug 1561435 - Format services/, a=automatic-formatting 2019-07-05 10:58:22 +02:00
FxAccounts.jsm Bug 1583413 - Fetch the Send Tab target list from FxA, not Sync. r=markh,eoger 2019-10-03 22:40:55 +00:00
FxAccountsClient.jsm Bug 1547120 - Add a method to list attached clients. r=rfkelly 2019-09-23 20:43:56 +00:00
FxAccountsCommands.js Bug 1583413 - Fetch the Send Tab target list from FxA, not Sync. r=markh,eoger 2019-10-03 22:40:55 +00:00
FxAccountsCommon.js Bug 1575921 - store the FxA device ID in an FxA-specific pref branch. r=eoger 2019-09-11 01:37:50 +00:00
FxAccountsConfig.jsm Bug 1570567 - update about:preferences#sync to reflect the decoupling of FxA and Sync. r=Gijs,eoger,flod,fluent-reviewers 2019-09-26 10:48:22 +00:00
FxAccountsDevice.jsm Bug 1583413 - Fetch the Send Tab target list from FxA, not Sync. r=markh,eoger 2019-10-03 22:40:55 +00:00
FxAccountsKeys.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
FxAccountsOAuthGrantClient.jsm Bug 1561435 - Format services/, a=automatic-formatting 2019-07-05 10:58:22 +02:00
FxAccountsPairing.jsm Bug 1561435 - Format services/, a=automatic-formatting 2019-07-05 10:58:22 +02:00
FxAccountsPairingChannel.js Bug 1490671 - Add FxA device pairing. r=markh,rfkelly,vladikoff,flod 2019-02-21 20:58:04 +00:00
FxAccountsProfile.jsm Bug 1574048 - Remove FxAccounts internal/external/Object.freeze()/ weirdness. r=lina,rfkelly 2019-09-12 02:08:50 +00:00
FxAccountsProfileClient.jsm Bug 1574048 - Remove FxAccounts internal/external/Object.freeze()/ weirdness. r=lina,rfkelly 2019-09-12 02:08:50 +00:00
FxAccountsPush.jsm Bug 1574048 - Remove FxAccounts internal/external/Object.freeze()/ weirdness. r=lina,rfkelly 2019-09-12 02:08:50 +00:00
FxAccountsStorage.jsm Bug 1561435 - Format services/, a=automatic-formatting 2019-07-05 10:58:22 +02:00
FxAccountsWebChannel.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
moz.build Bug 1574048 - Remove FxAccounts internal/external/Object.freeze()/ weirdness. r=lina,rfkelly 2019-09-12 02:08:50 +00:00