Commit Graph

4889 Commits

Author SHA1 Message Date
Mark Hammond
c952b939b9 Bug 1390478 - never block the UI waiting for the FxA profile. r=eoger
MozReview-Commit-ID: 4MNqo9AUuOz

--HG--
extra : rebase_source : b53f108d880f33246b351c5320e47c235ee9c7fb
2017-12-08 11:27:40 +11:00
Jeremy Lempereur
010e4ca3fb Bug 692386 - sync: Add missing requested URL on NS_ERROR_NET_RESET. r=markh
The requested URL was logged on almost each failing request exception.
Added a warn message to log the request method and url when any request fails.

MozReview-Commit-ID: GKwd7HabTp6

--HG--
extra : rebase_source : 012bb9c322ecda93be32f43582492b37e407396d
2018-01-03 12:59:03 +01:00
Thom Chiovoloni
25d3c801bc Bug 1425960 - Optimize sync preference usage r=markh
MozReview-Commit-ID: AMwkvF7Dy3G

--HG--
extra : rebase_source : f44ea9674ad0fd45191220ec6845aa85f68efa10
2017-12-20 12:36:18 -05:00
Thom Chiovoloni
364c629823 Bug 1426742 - Fix TPS test_history and cleanup failures. r=kitcambridge
MozReview-Commit-ID: 8jR4vtwUpOm

--HG--
extra : rebase_source : 72f655998e1e3380d8d4f569356d247906a032b0
2017-12-21 15:15:24 -05:00
Thom Chiovoloni
3e7a2e240e Bug 1425544 - Ensure trace level logging is used throughout sync tests. r=markh
MozReview-Commit-ID: Icl1qk07LKm

--HG--
extra : rebase_source : c0e35f3e435e720f0375b3826ee4ba745d1e134b
2017-12-20 18:29:21 -05:00
Florian Quèze
0f55cd45be Bug 1421992 - script-generated patch to replace do_execute_soon, do_print and do_register_cleanup with executeSoon, info and registerCleanupFunction, rs=Gijs. 2017-12-21 11:10:23 +01:00
Florian Quèze
e0f995ea08 Bug 1421992 - hand written cleanup patch to make xpcshell tests pass after replacing do_check_* with Assert.*, r=Gijs. 2017-12-21 11:08:19 +01:00
Florian Quèze
032c961e0a Bug 1421992 - script-generated patch to replace do_check_* functions with their Assert.* equivalents, rs=Gijs. 2017-12-21 11:08:17 +01:00
Mark Hammond
57f9284cef Bug 1425987 - part 2: Cleanup Sync logging by rationalizing preference management. r=tcsc
MozReview-Commit-ID: CQ1vhahnQbc

--HG--
extra : rebase_source : 5456b3afcf2d2d3536b9b546dda67199af4e1bdd
2017-12-19 09:48:31 +11:00
Thom Chiovoloni
4e773dd17f Bug 1423399 - Avoid duplicating synced history visits older than your most recent 20 r=kitcambridge
MozReview-Commit-ID: 2CAutmuJWhb

--HG--
extra : rebase_source : b145ebe8525fa6cb045f99adabfc5ce3d0984f3a
2017-12-18 19:40:38 -05:00
Edouard Oger
9aa875bf0b Bug 664590 - Do not track file:/// visits. r=markh
MozReview-Commit-ID: 6oVDkJU7kai

--HG--
extra : rebase_source : 0d184abb2ba1babc6c6c3ef6ebbb3024a26f81a8
2017-12-06 16:55:45 -05:00
Thom Chiovoloni
208554ebe1 Bug 1423395 - Clamp and truncate microseconds from incoming history visit dates when deduping r=markh
MozReview-Commit-ID: H1lljWcSZLZ

