Commit Graph
864 Commits
Author SHA1 Message Date
Thom Chiovoloni aff2fadf00 Bug 1403052 - Limit tab sync max_record_payload_size to 512k. r=markh
Also fixes an issue where we wouldn't encode to utf8 when comparing the actual
size to the limit after the first time.

MozReview-Commit-ID: Cf3byjI1FTZ
2017-10-02 19:27:54 -04:00
Thom Chiovoloni e85d046fcb Bug 1400467 - Make WeaveCrypto use promises instead of spinning event loops r=eoger,markh
MozReview-Commit-ID: 64dewKKaAOJ
2017-09-15 19:21:31 -07:00
Edouard Oger f8442abd16 Bug 1395427 p3 - Allow form history items to be created with a specific guid. r=markh
This allows us to have the same form history GUIDs across devices, which is mandatory
if we want tombstones to actually do something.

MozReview-Commit-ID: Hw6ahbVA5lB
2017-09-22 15:08:48 -04:00
Sebastian Hengst ea2f0888e3 Backed out changeset d7876bfd8bfc (bug 1395427) 2017-09-27 17:10:21 +02:00
Edouard Oger c179b1162d Bug 1395427 p3 - Allow form history items to be created with a specific guid. r=markh
This allows us to have the same form history GUIDs across devices, which is mandatory
if we want tombstones to actually do something.

MozReview-Commit-ID: Hw6ahbVA5lB
2017-09-22 15:08:48 -04:00
Thom Chiovoloni 1c514ba37f Bug 1393659 - Fix inconsistent handling of max_post_bytes and max_request_bytes r=markh
MozReview-Commit-ID: 4jwpAYNuoQj
2017-09-13 18:02:41 -07:00
Nicolas Ouellet-Payeur 37bddf0395 Bug 1392148 - Remove aliases to CommonUtils in util.js r=markh
MozReview-Commit-ID: 1fv6AN0TMNW
2017-08-24 22:41:44 -07:00
Nicolas Ouellet-Payeur 65fdd39ce6 Bug 1353217 - importing bookmarks from html doesn't need to reset the bookmarks engine. r=markh
MozReview-Commit-ID: 4F7KF5ZkNuX
2017-08-11 00:19:01 +00:00
Luciano Italiani ac131d0a8f Bug 1377944 - Converts the history engine to use 'PlacesUtils.history.insertMany'. r=kitcambridge
MozReview-Commit-ID: 61IoSuLE5cr
2017-07-31 00:53:50 -03:00
Kit Cambridge dcdb47e58a Bug 1389717 - Ensure HistoryStore#changeItemID waits for fetchURLInfoForGuid. r=markh,tcsc
MozReview-Commit-ID: CAVdgurQxPj
2017-08-11 19:08:04 -07:00
Leni Kadali 320d61dc2c Bug 684121 - Don't access Services.appinfo at import time r=kitcambridge
As stated by Philipp, the prefs engine (PREFS_GUID) accesses Services.appinfo at import time.
Changed code to use a lazy getter on the global object instead.

changed services/sync/modules/engines/prefs.js

