Commit Graph
170 Commits
Author SHA1 Message Date
Robin Steuber 242378f501 Bug 1632015 - Track items sync has failed to upload and retry only once r=markh,skhamis,sync-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D280106
2026-02-04 19:11:11 +00:00
Robin Steuber 246c32c2b7 Bug 1632015 - Pre: Rename SyncEngine.previousFailed to SyncEngine.previousFailedIn r=markh,skhamis,sync-reviewers
Also renames `SyncEngine._previousFailedStorage` to `SyncEngine._previousFailedInStorage`. This will make it less confusing in the next patch in this stack when I add `SyncEngine.previousFailedOut` and `SyncEngine._previousFailedOutStorage`.

Differential Revision: https://phabricator.services.mozilla.com/D281519
2026-02-04 19:11:08 +00:00
Geoff Lankow 582544e121 Bug 1888019 - Use a different client ID, scope and keys for Sync in Thunderbird. r=teshaq,sync-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D205783
2024-06-19 02:39:37 +00:00
Dave Townsend a412026389 Bug 1864896: Autofix unused function arguments (services). r=markh,sync-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D202986
2024-03-02 15:26:03 +00:00
Tarik Eshaq 4f9abe8d37 Bug 1869641: Adds oauth handling for fxa behind pref. r=skhamis,markh,sync-reviewers
- Adds new pref disabled by default that enables the oauth flow
- When the pref is enabled, the URLs returned by FxA are oauth urls
- Adds listening to oauth login web channel message from FxA

Differential Revision: https://phabricator.services.mozilla.com/D196314
2024-01-18 18:23:28 +00:00
Norisz Fay 6fb8359a26 Backed out changeset 686fad3c7efc (bug 1869641) for causing bc failures on browser_UITour_sync.js CLOSED TREE 2024-01-18 01:48:05 +02:00
Tarik Eshaq 4ae749c5cb Bug 1869641: Adds oauth handling for fxa behind pref. r=skhamis
- Adds new pref disabled by default that enables the oauth flow
- When the pref is enabled, the URLs returned by FxA are oauth urls
- Adds listening to oauth login web channel message from FxA