--HG--
extra : rebase_source : c64f20dd38bf4b17f05885df1f6b3ba112efdcb6
2017-12-05 19:40:37 -05:00
Dorel Luca
19230bafde Backed out changeset 0e26ab46cbb7 (bug 1390478) for Xpcshell failure in services/fxaccounts/tests/xpcshell/test_profile.js on a CLOSED TREE
--HG--
extra : amend_source : 37b6f14e6d869559d8794019ba132a061ec01378
2017-12-19 15:29:38 +02:00
Mark Hammond
8d3579fb17 Bug 1390478 - never block the UI waiting for the FxA profile. r=eoger
MozReview-Commit-ID: 4MNqo9AUuOz

--HG--
extra : rebase_source : 283b16e29b7a2a20e9cca87437a08f241bffa832
2017-12-08 11:27:40 +11:00
Mark Hammond
81ef0051dc Bug 1415560 - ignore insertMany result and add an onError handler to log errors. r=tcsc
MozReview-Commit-ID: 8aJkRL8WCPr

--HG--
extra : rebase_source : dceb94744eef3ac50253594a70cec9f32f4cf8d3
2017-12-04 12:49:06 +11:00
Mark Hammond
6b3554dc84 Bug 1423067 - SyncedTabs.jsm now exports the loginFailed getter fixing an issue with the sidebar. r=eoger
MozReview-Commit-ID: AVjfXH1E9uw

--HG--
extra : rebase_source : 8ee64138f5604b12af1f4ffa0cabb73ab6ad5465
2017-12-05 14:46:53 +11:00
Mark Hammond
b5876a8b65 Bug 1407116 - Sync now enters the "please reconnect" state if Sync is configured but FxA is not. r=eoger
MozReview-Commit-ID: LuAdYkpe0b7

--HG--
extra : rebase_source : 0fb3ca9ef0912e61354df5ca111a169df3777526
2017-12-04 15:48:45 +11:00
Mark Hammond
734061ef82 Bug 1380215 - FxA now ensures Sync is loaded before sending observer notifications. r=eoger
MozReview-Commit-ID: KUKb421guxt

--HG--
extra : rebase_source : 092ad19374c2db477621c0429f45c9b669d85357
2017-12-05 13:01:05 +11:00
Mark Banner
499ca20f31 Bug 1421968 - Enable ESLint rule mozilla/use-services by default, but whitelist it for various directories still to be fixed. r=mossop
MozReview-Commit-ID: KOZWr7FiDQZ

--HG--
extra : rebase_source : 92c9bc236c9043f6ce25cc2ba45264918eb2ac15
2017-11-28 19:24:12 +00:00
Edouard Oger
54088f8c9e Bug 1422115 - Remove storageserver.js from services/. r=markh,tcsc
MozReview-Commit-ID: 4UGCq6SolY1

--HG--
extra : rebase_source : 49e8a5d072d1cb15d0942e7fbc39c7a2c8c08c6f
2017-11-30 15:11:19 -05:00
Edouard Oger
ae62aef149 Bug 1418466 - Add Connect Another Device button to relevant Sync UI. r=dao,markh
MozReview-Commit-ID: 5vBKH9NejVV

--HG--
extra : rebase_source : c160a5a1d7753d41c7afec3a822aefa9461684e6
2017-11-17 16:48:17 -05:00
Noemi Erli
e5e82c8496 Backed out changeset 932a77d8fbae (bug 1418466) for ES failures in /builds/worker/checkouts/gecko/browser/base/content/browser-sync.js r=backout on a CLOSED TREE 2017-11-30 18:44:16 +02:00
Edouard Oger
016b5734e5 Bug 1418466 - Add Connect Another Device button to relevant Sync UI. r=dao,markh
MozReview-Commit-ID: 5vBKH9NejVV

--HG--
extra : rebase_source : e8628aba338b19142dc63add9bb380042096053f
2017-11-17 16:48:17 -05:00
Margareta Eliza Balazs
cb71a3c4fe Merge mozilla-central to mozilla-autoland. r=merge a=merge CLOSED TREE 2017-11-30 12:55:54 +02:00
Edouard Oger
403ad27bae Bug 1420802 - Remove NetworkLinkService from offline check. r=tcsc
Summary: Remove NetworkLinkService from offline check.

Reviewers: tcsc

Reviewed By: tcsc

Bug #: 1420802