MozReview-Commit-ID: 1MAGKM9r1OM
2017-08-13 05:08:48 +03:00
Carsten "Tomcat" Book b9fbb93a18 Merge mozilla-central to autoland 2017-08-08 13:25:29 +02:00
Phil Ringnalda f1551e8415 Backed out changeset 26831e829c5a (bug 1377944) at markh's request
MozReview-Commit-ID: 526HN6OCn1A
2017-08-07 20:42:50 -07:00
dagasatvik 91d42b2553 Bug 1385820 - Enable the ESLint no-new-wrappers rule across mozilla-central; r=markh,standard8
MozReview-Commit-ID: FvJO3ibeiwg
2017-08-07 23:57:51 +05:30
Edouard Oger 8893315ca0 Bug 1385440 - Serialize client commands additions. r=markh
MozReview-Commit-ID: 3qGcHVhOCeL
2017-08-02 11:33:24 -04:00
Luciano Italiani dcaa7618db Bug 1377944 - Converts the history engine to use 'PlacesUtils.history.insertMany'. r=kitcambridge
MozReview-Commit-ID: 61IoSuLE5cr
2017-07-31 00:53:50 -03:00
tiago 59d41015d5 Bug 1336518 - Move Sync history queries into PlacesSyncUtils. r=kitcambridge
MozReview-Commit-ID: Lood8ivLeJf
2017-07-30 17:46:56 -03:00
Kit Cambridge 0262a74627 Bug 1383621 - Use the async bookmarks API to insert the mobile query. r=markh
MozReview-Commit-ID: KaeXwFHEg7K
2017-07-24 16:45:17 -07:00
Nicolas Ouellet-Payeur 4e15124c49 Bug 1375212 - Wrap thrown strings in Error objects r=eoger,markh
MozReview-Commit-ID: KquBcbNhBEN
2017-07-22 18:55:43 -07:00
Thom Chiovoloni d6b5336283 Bug 1337978 - Unify the multiple notions of 'weak upload' in sync. r=kitcambridge,markh
MozReview-Commit-ID: 5vTCAhUfMzm
2017-07-18 14:18:04 -04:00
Edouard Oger 71647a4642 Bug 1210296 part 1 - Remove most event loop spinning from Sync. r=kitcambridge,markh,tcsc
MozReview-Commit-ID: 9RpgSgXykWt
2017-06-05 18:50:07 -04:00
Kit Cambridge e0c0c304f8 Bug 1378551 - Separate pullNewChanges and markChangesAsSyncing. r=markh
MozReview-Commit-ID: FcysoHJtG60
2017-07-05 13:49:48 -07:00
Paolo Amadini 7afba17088 Bug 1362970 - Part 2 - Script-generated patch to convert .then(null, ...) to .catch(...). r=florian
Changes to Promise tests designed to test .then(null) have been reverted, and the browser/extensions directory was excluded because the projects it contains have a separate process for accepting changes.

MozReview-Commit-ID: 1buqgX1EP4P
2017-06-19 11:32:37 +01:00
Thom Chiovoloni 1ebd4bc90f Bug 1368393 - Handle already synced commands in clients collection duplicate checking r=eoger,markh
MozReview-Commit-ID: Hs0Jh8mMlOp
2017-06-09 12:07:43 -04:00
Edouard Oger 6517338258 Bug 1369119 - Refresh known stale devices list on FxA device disconnect. r=markh
MozReview-Commit-ID: A2iqas0kP20
2017-06-06 14:28:00 -04:00
Edouard Oger 61ceffa8af Bug 1363412 - Notify other clients when uploading the local clients record for the first time. r=markh
MozReview-Commit-ID: Ldc3Jrj8RhV
2017-06-12 14:51:17 -04:00
tiago 152754cd34 Bug 1356281 - Remove bookmark contents from sync debug logs. r=tcsc
MozReview-Commit-ID: HsMH5mpCK8C
2017-05-19 04:40:15 -03:00
tiago ffb6ef28bf Bug 1354016 - Forms validator ignore clientMissing. r=tcsc
MozReview-Commit-ID: C2FD58C9HzS
2017-06-01 22:32:23 -03:00
Mark Hammond e31f371e29 Bug 1366994 - prevent appDisabled addons from hanging sync. r=tcsc
MozReview-Commit-ID: 4RRCPlwUZrG
2017-05-26 12:42:10 +10:00
Kit Cambridge d0cfeef79b Bug 973166 - Only track passwords with changes to synced fields. r=eoger
MozReview-Commit-ID: 8ZOyVCaZIi8
2017-05-22 17:21:20 -07:00
Kit Cambridge dd4d95541b Bug 1352233 - Try to preserve synced folder child order in case of conflicts. r=tcsc
For folders, we resolve conflicts by taking the chronologically newer
list, then appending any missing items from the older list. This
preserves the order of those missing items relative to each other, but
not relative to those appearing in the newer list.

MozReview-Commit-ID: 6rimXpV7vLg
2017-04-28 14:08:11 -07:00
Kit Cambridge 8c4cab8374 Bug 1335891 - Ensure and test that Sync changes don't bump the score. r=markh
MozReview-Commit-ID: 4dP5oZS3pm
2017-05-09 13:04:50 -07:00
Edouard Oger 93c19ffc8b Bug 1361572 - Remove Task.jsm/Promise.jsm from services/. r=kitcambridge
MozReview-Commit-ID: BBIkpIkWIYc
2017-05-02 19:29:33 -04:00
Edouard Oger 75b4ce6b59 Bug 1358648 part 3 - Remove Async, Services and XPCOMUtils from util.js. r=markh
MozReview-Commit-ID: 8na204K9cXp
2017-05-02 16:57:37 -04:00
Edouard Oger 6fd86d6b51 Bug 1358648 part 2 - Remove util.js Svc.{DefaultPrefs,Session,Idle, FormHistory} and Str. r=markh
MozReview-Commit-ID: Jc1th8Snvhv
2017-05-02 18:30:23 -04:00
Mark Banner e9208bd351 Bug 1359140 - Fix various ESLint issues in services/ (mostly automatic). r=markh
This fixes various errors raised in services for the rules: key-spacing, quotes, no-else-return, no-extra-semi, comma-spacing, object-shorthand.