Differential Revision: https://phabricator.services.mozilla.com/D196314
2024-01-17 16:38:02 +00:00
Mark Banner 5797c921a8 Bug 1845252 - Update consumers of FxAccountsCommon to import the ES module directly. r=markh,settings-reviewers,credential-management-reviewers,sync-reviewers,sgalich,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D184780
2023-07-31 13:05:44 +00:00
Stanca Serban f597936605 Backed out 2 changesets (bug 1845252) for causing mochitests failures in browser_fxa_web_channel.js. CLOSED TREE
Backed out changeset d58bbd55cb35 (bug 1845252)
Backed out changeset 683a87892126 (bug 1845252)
2023-07-28 21:29:30 +03:00
Mark Banner cb680469ad Bug 1845252 - Update consumers of FxAccountsCommon to import the ES module directly. r=markh,settings-reviewers,credential-management-reviewers,sync-reviewers,sgalich,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D184780
2023-07-28 17:30:39 +00:00
Tarik Eshaq 7ee6b5857f Bug 1638359: Removes kSync and kXCS from local storage. r=markh,sync-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D181789
2023-07-05 20:18:40 +00:00
Noemi Erli 6473101e73 Backed out changeset 3d70f2411ec6 (bug 1638359) for causing failures in test_ext_storage_sync_kinto.js CLOSED TREE 2023-07-05 01:06:24 +03:00
Tarik Eshaq b77674aba4 Bug 1638359: Removes kSync and kXCS from local storage. r=markh,sync-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D181789
2023-07-04 21:10:16 +00:00
Tarik Eshaq ecbeb907bc Bug 1838708: Removes legacy webext storage keys from account state. r=markh,sync-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D181153
2023-06-19 20:29:02 +00:00
Mark Banner 0666077666 Bug 1826062 - Automatic fixes for upgrading Prettier to 2.8.8. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,calu
Differential Revision: https://phabricator.services.mozilla.com/D177027
2023-05-20 12:26:53 +00:00
Mark Banner 91fde42f7b Bug 1826062 - Automatic fixes for Prettier 2.0.5 upgrade. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,owlish
Differential Revision: https://phabricator.services.mozilla.com/D177025
2023-05-20 12:26:49 +00:00
Mark Banner 9468f48f4b Bug 1819019 - Update consumers of services/common to import ES modules directly. r=markh,webdriver-reviewers,extension-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D171055
2023-02-28 10:11:55 +00:00
Mark Banner 81e5d26ac3 Bug 1817183 - Update consumers of services/fxaccounts to import ES modules directly. r=markh,settings-reviewers,credential-management-reviewers,sgalich
Differential Revision: https://phabricator.services.mozilla.com/D170062
2023-02-17 16:34:43 +00:00
Mark Banner 5e0e63fced Bug 1817182 - Avoid re-exporting AccountState from sync's utils.sys.mjs. r=markh
Differential Revision: https://phabricator.services.mozilla.com/D170060
2023-02-17 16:34:42 +00:00
Cristian Tuns b9ee007450 Backed out 6 changesets (bug 1816934, bug 1817182, bug 1817179, bug 1817183) for causing dt failures in browser_jsterm_autocomplete_null.js CLOSED TREE
Backed out changeset 17d4c013ed92 (bug 1817183)
Backed out changeset cfed8d9c23f3 (bug 1817183)
Backed out changeset 62fe2f589efe (bug 1817182)
Backed out changeset 557bd773fb85 (bug 1817179)
Backed out changeset 7f8a7865868b (bug 1816934)
Backed out changeset d6c1d4c0d2a0 (bug 1816934)
2023-02-17 10:51:33 -05:00
Mark Banner c8baa7a866 Bug 1817183 - Update consumers of services/fxaccounts to import ES modules directly. r=markh,settings-reviewers,credential-management-reviewers,sgalich
Differential Revision: https://phabricator.services.mozilla.com/D170062
2023-02-17 09:01:45 +00:00
Mark Banner 3fb02dd2a3 Bug 1817182 - Avoid re-exporting AccountState from sync's utils.sys.mjs. r=markh
Differential Revision: https://phabricator.services.mozilla.com/D170060
2023-02-17 09:01:44 +00:00
Mark Banner 18898557b3 Bug 1814931 - Convert services/sync imports to direct ES imports. r=markh,settings-reviewers,credential-management-reviewers,mconley,dimi
Differential Revision: https://phabricator.services.mozilla.com/D168837
2023-02-13 11:44:29 +00:00
Mark Banner 1ad4b1b3ef Bug 1814931 - Convert services/sync modules to ES modules. r=markh
Differential Revision: https://phabricator.services.mozilla.com/D168836
2023-02-13 11:44:29 +00:00
Mark Banner 2001790cb2 Bug 1814679 - Remove unused variables and items in services/sync. r=markh
Differential Revision: https://phabricator.services.mozilla.com/D168698
2023-02-03 08:00:42 +00:00
Gijs Kruitbosch 22093ed702 Bug 1803800, r=markh
Differential Revision: https://phabricator.services.mozilla.com/D163931
2022-12-12 17:44:13 +00:00
Mark Banner e1a62a208d Bug 1799314 - Convert consumers of testing modules to import ES modules direct (services/). r=markh
Differential Revision: https://phabricator.services.mozilla.com/D161911
2022-11-17 12:00:29 +00:00
Mark Banner a49b8ef78f Bug 1792365 - Convert toolkit/modules consumers to use ES module imports directly. r=webdriver-reviewers,perftest-reviewers,geckoview-reviewers,extension-reviewers,preferences-reviewers,desktop-theme-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,robwu,Gijs,sgalich,bytesized,AlexandruIonescu,dao,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D158094
2022-09-29 06:52:34 +00:00
Tooru Fujisawa 48c568867c Bug 1667455 - Part 5: Stop importing Services.jsm from chrome-priv JS code, top-level single-line cases. r=kmag,webdriver-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,extension-reviewers,application-update-reviewers,pip-reviewers,twisniewski,m_kato,jdescottes,mconley,AlexandruIonescu,mossop
Differential Revision: https://phabricator.services.mozilla.com/D150894
2022-07-11 12:41:50 +00:00
Dana Keeler 85f142911f Bug 1768047 - stop using nsICryptoHMAC in services r=tjr
nsICryptoHMAC is redundant and does its computations on the main thread. JS
code using it should use WebCrypto instead.

