Граф коммитов

4120 Коммитов

Автор SHA1 Сообщение Дата
Timothy Guan-tin Chien f47a796bf6 Bug 1486954 - Part I, (Nighty-only feature) Encrypt credit card numbers with OS key store r=MattN
This patch morphs MasterPassword.jsm to OSKeyStore.jsm while keeping the same
API, as an adaptor between the API and the native API exposed as nsIOSKeyStore.idl.

Noted that OS Key Store has the concept of "recovery phrase" that we won't
be adopting here. The recovery phrase, together with our label, allow
the user to re-create the same key in OS key store.

Test case changes are needed because we have started asking for login in
places where we'll only do previously when "master password is enabled".
This also made some "when master password is enabled" tests invalid because
it is always considered enabled.

Some more test changes are needed simply because they previously rely on the
stable order of microtask resolutions (and the stable # of promises for a
specific operation). That has certainly changed with OSKeyStore.

The credit card form autofill is only enabled on Nightly.

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

--HG--
rename : browser/extensions/formautofill/MasterPassword.jsm => browser/extensions/formautofill/OSKeyStore.jsm
rename : browser/extensions/formautofill/test/browser/browser_creditCard_fill_master_password.js => browser/extensions/formautofill/test/browser/browser_creditCard_fill_cancel_login.js
extra : moz-landing-system : lando
2018-10-17 02:31:04 +00:00
Mark Hammond c8597f4ec4 Bug 1488899 - Get TPS working. r=tcsc
This patch disables a couple of tests, removes old async support from TPS,
and puts more effort into preventing Syncs while TPS is running, and
removed an unused import.

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

--HG--
extra : moz-landing-system : lando
2018-10-15 22:42:22 +00:00
Edouard Oger 8ca8070181 Bug 1496637 - Fetch missed FxA commands sporadically on sync r=markh
Differential Revision: https://phabricator.services.mozilla.com/D7911

--HG--
extra : moz-landing-system : lando
2018-10-11 20:08:33 +00:00
Lina Cambridge 0e827e6c4f Bug 1477671 - Replace synced livemarks with tombstones, r=mak,markh
This commit replaces incoming synced livemarks with tombstones, and
reuploads the tombstone and updated parent to the server. Existing
livemarks are left untouched to minimize data loss; we'll either
delete them during migration, or when another client runs a full sync.

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

--HG--
extra : rebase_source : db78efc696cce13cf596d2ab0906f049a2cbe12f
2018-10-06 10:36:15 +01:00
Doug Thayer 0fd7f560d6 Bug 1426245 - Test changes r=mak
MozReview-Commit-ID: 4fhhzspxLJZ

Depends on D4606

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

--HG--
extra : moz-landing-system : lando
2018-10-09 14:47:31 +00:00
Doug Thayer 218843ef6a Bug 1426245 - Replace OnItemAdded with bookmark-item-added r=mak
See https://docs.google.com/document/d/1G45vfd6RXFXwNz7i4FV40lDCU0ao-JX_bZdgJV4tLjk/edit#
for further info. This essentially follows the same philosophy as
the onVisits migration.

MozReview-Commit-ID: I4bOvFH0ZQR

Depends on D4605

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

--HG--
extra : moz-landing-system : lando
2018-10-09 14:47:27 +00:00
Siddhant085 190657496a Bug 1479445 - Return a new PageInfo object from _recordToPageInfo so that validateItemProperties can validate the object. r=lina
D5831 refactors validatePageInfo to use validateItemProperties. The record generated by _recordToPlaceInfo makes use of getters. validateItemProperties does a shallow copy of the properties and the visits properties is being left out because of the use of getters. Therefore as discussed we are returning a new object from _recordToPlaceInfo.

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

--HG--
extra : moz-landing-system : lando
2018-10-06 19:07:12 +00:00
Luca Greco e368443b29 Bug 1486763 - Add installTelemetryInfo to addon installed from Firefox Sync. r=markh
Differential Revision: https://phabricator.services.mozilla.com/D5552

--HG--
extra : moz-landing-system : lando
2018-10-03 06:58:23 +00:00
Lina Cambridge a21adc384b Bug 1495723 - Add support for importing extra symbols to `defineLazyGlobalGetters`. r=kmag
Some global imports, like `fetch`, expose multiple symbols. This patch
ensures we can define lazy getters for those symbols, by mapping the
extra symbol name to the main import name.

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