MozReview-Commit-ID: IClwG5rfXfW
2017-04-24 18:52:57 +01:00
Mark Hammond 36b93a49f7 Bug 1355677 - Make all Sync network requests promise based. r=kitcambridge,rnewman,tcsc
MozReview-Commit-ID: JSwAS4Xd1uy
2017-04-11 23:40:53 +10:00
Marco Bonardo 9b56138641 Bug 1356567 - root icons should still create a page association if the domain differs. r=adw,kitcambridge
Root domain icons are no more associated with their pages, BUT if the page uses
a root domain icon from another domain, it should still get an association with it
or we couldn't relate the two.

This also fixes an overlooked problem in PlacesTestUtils where Date objects
cross a boundary and fail instanceof checks. This causes failures in the same
test that this patch is modifying.
To protect from future similar issues some protection has been added to updatedPlaces
so that it will crash in debug builds.

MozReview-Commit-ID: 3MTKhGj3ehj
2017-04-14 20:34:27 +02:00
Carsten "Tomcat" Book b64dbe3b57 Backed out changeset eb94759f0fcf (bug 1356567) for test failures in own test 2017-04-18 12:58:09 +02:00
Marco Bonardo f10bff9f87 Bug 1356567 - root icons should still create a page association if the domain differs. r=adw,kitcambridge
Root domain icons are no more associated with their pages, BUT if the page uses
a root domain icon from another domain, it should still get an association with it
or we couldn't relate the two.

This also fixes an overlooked problem in PlacesTestUtils where Date objects
cross a boundary and fail instanceof checks. This causes failures in the same
test that this patch is modifying.
To protect from future similar issues some protection has been added to updatedPlaces
so that it will crash in debug builds.

MozReview-Commit-ID: 3MTKhGj3ehj
2017-04-14 20:34:27 +02:00
tiago 23ec6d160f Bug 986501 - Avoid unnecessary compartments on Sync startup r=markh
MozReview-Commit-ID: 8Rr3JD4dfVy
2017-04-13 20:36:08 -03:00
Florian Queze d3c36892fa Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Sebastian Hengst 42670ceca0 Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout 2017-04-14 23:39:22 +02:00
Florian Queze 9b4f73599f Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
hrishikesh 202c968d7f Bug 1351906 - Moved log.trace before return statement to fix unreachable code issue in history.js. r=Standard8 2017-04-05 11:03:01 +05:30
Thom Chiovoloni 3965aae6fc Bug 1349703 - (part 1) Fix issue where sync would fail misreconcile special folders in fresh syncs r=kitcambridge
MozReview-Commit-ID: Izy9JgMYpom
2017-03-23 16:32:40 -04:00
Kit Cambridge 6dd5b597b4 Bug 1349709 - Ensure PasswordEngine conforms to the new pullAllChanges interface. r=tcsc
This was a regression from bug 1317223. This commit also adds a
password engine sync test to catch future regressions.

MozReview-Commit-ID: 9dq8K39jLwB
2017-03-22 19:21:08 -07:00
Kit Cambridge 10ce73bb90 Bug 1343093 - Add integration test for bookmark repair. r=markh
This test replaces the clients engine to simulate two different
clients, and uses `SOURCE_SYNC` to bypass change tracking.

MozReview-Commit-ID: IF3b3WZtain
2017-03-21 11:54:06 -07:00
Edouard Oger d07a58128d Bug 1343735 - Respect max_record_payload_bytes limit. r=markh
MozReview-Commit-ID: 1aDwl1cq2Hh
2017-03-15 17:12:17 -04:00
David Rajchenbach-Teller 31c1c81073 Bug 1087255 - Convert Sync JS clients of RemovePage(s) to History.remove;r=rnewman 2014-10-31 12:36:19 +01:00