Differential Revision: https://phabricator.services.mozilla.com/D145641
2022-05-12 22:24:29 +00:00
Mark Banner d22663f0f9 Bug 1758476 - Remove some unnecessary uses of the target object argument to ChromeUtils.import. r=mossop,webdriver-reviewers,perftest-reviewers,robwu,whimboo,AlexandruIonescu
Differential Revision: https://phabricator.services.mozilla.com/D140518
2022-03-17 22:13:08 +00:00
Cristian Tuns a180c6cba3 Backed out changeset 528295e7cb0c (bug 1758476) for causing tabswitch failures CLOSED TREE 2022-03-14 12:27:48 -04:00
Mark Banner beed912c8e Bug 1758476 - Remove some unnecessary uses of the target object argument to ChromeUtils.import. r=mossop,webdriver-reviewers,perftest-reviewers,robwu,whimboo,AlexandruIonescu
Differential Revision: https://phabricator.services.mozilla.com/D140518
2022-03-14 10:19:40 +00:00
Mark Banner f26d8088ba Bug 1745977 - Stop using the second argument to ChromeUtils.import in various files in services/. r=markh
Differential Revision: https://phabricator.services.mozilla.com/D133776
2021-12-15 10:05:35 +00:00
Ryan Kelly 6dc9f3e834 Bug 1665420 - Remove legacy BrowserID crypto code. r=markh
Differential Revision: https://phabricator.services.mozilla.com/D107985
2021-03-17 00:38:08 +00:00
Ryan Kelly 1b866dbd94 Bug 1661407 - refactor FxA key handling to use "scoped keys". r=markh
Differential Revision: https://phabricator.services.mozilla.com/D90361
2020-10-01 10:06:24 +00:00
Vlad Filippov 48f23a1161 Bug 1635937 - Enable 'identity.sync.useOAuthForSyncToken' pref for Nightly users r=rfkelly
Differential Revision: https://phabricator.services.mozilla.com/D75130
2020-05-19 21:32:50 +00:00
Lina Cambridge aae74ab2a9 Bug 1636365 - Split out persistence from Tracker into LegacyTracker. r=markh,rfkelly
The tracker base class currently does two things: bump the score in
response to observer notifications, and store a list of changed IDs.
The bookmarks, form autofill, and now bridged trackers need to hack
around this to opt out of persistence, since they handle change
tracking in the storage layer.

This commit keeps the score logic in `Tracker`, but moves all the
persistence code into an intermediate `LegacyTracker` class, and
changes all engines that need persistence to inherit from it.

`ignoreAll` is more interesting. We want new-style stores to emit
observer notifications with change sources, so that the tracker knows
to ignore changes made by Sync. Ignoring all observer notifications
during a sync is a blunter version of this. But, not every new store
supports change sources, so we reimplement `ignoreAll` manually for
ones that don't.

Differential Revision: https://phabricator.services.mozilla.com/D74374
2020-05-13 03:56:53 +00:00
Lina Cambridge 0971b45745 Bug 1634191 - Pass BSO fields along with Sync record payloads to bridged Rust engines. r=markh
This commit splits `CryptoWrapper` into a base `RawCryptoWrapper`
class, which only handles encryption and decryption without
parsing the cleartext's contents, and the existing `CryptoWrapper`
class, which works like before.

Our bridged engine subclasses `RawCryptoWrapper`, and
implements some methods to convert records to and from envelopes.
Envelopes are a concept we introduced in `sync15_traits` to pass
along metadata from the BSO wrapper (like the modified time from the
server, and ID, to ensure they match) in addition to the cleartext.
This lets us reuse `sync15_traits::Payload` to parse record payloads
in Rust, and avoids parsing the cleartext in JS, only to stringify it
again when we pass it to the bridged Rust engine.