Differential Revision: https://phabricator.services.mozilla.com/D300
2017-11-29 15:15:28 -05:00
Mark Hammond
0dd353e7d5 Bug 1421850 - ensure Sync is fully initialized before syncing. r=tcsc
MozReview-Commit-ID: 7hS3fttgqqr

--HG--
extra : rebase_source : b9a342c1a977699c3c4c42e9bca86ee087a51260
2017-11-30 14:03:57 +11:00
Thom Chiovoloni
788c2ca211 Bug 1421817 - Send a sync ping on shutdown if we have events but no syncs. r=markh
MozReview-Commit-ID: ExxN6UXs2Ip

--HG--
extra : rebase_source : 356d2f7bbfc856859e7b6246939b785f0984fa82
2017-11-29 17:41:59 -05:00
Thom Chiovoloni
302308a0a1 Bug 1336257 - Use HTTPS for mozqa url in TPS. r=markh
MozReview-Commit-ID: Admw1iKeW24

--HG--
extra : rebase_source : 836f3efb3aea6eb2a089c5aecd0f7a10a0bd6787
2017-11-29 18:35:28 -05:00
Mark Hammond
4b66d38dd6 Bug 1420810 - record why we are syncing for most syncs initiated by the scheduler. r=eoger
MozReview-Commit-ID: 1ntqG5yQi7q

--HG--
extra : rebase_source : 73b479ac7e602f5f491f63939a4425af17d6ce25
2017-11-27 17:32:05 +11:00
Mark Hammond
39bf8149a6 Bug 1416788 - limit number of visits we pass to PlacesUtils.history.insertMany to prevent shutdown hangs. r=kitcambridge
MozReview-Commit-ID: AU9AMUAD1Rw

--HG--
extra : rebase_source : 205ec0f17f94bd399f4663e552bd75e7b63f7da5
2017-11-23 16:18:55 +11:00
Thom Chiovoloni
dc2fe37c66 Bug 1421452 - Fix deprecation warning in test_bookmark_engine by passing an osfile path instead of nsifile. r=markh
MozReview-Commit-ID: 4XrzA0kUXzE

--HG--
extra : rebase_source : bed7a594b854969dd1932449f43ade4dc068ffeb
2017-11-28 17:35:51 -05:00
Thom Chiovoloni
a004052a6e Bug 1421044 - Make TPS await sync initialization before trying to run r=markh
MozReview-Commit-ID: JSBXKHRXjc0

--HG--
extra : rebase_source : f18047d5a71d92acb9712244266909fc9e09dd0f
2017-11-28 13:56:48 -05:00
Thom Chiovoloni
6e7fbdc912 Bug 1420349 - Instantiate the sync scheduler in the service's constructor, instead of in onStartup. r=eoger
MozReview-Commit-ID: 3bOnRH5jR9e

--HG--
extra : rebase_source : 63eb169666e6b5694e7324f5eb01349189a895ec
2017-11-28 11:48:10 -05:00
Ryan Leake
7822b14bda Bug 1346072 - Remove accounts.firefox.com from the whitelist of domains allowed to send objects over webchannels. r=markh
MozReview-Commit-ID: 4ts3uBPuXom

--HG--
extra : rebase_source : 0dced36f4c14f8fb4f7633f3b265ac22d95ecfd7
2017-11-24 20:24:42 +00:00
Mark Banner
efaca11893 Bug 1420422 - Enable ESLint rule mozilla/use-services for services/. r=markh
MozReview-Commit-ID: LQiMr3ppDuG

--HG--
extra : rebase_source : f509b5360e92db58f14b0f6a41c06e10fe7dd170
2017-11-24 14:46:33 +00:00
Edouard Oger
9f071e2083 Bug 1409534 - Replace Resource impl by fetch. r=kitcambridge,markh,tcsc
MozReview-Commit-ID: 5mmVeHeMQKf

--HG--
extra : rebase_source : 84c20e3b90b5bed43e511158270761e2e1da6b15
2017-11-06 16:24:40 -05:00
Edouard Oger
438ca97ce7 Bug 1419990 - Only sync the tabs collection on sleep if there are changes. r=markh
MozReview-Commit-ID: GC0KMmQPqqD