--HG--
extra : moz-landing-system : lando
2018-10-02 20:10:04 +00:00
Mark Hammond bad7c8cb03 Bug 1484158 - prevent the sync merge warning from appearing after a sanitize. r=eoger
MozReview-Commit-ID: 1nasSaTkaYF

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

--HG--
extra : moz-landing-system : lando
2018-09-18 13:50:29 +00:00
Lina Cambridge 0f9afb27a5 Bug 1492010 - Ensure Sync engines with overridden telemetry names correctly report their validation results. r=tcsc
Differential Revision: https://phabricator.services.mozilla.com/D6097

--HG--
extra : moz-landing-system : lando
2018-09-18 08:04:57 +00:00
Timothy Guan-tin Chien 4b8e9c3d4a Bug 1399367 - Remove MasterPassword.{encrypt|decrypt}Sync() methods r=MattN
This also makes various AutofillRecords methods async, with the exception of
remove() and removeAll().

Noted that I didn't implement any kind of "lock" for FormAutofillStorage --
please do not call these methods concurrently -- if you must please |await|
for the last call to resolve. This most likely would happen in tests, and
shouldn't happen in the real world, given that all user actions happen on
macrotasks, and probably not at the next tick, unless Quicksilver is a
Firefox user.

FormAutofillStorage can be improved if there are complex use cases for it.

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

--HG--
extra : moz-landing-system : lando
2018-09-05 17:54:48 +00:00
Csoregi Natalia 0ee540d6b5 Backed out changeset 56aa054d4cc0 (bug 1399367) for browser/extensions/formautofill/test/unit/test_activeStatus.js failures. CLOSED TREE 2018-09-05 05:47:21 +03:00
Timothy Guan-tin Chien a3d7d3c3d1 Bug 1399367 - Remove MasterPassword.{encrypt|decrypt}Sync() methods r=MattN
This also makes various AutofillRecords methods async, with the exception of
remove() and removeAll().

Noted that I didn't implement any kind of "lock" for FormAutofillStorage --
please do not call these methods concurrently -- if you must please |await|
for the last call to resolve. This most likely would happen in tests, and
shouldn't happen in the real world, given that all user actions happen on
macrotasks, and probably not at the next tick, unless Quicksilver is a
Firefox user.

FormAutofillStorage can be improved if there are complex use cases for it.

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

--HG--
extra : moz-landing-system : lando
2018-09-05 00:32:57 +00:00
Bogdan Tara 8b38c1ae85 Merge autoland to mozilla-central. a=merge 2018-09-05 01:53:44 +03:00
ffxbld ebe4d2e4d6 Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2018-09-04 11:15:27 -07:00
Thom Chiovoloni 793280d394 Bug 1451527 - Move sync's TPS tests into a webextension r=markh
Differential Revision: https://phabricator.services.mozilla.com/D4486

--HG--
extra : moz-landing-system : lando
2018-09-04 17:38:16 +00:00
Bogdan Tara dd95156739 Backed out changeset b886f2cf9d89 (bug 1451527) for eslint failure on extensions/tps/api.js:34 CLOSED TREE 2018-09-04 20:16:21 +03:00
Coroiu Cristina 83cdfe7284 Merge mozilla-central to inbound a=merge on a CLOSED TREE 2018-08-31 19:35:06 +03:00
Mark Banner 691543ee89 Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop
Automatic changes by ESLint, except for manual corrections for .xml files.

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

--HG--
extra : moz-landing-system : lando
2018-08-31 05:59:17 +00:00
Dave Townsend e1f6637191 Bug 1487246: Remove uses of comma sequences in linted code. r=Standard8
Two cases were hiding permanently failing tests. I've commented those out and
filed bug 1487431.

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

--HG--
extra : rebase_source : 232fa6173de8844a9c47d59926ec8e39d0640ecd
2018-08-29 16:12:55 -07:00
Thom Chiovoloni f4e5219ee3 Bug 1451527 - Move sync's TPS tests into a webextension r=markh
Differential Revision: https://phabricator.services.mozilla.com/D4486

--HG--
extra : moz-landing-system : lando
2018-09-04 16:40:22 +00:00
Margareta Eliza Balazs 2fe43133db Merge inbound to mozilla-central. a=merge 2018-08-29 12:43:37 +03:00
Mark Hammond 804a02dafb Bug 1483017 - ensure Sync is initialized before disconnecting. r=tcsc
MozReview-Commit-ID: 8987f26wH16

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

