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

4841 Коммитов

Автор SHA1 Сообщение Дата
Edouard Oger 8a3dc70885 Bug 1416321 - Do a sync after we successfully connect to a captive portal. r=markh
MozReview-Commit-ID: HuXyJ8IrNwA

--HG--
extra : rebase_source : b1171a1235011d5393dcd90a950b55320302c254
2017-11-10 14:55:19 -05:00
Thom Chiovoloni 93a711ae04 Bug 1416374 - Handle getting an abortincoming error in sync telemetry r=markh
MozReview-Commit-ID: LFmbkGa4ypu

--HG--
extra : rebase_source : 93e7e9fcfbdf141c86cede055b58d82985fea370
2017-11-10 18:02:58 -05:00
Ryan VanderMeulen 177a5a8bdc Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release
--HG--
extra : histedit_source : 46923056fd09298724464a4df4466357821a361f
2017-11-12 21:22:25 -05:00
Kit Cambridge 31aa407113 Bug 1383623 - Remove synchronous Places API usage from the Sync unit tests. r=tcsc
MozReview-Commit-ID: Cip7LSSi2fE

--HG--
extra : rebase_source : deaff010d15d7ae9812d1d38f3b39c1100c62cf3
2017-11-09 15:46:27 -08:00
Ryan VanderMeulen b16410f51c Merge inbound to m-c. a=merge 2017-11-10 16:13:15 -05:00
Geoff Brown cbb956e0c3 Bug 1407679 - Merge nsIIOService and nsIIOService2; r=nwgh 2017-11-10 07:03:36 -07:00
Sebastian Hengst 96b3be2c0d Bug 1415957 - Remove MozMill from TPS: Fix merge conflict. r=conflict-fix a=conflict-fix on a CLOSED TREE
--HG--
extra : amend_source : fd6fe1681aa192ed44675bd52cd46e954ffad9b8
2017-11-10 13:45:48 +02:00
Margareta Eliza Balazs 7e070192d7 Merge inbound to mozilla-central r=merge a=merge 2017-11-10 11:55:43 +02:00
Nicholas Nethercote f4dd5e2636 Bug 1414096 (attempt 2) - Remove support for nsISupportsString values in nsPrefBranch::{get,set}ComplexValue(). r=florian.
Bug 1345294 introduced nsPrefBranch::{get,set}StringPref(), which allowed the
getting of utf8 strings from prefs, which previously required using
nsISupportsString with {get,set}ComplexValue. That bug also converted most
uses.

This patch finishes the job.

- It removes the nsISupportsString support.

- It converts existing code that relied on the nsISupportsString.

- It removes the lint that was set up to detect such uses of nsISupportsString.

--HG--
extra : rebase_source : b885ee784704819e181430200af5ef762e269d14
2017-11-10 09:07:48 +11:00
Andrea Marchesini 207b8d909e Bug 1347515 - Get rid of nsIJSON.decodeFromStream, r=qdot 2017-11-10 00:27:22 +01:00
Edouard Oger 1873a289f7 Bug 1415957 - Remove MozMill from TPS. r=tcsc
MozReview-Commit-ID: HyBXrNqhzIf

--HG--
extra : rebase_source : da197fa045f70621d5549e961876cfc6ce15264b
2017-11-09 15:34:06 -05:00
Mark Banner 315a813f56 Bug 1415343 - Remove useless check for target window from FxAccountsWebChannel.jsm. r=markh
MozReview-Commit-ID: 4rFCNbMSF0a

--HG--
extra : rebase_source : 5d9ff600453d47afb4791a43bc6b043677c70cdb
2017-11-09 08:10:37 +00:00
Mark Banner c9b01d9a02 Bug 1415345 - Fix undefined variable in error message in FxAccountsStorageManager#getAccountData. r=markh
MozReview-Commit-ID: 4mCdPfKX5lz

--HG--
extra : rebase_source : 898771109c879f950d607273bc469734a9a0f99d
2017-11-07 23:00:26 +00:00
tfe be730a069d Bug 1414438 - Use `getBatched` instead of `get` to backfill records r=kitcambridge
MozReview-Commit-ID: LLTg0ae5BbW
***
Bug 1414438 - Use `getBatched` instead of `get` in sync