--HG--
extra : rebase_source : 2039c7f644b3510dda07839c1e561786ad8c0ba1
2017-11-23 11:24:41 -05:00
Edouard Oger
0154c0f443 Bug 1416320 - Do a quick sync before going to sleep. r=markh
MozReview-Commit-ID: I36uvEFlEz5

--HG--
extra : rebase_source : 93812879d3ea19042356e51672f7f464e30e9ee5
2017-11-10 14:09:44 -05:00
Cosmin Sabou
959009f1a8 Backed out changeset 23fbfd83e957 (bug 1416320) for ESlint failure at gecko/services/sync/modules/policies.js:558:71 on a CLOSED TREE 2017-11-21 07:26:51 +02:00
Edouard Oger
ab35b46c98 Bug 1416320 - Do a quick sync before going to sleep. r=markh
MozReview-Commit-ID: I36uvEFlEz5

--HG--
extra : rebase_source : 1910ac25084f6a8c37a6d21accf17da974d56493
2017-11-10 14:09:44 -05:00
Dan Banner
b2e847755c Bug 1367704 - Enable the semi ESLint rule across the tree. r=standard8
MozReview-Commit-ID: GrlcOI9K2hJ

--HG--
extra : rebase_source : 6574cf3c67eb11733ffd9999c260f71c8551abc4
2017-05-28 19:57:46 +01:00
Edouard Oger
afa6330a25 Bug 1416322 - Wait until the network is back up to sync after waking-up from sleep. r=markh
MozReview-Commit-ID: 2vzmj3UkvtD

--HG--
extra : rebase_source : a152684365627cf1ea68efe10f5e27ad15577135
2017-11-16 13:12:31 -05:00
Edouard Oger
0648f86b7f Bug 1304898 - Include why in sync ping. r=tcsc
MozReview-Commit-ID: G9WnHhuWD7Z

--HG--
extra : rebase_source : 27cb3c2bdf7432e0db1e6a8431d348be50c2afd8
2017-11-15 17:10:45 -05:00
Edouard Oger
fbd7ca1890 Bug 1416807 - Don't schedule syncs while we're behind to a captive portal. r=markh
MozReview-Commit-ID: 2CrO3CfKgC3

--HG--
extra : rebase_source : 460fb20172e325a154a4848e6a5ed0bacefd4b77
2017-11-15 16:01:48 -05:00
Kit Cambridge
d6c28d0200 Bug 1417590 - Check for client duplicates in the Sync collection validator. r=tcsc
MozReview-Commit-ID: LcPnTEDhbis

--HG--
extra : rebase_source : 5070eebbb1495ac14cc140862dd78d46e638615f
2017-11-10 22:27:30 -08:00
Doug Thayer
43771ba19d Bug 1414892 - Optimize moz_places_afterinsert_trigger r=mak
This uses a similar strategy as that employed by moz_places_afterdelete_trigger,
creating a temp table which we write host inserts into, and then deleting all
the rows from it when we're done inserting, effectively resulting in a per-
statement trigger to only do the significant work per host.

MozReview-Commit-ID: 5TUueknq3ng

--HG--
extra : rebase_source : 1892edfcaa7b6afd29ce794a93d6ab3d46c48895
2017-11-07 12:01:53 -08:00
Thom Chiovoloni
9e62cc5726 Bug 1416313 - Drop old or low priority commands rather than failing to sync the clients engine if too many commands are sent. r=eoger,markh
MozReview-Commit-ID: 6BJGmUL28hp

--HG--
extra : rebase_source : 894cafb34f193b802c90052142174ea3187b8396
2017-11-10 15:57:33 -05:00
Thom Chiovoloni
892f157456 Bug 1416902 - Fix missing await in test_service_sync_updateEnabledEngines and test_interval_triggers r=kitcambridge
MozReview-Commit-ID: 6rFOWPsxxxj

--HG--
extra : rebase_source : 62e37062876d4dd38cc43f532df622c09b94cf1b
2017-11-13 16:53:15 -05:00
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