--HG--
extra : moz-landing-system : lando
2018-08-29 01:29:19 +00:00
Kris Maglione 53f96aa226 Bug 1486182: Part 2a - Add Services.catMan getter for the category manager. r=mossop
This makes it much easier to update existing consumers of
XPCOMUtils.enumerateCategoryEntries to use the category manager directly.

It also, unfortunately, requires updating existing category manager consumers
to use the Services getter in order to avoid ESLint errors.

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

--HG--
extra : rebase_source : fb9fd9b21db80af472ff6250a2e9a35e8d538147
2018-08-24 22:13:57 -07:00
Kris Maglione 3a5c05e76f Bug 1484496: Part 5e - Convert remaining nsISimpleEnumerator users to use JS iteration. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D3733

--HG--
extra : rebase_source : c0fac176d7b3d840c4dbb14f8d95ccfc7f83a5a8
extra : histedit_source : a92c40117d0808a3ad68c972f622a7a42c9ae8ba
2018-08-18 18:13:14 -07:00
Mark Hammond dd210449cd Bug 1484085 - don't log failure to obtain clients engine. r=tcsc
MozReview-Commit-ID: Aj31c1OZnFf

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

--HG--
extra : moz-landing-system : lando
2018-08-23 02:00:27 +00:00
Kris Maglione f99ee35b82 Bug 1480244: Part 5 - Run most framescripts in shared scope. r=mconley
Creating non-shared scopes for frame scripts is fairly expensive. After these
changes it's even more expensive. However, many frame scripts have no use for
the shared scopes at all. Run-once scripts which execute in closures, for
instance, make no use of them. And after bug 1472491, neither do most of our
default frame scripts.

MozReview-Commit-ID: 9PK7bYdQ0yh

--HG--
extra : rebase_source : db2516d2f00a75e233e1957649f2b62a9299b7cd
2018-08-10 13:58:18 -07:00
Edouard Oger 56fcd689fc Bug 1483020 - Re-upload our own client record if our FxA device ID changed r=markh
Differential Revision: https://phabricator.services.mozilla.com/D3265

--HG--
extra : moz-landing-system : lando
2018-08-14 00:57:27 +00:00
irrationalagent c9df37f8cd Bug 1476393 - Allow sync ping to contain histograms r=markh,tcsc
MozReview-Commit-ID: KztXiSPUCE5

--HG--
extra : rebase_source : 0bd0236f907721fdc847e56950b84cb0c3407624
2018-08-03 09:16:08 -06:00
Mark Hammond e1ec4db2c6 Bug 1467904 - allow addons to be installed if the addon manager's addon cache is outdated. r=lina
MozReview-Commit-ID: Gp1bnQSLaLA

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

--HG--
extra : moz-landing-system : lando
2018-08-13 18:05:53 +00:00
Tiberius Oros aff5d4ad5d Merge inbound to mozilla-central. a=merge 2018-08-09 13:02:05 +03:00
Mark Hammond 7d1bdec522 Bug 1479511 - modernize how TPS shuts down Firefox. r=tcsc
MozReview-Commit-ID: EzhGbhPCiOV

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

--HG--
extra : moz-landing-system : lando
2018-08-08 20:59:30 +00:00
Mark Hammond 4c3177f5b4 Bug 1478558 - Remove usage of http://mozqa.com/ in services/sync/tests/tps/test_tabs.js r=whimboo,tcsc
MozReview-Commit-ID: Gd8qmfBWf8u

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

--HG--
extra : moz-landing-system : lando
2018-08-08 20:59:24 +00:00
Devika Sugathan 295453950a Bug 1375220 Ensure all if-else statements have curly braces r=eoger
--HG--
extra : rebase_source : f653aeffad899f3ea920f29ff9f37e82bf1de85d
2018-08-06 19:12:31 +05:30
Mark Hammond 28a02d4cb1 Bug 1480002 - Ensure the UI immediately reacts to notifications of a password change. r=eoger
MozReview-Commit-ID: JI5bQ4UoWs3

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

--HG--
extra : moz-landing-system : lando
2018-08-02 15:37:56 +00:00
Mark Hammond 91d6bbfba6 Bug 1479998 - use PlacesUtils to get a tab's favicon rather than SessionStore. r=tcsc
MozReview-Commit-ID: DdYbW5r9JfF

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

--HG--
extra : moz-landing-system : lando
2018-08-01 16:41:26 +00:00
Mark Banner e72c3371d9 Bug 1479722 - Remove nsIAnnotationService::setPageAnnotation and removePageAnnotation. r=mak
Depends on D2582

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