--HG--
extra : rebase_source : b9b057160470ec5bc5544a1a4d5d429bee460452
2017-11-08 09:05:11 +01:00
Sebastian Hengst 21b6b18b0b merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE 2017-11-10 13:47:59 +02:00
Kit Cambridge d93840902b Bug 1382937 - Rewrite Sync's master password functions to use the `nsILoginManagerCrypto` wrappers. r=MattN
Using `nsISecretDecoderRing` directly bypasses
`nsILoginManagerCrypto.uiBusy` and the observer notifications, so other
consumers might not be aware we're already showing the dialog. We also
bail early if the UI is busy, to avoid showing multiple dialogs.

MozReview-Commit-ID: I7xzUWZkyPH

--HG--
extra : rebase_source : 91cef140cc54d1c81fe5c1986ffd2b8983ddd575
2017-10-23 10:40:56 -07:00
Thom Chiovoloni edeaf1bc14 Bug 1415012 - Don't trigger a resync if the previous sync wasn't completely successful r=kitcambridge
MozReview-Commit-ID: DcNsFUxXR1O

--HG--
extra : rebase_source : 2632aa8d6db8e9e101e949c237b559015444f808
2017-11-06 20:56:57 -05:00
Sebastian Hengst af670f4147 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-11-07 02:47:30 +02:00
Manish Kumar 53383c5b3f Bug 1408108 - Rename "Sync ID" to "record ID" in the bookmarks engine and `PlacesSyncUtils`. r=kitcambridge
--HG--
extra : rebase_source : da3acfc4f7393a615c44f238c624bb826ff5b766
2017-11-06 12:17:07 -08:00
Thom Chiovoloni 935734388d Bug 1412351 - Make sync behave better during shutdown r=kitcambridge
MozReview-Commit-ID: 4zWNph8Zdld

--HG--
extra : rebase_source : 12e9f82222a4bcfe2161ad02669619b57f0442fe
2017-10-27 13:37:49 -04:00
Sebastian Hengst d61954557d merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: Ai6Y5GGfkfT
2017-11-04 10:58:24 +01:00
Nicholas Nethercote b9c6a1d730 Bug 1413413 (part 2) - Remove support for extensions having their own prefs file. r=glandium,kmag.
It's no longer needed, now that legacy extensions aren't supported.

Pieces removed include the following.

- The "load-extension-default" observer notification.