Differential Revision: https://phabricator.services.mozilla.com/D73581
2020-05-04 22:25:00 +00:00
Vlad Filippov 1eb0962fd2 Bug 1631830 - Fetch Sync tokens with OAuth behind a pref r=rfkelly
Differential Revision: https://phabricator.services.mozilla.com/D72092
2020-04-28 04:20:55 +00:00
Sylvestre Ledru 8bc087dd2b Bug 1622328 - fxa_utils.js: Add the license r=markh
Differential Revision: https://phabricator.services.mozilla.com/D66831
2020-03-14 01:09:01 +00:00
Mark Hammond d338051ead Bug 1582317 - record the sync storage node type in the sync telemetry ping. r=tcsc
Differential Revision: https://phabricator.services.mozilla.com/D55196
2019-12-14 04:26:05 +00:00
Mark Hammond 88ddb76761 Bug 1598997 - Mock profile fetching function in xpcshell tests. r=eoger
Differential Revision: https://phabricator.services.mozilla.com/D54450
2019-11-25 21:21:46 +00:00
Mark Hammond 823e7c885c Bug 1574052 - only return public fields from fxAccounts.getSignedInUser(). r=rfkelly,eoger
Differential Revision: https://phabricator.services.mozilla.com/D49525
2019-10-22 00:57:27 +00:00
Mark Hammond a7b394d926 Bug 1582633 - allow an FxA user to be signed in without sync being enabled. r=eoger,lina
Differential Revision: https://phabricator.services.mozilla.com/D46572
2019-09-25 06:51:18 +00:00
Mark Hammond b2ca37023c Bug 1578217 - remove the sync 'yellow state' telemetry. r=tcsc
Differential Revision: https://phabricator.services.mozilla.com/D45765
2019-09-19 00:34:04 +00:00
Mark Hammond 9738bf8020 Bug 1574048 - Remove FxAccounts internal/external/Object.freeze()/ weirdness. r=lina,rfkelly
Differential Revision: https://phabricator.services.mozilla.com/D44083
2019-09-12 02:08:50 +00:00
Sylvestre Ledru 5695b74942 Bug 1576502 - Fix some wording issues r=mhoye
Differential Revision: https://phabricator.services.mozilla.com/D43363
2019-08-27 15:38:58 +00:00
Victor Porof 1290eed2fb Bug 1561435 - Format services/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35930
2019-07-05 10:58:22 +02:00
Kris Maglione 856fa07b17 Bug 1514594: Part 3 - Change ChromeUtils.import API.
***
Bug 1514594: Part 3a - Change ChromeUtils.import to return an exports object; not pollute global. r=mccr8

This changes the behavior of ChromeUtils.import() to return an exports object,
rather than a module global, in all cases except when `null` is passed as a
second argument, and changes the default behavior not to pollute the global
scope with the module's exports. Thus, the following code written for the old
model:

  ChromeUtils.import("resource://gre/modules/Services.jsm");

is approximately the same as the following, in the new model:

  var {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");

Since the two behaviors are mutually incompatible, this patch will land with a
scripted rewrite to update all existing callers to use the new model rather
than the old.
***
Bug 1514594: Part 3b - Mass rewrite all JS code to use the new ChromeUtils.import API. rs=Gijs

This was done using the followng script:

https://bitbucket.org/kmaglione/m-c-rewrites/src/tip/processors/cu-import-exports.jsm
***
Bug 1514594: Part 3c - Update ESLint plugin for ChromeUtils.import API changes. r=Standard8

Differential Revision: https://phabricator.services.mozilla.com/D16747
***
Bug 1514594: Part 3d - Remove/fix hundreds of duplicate imports from sync tests. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16748
***
Bug 1514594: Part 3e - Remove no-op ChromeUtils.import() calls. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16749
***
Bug 1514594: Part 3f.1 - Cleanup various test corner cases after mass rewrite. r=Gijs
***
Bug 1514594: Part 3f.2 - Cleanup various non-test corner cases after mass rewrite. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16750
2019-01-17 10:18:31 -08:00