--HG--
extra : moz-landing-system : lando
2018-08-01 09:47:24 +00:00
Marco Bonardo 23cf556fe1 Bug 1477996 - Move getURIsForTag to the bookmarking API. r=Standard8,lina
The tagging API is being merged into the bookmarking API. This is part of it.

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

--HG--
extra : moz-landing-system : lando
2018-07-27 15:16:57 +00:00
Mark Banner 96b3386f5b Bug 1478308 - Remove unnecessary ChromeUtils.imports in services/ r=lina
MozReview-Commit-ID: 1oprv2tG0HG

--HG--
extra : rebase_source : 85c9b07892778dfec5ab4ccc70cc4fb7119ee4f3
2018-07-25 09:13:11 +01:00
Narcis Beleuzu d47c829065 Backed out 4 changesets (bug 1478308) for ESlint failure on AttributionCode.jsm. CLOSED TREE
Backed out changeset a809b45ff49b (bug 1478308)
Backed out changeset c68131530742 (bug 1478308)
Backed out changeset 0e4ba7a6dc1a (bug 1478308)
Backed out changeset 32a27f317a77 (bug 1478308)
2018-07-26 11:13:28 +03:00
Mark Banner fba7b63903 Bug 1478308 - Remove unnecessary ChromeUtils.imports in services/ r=lina
MozReview-Commit-ID: 1oprv2tG0HG

--HG--
extra : rebase_source : 89471677bab059efe9d9cb8a48b2cd557bd41e33
2018-07-25 09:13:11 +01:00
Mark Hammond 591860e3dd Bug 1478547 - exceptions processing sync logins now bubble up for better handling and recovery. r=tcsc
MozReview-Commit-ID: 3y8ryBxueFS

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

--HG--
extra : moz-landing-system : lando
2018-07-26 05:38:03 +00:00
Bogdan Tara 8cd47f8f14 Backed out 2 changesets (bug 1476393) for toolkit/components/passwordmgr/ failures CLOSED TREE
Backed out changeset b22dd03454ff (bug 1476393)
Backed out changeset cb876d3e8a69 (bug 1476393)
2018-07-25 06:39:58 +03:00
irrationalagent 838fba45cb Bug 1476393 - Document histograms in sync ping and add pwmgr prompt histograms r=tcsc
MozReview-Commit-ID: 3Xqnp9g4pT9

--HG--
extra : rebase_source : bcc4a68a84460745c147cb00a75ab00c699cd7f9
2018-06-26 18:39:15 +01:00
irrationalagent ada2400811 Bug 1476393 - Allow Histograms to Be Sent In Sync Ping r=tcsc
MozReview-Commit-ID: HhtcE5PF2sC

--HG--
extra : rebase_source : f8e82290d4b8d37b8692452138fcb33380046d53
2018-06-19 13:48:47 +02:00
Mihir 6d945ada5b Bug 1474365 Prevent submitting sync telemetry for self hosting users. r=markh 2018-07-13 21:01:38 +05:30
Lina Cambridge 699fdba348 Bug 1472963 - Add a `totalSyncChanges` counter and use it in the bookmarks mirror. r=mak
This patch:

* Exposes a global Sync change counter on `nsINavBookmarksService`.
  This is similar to SQLite's `total_changes()`, but just for changes
  to bookmarks that affect Sync, and accounts for changes from multiple
  threads and connections.
* Adds a SQL function to bump the counter, and extends the
  `moz_bookmarks` triggers to call it.
* Moves merging outside the transaction in the bookmarks mirror, and
  checks that the counters match before applying.

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

--HG--
extra : moz-landing-system : lando
2018-07-13 15:03:40 +00:00
Marco Bonardo d932936d53 Bug 1475276 - Remove some no more necessary usage of promiseItemGuid. r=lina
Some code is unnecessarily using promiseItemGuid

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

--HG--
extra : moz-landing-system : lando
2018-07-12 21:38:21 +00:00
Lina Cambridge 48335a1fdc Bug 1474033 - Ensure `PlacesUtils.bookmarks.moveToFolder` bumps the Sync change counter for items moved between different parents. r=Standard8
This patch unifies `updateBookmark` and `moveBookmark`.
`update` already handles the Sync change counter, and `move` specially
optimizes for moves. We can consolidate the two by reusing the queries
from `move` in `update`, moving its extra `setAncestorsLastModified`
call to `PlacesUtils.bookmarks.update`, and removing its transaction
and wrapper.

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

--HG--
extra : moz-landing-system : lando
2018-07-09 14:12:41 +00:00