- The code for reading defaults/preferences/*.js from extensions.

- The unit test for this stuff.

- A crash reporter annotation relating to very long prefs set by add-ons.

- All references to "ExtPrefDL".

MozReview-Commit-ID: KMBoYn3uZ3x

--HG--
extra : rebase_source : 4dc8ffd425c6cdf06806409090c4f9d04a64930b
2017-10-31 16:34:57 +11:00
Luciano I e4007fdbe7 Bug 1375223 - Remove Async.querySpinningly. r=kitcambridge
MozReview-Commit-ID: bMo1jyIY5g

--HG--
extra : rebase_source : ac69fde2cb8216300bdb9e7d19528c15cdceb7c8
2017-10-31 18:50:31 -04:00
Kit Cambridge 604673b3d3 Bug 1366067 - Use `JSONFile.jsm` to persist the backlog and previously failed IDs. r=tcsc
MozReview-Commit-ID: DAwMrtWI8eh

--HG--
extra : rebase_source : f6713745b09de2e6b0993539cce9ed4e8226dbbf
2017-11-01 11:10:47 -07:00
Thom Chiovoloni 4a77d5a93f Bug 1388224 - Remove SyncStorageRequest HTTP wrapper class, which is no longer used r=kitcambridge
MozReview-Commit-ID: EgExfizNll5

--HG--
extra : rebase_source : 85a6098a5b985990bd3a8483936bf6cf768f1f0b
2017-11-01 17:17:46 -04:00
Kit Cambridge 064ed56076 Bug 1368209 - Refactor `Engine::_processIncoming` into three stages. r=eoger,tcsc
* In the first stage, we fetch changed records, newest first, up to the
  download limit. We keep track of the oldest record modified time we
  see.
* Once we've fetched all records, we reconcile, noting records that
  fail to decrypt or reconcile for the next sync. We then ask the store
  to apply all remaining records. Previously, `applyIncomingBatchSize`
  specified how many records to apply at a time. I removed this because
  it added an extra layer of indirection that's no longer necessary,
  now that download batching buffers all records in memory, and all
  stores are async.
* In the second stage, we fetch IDs for all remaining records changed
  between the last sync and the oldest modified time we saw in the
  first stage. We *don't* set the download limit here, to ensure we
  add *all* changed records to our backlog, and we use the `"oldest"`
  sort order instead of `"index"`.
* In the third stage, we backfill as before. We don't want large deltas
  to delay other engines from syncing, so we still only take IDs up to
  the download limit from the backlog, and include failed IDs from the
  previous sync. On subsequent syncs, we'll keep fetching from the
  backlog until it's empty.

Other changes to note in this patch:

* `Collection::_rebuildURL` now allows callers to specify both `older`
  and `newer`. According to :rfkelly, this is explicitly and
  intentionally supported.
* Tests that exercise `applyIncomingBatchSize` are gone, since that's
  no longer a thing.
* The test server now shuffles records if the sort order is
  unspecified.

MozReview-Commit-ID: 4EXvNOa8mIo

--HG--
extra : rebase_source : f382f0a883c5aa1f6a4466fefe22ad1a88ab6d20
2017-11-01 11:09:57 -07:00
Kit Cambridge 96593594d3 Bug 1368209 - Add a test for fetching backlogged history records. r=tcsc
The test captures the existing logic in `_processIncoming`, even though
it's not quite correct:

* First, we fetch all records changed since the last sync, up to the
  download limit, and without an explicit sort order. This happens to
  work correctly now because the Python server uses "newest" by
  default, but can change in the future.
* If we reached the download limit fetching records, we request
  IDs for all records changed since the last sync, also up to the
  download limit, and sorted by index. This is likely to return IDs
  for records we've already seen, since the index is based on the
  frecency. It's also likely to miss IDs for other changed records,
  because the number of changed records might be higher than the
  download limit.
* Since we then fast-forward the last sync time, we'll never download
  any remaining changed records that we didn't add to our backlog.
* Finally, we backfill previously failed and backlogged records.

MozReview-Commit-ID: 7uQLXMseMIU

--HG--
extra : rebase_source : 719ee2d9e46102195251b410f093da3247095c22
2017-10-27 17:54:48 -07:00
Kit Cambridge 432850c0aa Bug 1368209 - Add support for `sortindex` and `older` to the mock Sync server. r=tcsc
MozReview-Commit-ID: 6YI1OEE8x7R

--HG--
extra : rebase_source : 2f0da0cd2a1554685fff5af3de100e4b01564447
2017-10-27 17:55:30 -07:00
Edouard Oger 3e7662202d Bug 1413685 - Unify AsyncResource and Resource. r=tcsc
MozReview-Commit-ID: 1yEeAwpbGxJ

--HG--
extra : rebase_source : 8c87b0d16138acf2b55be70767fe0547f4ac1d42
2017-11-02 14:30:59 -04:00
NARCIS BELEUZU 1b5408583f Backed out 3 changesets (bug 1368209)xpcshell failures services/sync/tests/unit/test_syncengine_sync.js on CLOSED TREE
Backed out changeset 1b868efa368f (bug 1368209)
Backed out changeset b88c681ccdc1 (bug 1368209)
Backed out changeset 4b8e56844ae9 (bug 1368209)
2017-11-03 11:40:06 +02:00
Kit Cambridge 4105f1cb3a Bug 1368209 - Refactor `Engine::_processIncoming` into three stages. r=eoger,tcsc
* In the first stage, we fetch changed records, newest first, up to the
  download limit. We keep track of the oldest record modified time we
  see.
* Once we've fetched all records, we reconcile, noting records that
  fail to decrypt or reconcile for the next sync. We then ask the store
  to apply all remaining records. Previously, `applyIncomingBatchSize`
  specified how many records to apply at a time. I removed this because
  it added an extra layer of indirection that's no longer necessary,
  now that download batching buffers all records in memory, and all
  stores are async.
* In the second stage, we fetch IDs for all remaining records changed
  between the last sync and the oldest modified time we saw in the
  first stage. We *don't* set the download limit here, to ensure we
  add *all* changed records to our backlog, and we use the `"oldest"`
  sort order instead of `"index"`.
* In the third stage, we backfill as before. We don't want large deltas
  to delay other engines from syncing, so we still only take IDs up to
  the download limit from the backlog, and include failed IDs from the
  previous sync. On subsequent syncs, we'll keep fetching from the
  backlog until it's empty.

Other changes to note in this patch:

* `Collection::_rebuildURL` now allows callers to specify both `older`
  and `newer`. According to :rfkelly, this is explicitly and
  intentionally supported.
* Tests that exercise `applyIncomingBatchSize` are gone, since that's
  no longer a thing.
* The test server now shuffles records if the sort order is
  unspecified.

MozReview-Commit-ID: 4EXvNOa8mIo

--HG--
extra : rebase_source : 13605dd3a43569a6d83dc2eb15a578a7bbd5c1ca
2017-11-01 11:09:57 -07:00
Kit Cambridge 481bdb6dd6 Bug 1368209 - Add a test for fetching backlogged history records. r=tcsc
The test captures the existing logic in `_processIncoming`, even though
it's not quite correct:

* First, we fetch all records changed since the last sync, up to the
  download limit, and without an explicit sort order. This happens to
  work correctly now because the Python server uses "newest" by
  default, but can change in the future.
* If we reached the download limit fetching records, we request
  IDs for all records changed since the last sync, also up to the
  download limit, and sorted by index. This is likely to return IDs
  for records we've already seen, since the index is based on the
  frecency. It's also likely to miss IDs for other changed records,
  because the number of changed records might be higher than the
  download limit.
* Since we then fast-forward the last sync time, we'll never download
  any remaining changed records that we didn't add to our backlog.
* Finally, we backfill previously failed and backlogged records.

MozReview-Commit-ID: 7uQLXMseMIU

--HG--
extra : rebase_source : 5742474889845b934c3d2e8b479d26d719cd03c0
2017-10-27 17:54:48 -07:00
Kit Cambridge 8f60eeed17 Bug 1368209 - Add support for `sortindex` and `older` to the mock Sync server. r=tcsc
MozReview-Commit-ID: 6YI1OEE8x7R

--HG--
extra : rebase_source : 2f0da0cd2a1554685fff5af3de100e4b01564447
2017-10-27 17:55:30 -07:00
Thom Chiovoloni 4ee948935f Bug 1408176 - Use trace logs when logging PII in sync passwords engine r=kitcambridge
MozReview-Commit-ID: KueHgdTH02Z

--HG--
extra : rebase_source : a8f5814c5d9baf8e6c370c65da8472f9c7c6213e
2017-10-27 11:32:22 -04:00
Mark Banner 4de6bf22b1 Bug 1411368 - Automatically fix no-multi-spaces issues raised when using ESLint 4. r=mossop
MozReview-Commit-ID: H5YVp3rnzGo

--HG--
extra : rebase_source : 5b45b6c0df834131812d094e975047eaad374e06
2017-10-26 11:47:01 +01:00
Kit Cambridge 3b78d2f449 Bug 1412139 - Prepare existing bookmark engine tests for new buffered engine. r=kitcambridge
MozReview-Commit-ID: 2HIkdPOuWOy

--HG--
extra : rebase_source : 6c8108f707f59e8d795dfd489453c614f00fd096
2017-09-11 14:17:24 -07:00
Edouard Oger 76547f53cc Bug 1395460 p1 - Remove usages of about:accounts. r=tcsc
MozReview-Commit-ID: APdGc9avJDw

--HG--
extra : rebase_source : aaa788be5251607ebedcb5b690da0e2a1a64e2cb
2017-10-24 14:05:52 -04:00
Sebastian Hengst 93903f0306 Backed out 2 changesets (bug 1395460) for eslint failure at browser/components/uitour/UITour.jsm:556 (no return value from arrow function). r=backout on a CLOSED TREE
Backed out changeset 0bc6d186d609 (bug 1395460)
Backed out changeset 6c028123001d (bug 1395460)
2017-10-26 23:33:04 +02:00
Edouard Oger 58876ecbe9 Bug 1395460 p1 - Remove usages of about:accounts. r=tcsc
MozReview-Commit-ID: APdGc9avJDw

--HG--
extra : rebase_source : 9da1cea9fb6494c057bc6587a7bcbdb4ac127448
2017-10-24 14:05:52 -04:00
Kit Cambridge 1225809c1d Bug 1411690 - Floor the repair advance and most recent repair timestamps. r=tcsc
The timestamps are automatically truncated when they're stored in
prefs, which is fine because we don't need millisecond precision.
However, the truncation raises a warning, so we need to explicitly
floor the values.

MozReview-Commit-ID: BRflL6s0b1

--HG--
extra : rebase_source : 6724a1ad05cb8aee4ab8c666545784960c23a0f3
2017-10-25 13:54:44 -07:00
Edouard Oger 4a0a0ce970 Bug 1411714 - Handle action=email in about:accounts. r=tcsc
MozReview-Commit-ID: 5U6Qy78S1Nl

--HG--
extra : rebase_source : 69368eca5243d418c9705959be81f724351291c6
2017-10-25 16:41:37 -04:00
Sebastian Hengst 1ead0a96a9 Backed out changeset dab1c5badddb (bug 1407679) for failing server startup in mochitests on Android. r=backout on a CLOSED TREE
--HG--
extra : amend_source : 3dc4cb2bbaf55f3f6329687ce64d4e862fc3800b
2017-10-24 21:18:26 +02:00
Valentin Gosu 9dd47ebf50 Bug 1407679 - Merge nsIIOService and nsIIOService2 r=nwgh
Removes deprecated nsIIOService2.newChannelFromURIWithProxyFlags

MozReview-Commit-ID: Gr3nA25kcre

--HG--
extra : rebase_source : 3407b5ed0f8f7067523abee28c137db3cac86b14
2017-10-20 16:41:07 +02:00
Kit Cambridge c31dc99e96 Bug 890217 - Add a test for syncing bookmarks with IMAP URLs. r=tcsc
MozReview-Commit-ID: KBVInzYk1Rr

--HG--
extra : rebase_source : 9ba1b55c154a9a19f24dcf8b859189123abcad1c
2017-10-20 08:55:52 -07:00
Tom Prince 0a687f249e Bug 1404577: Actually disable loading blocklist dump in test_cert_blocklist.js. r=leplatrem
The dump file isn't in the expected location in firefox tests, but is in
thunderbird tests, so the preference to disable loading wasn't originally
implemented.

MozReview-Commit-ID: HvFqfC69yMQ

--HG--
extra : rebase_source : 1d358292f0ab94299e444f4d3e3454a2259d1a64
2017-10-19 21:26:20 -06:00
Dan Banner 7caa92d5d8 Bug 1408777 - Automatically fix instances of missing semicolons in the tree. r=Standard8
MozReview-Commit-ID: Jm8BRgt6mIv
2017-10-15 20:50:39 +01:00
Thom Chiovoloni 2c51427c6d Bug 1408180 - Ensure LoginRec.toString doesn't contain the password. r=kitcambridge
MozReview-Commit-ID: 5mV0g9LH4vE

--HG--
extra : rebase_source : 33a9c246053448450e6107c3b244d0bf86f7decb
2017-10-12 18:15:48 -04:00
Sebastian Hengst 87cd48824a merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE 2017-10-13 00:53:56 +02:00
Sebastian Hengst f7efb5fc2c Merge mozilla-central to mozilla-inbound. r=merge a=merge on a CLOSED TREE 2017-10-12 12:03:15 +02:00
Edouard Oger d8c3cc3c0b Bug 1401700 - Prevent incoming tabs from opening multiple times if client sync fails. r=tcsc
MozReview-Commit-ID: DhrZ1oFY2WG

--HG--
extra : rebase_source : d8d35bdb08edbad9412d6953a671c3e38e75711c
2017-10-03 14:45:11 -04:00