Commit Graph

413 Commits

Author SHA1 Message Date
Jared Wein
9a0aefca79 Bug 1330014 - Remove extra lines that eslint --fix adds for no-useless-return. r=standard8
MozReview-Commit-ID: Be36laqLQQ2

--HG--
extra : rebase_source : 48f6fc7a832e51035c04ea825f77a38cb08a7151
2017-01-10 12:08:32 -05:00
Jared Wein
65605f286e Bug 1330014 - Add .eslintrc.js file to /services and run eslint --fix to automatically fix most of the errors. --fix brings the error count down from 4083 to 321 errors. r=markh,standard8
MozReview-Commit-ID: EjyAssqiQk8

--HG--
extra : rebase_source : cbfc8d4474b6c3d46eb21374e33fd3341403444f
2017-01-10 12:09:02 -05:00
Iris Hsiao
55313b4bc9 Backed out changeset 7e0a0bd74199 (bug 1330014) 2017-01-13 11:06:43 +08:00
Iris Hsiao
303147b9fa Backed out changeset afe70927277c (bug 1330014) for xpcshell test_storage_manager.js failures 2017-01-13 11:06:38 +08:00
Jared Wein
dd7ec3a99b Bug 1330014 - Remove extra lines that eslint --fix adds for no-useless-return. r=standard8
MozReview-Commit-ID: Be36laqLQQ2

--HG--
extra : rebase_source : 05c863e038aa1a6571500f4178c325b1b9913af9
2017-01-10 12:08:32 -05:00
Jared Wein
81cb5e57b9 Bug 1330014 - Add .eslintrc.js file to /services and run eslint --fix to automatically fix most of the errors. --fix brings the error count down from 4083 to 321 errors. r=markh,standard8
MozReview-Commit-ID: EjyAssqiQk8

--HG--
extra : rebase_source : d783829bc7fced3044d0d076c4786a6957d29bb6
2017-01-10 12:09:02 -05:00
Mark Banner
582fcb8090 Bug 1329614 - [eslint] Catch more cases of importing globals from 'var foo = Cu.import('...');'. r=jaws
MozReview-Commit-ID: 5NKHHb70YA6

--HG--
extra : rebase_source : 4551e56f56065349fb9ddc8d90e67f9dc84c1701
2017-01-09 10:12:26 +00:00
Florian Quèze
fc6379e827 Bug 1329182 - remove trailing newURI null parameters in the rest of the tree, r=jaws. 2017-01-09 20:27:26 +01:00
Mark Goodwin
31afeff0c3 Bug 1283109 - Create a services client for augmenting the STS preload list between releases. r=leplatrem
MozReview-Commit-ID: H9zZpBwJRgi

--HG--
extra : rebase_source : ae9f58eea512c020ea96fe293c7825bbcc3ccf15
2016-12-21 15:36:31 +00:00
Mark Goodwin
a4645b5275 Bug 1306470 - Create a services client for augmenting the PKP preload list between releases. r=leplatrem
This makes use of the recent changes to the nsISiteSecurityService (from bug
1306471) to provide a self-updating public key preload list.

MozReview-Commit-ID: 4s3LORibAN1

--HG--
extra : rebase_source : 90a5a242177d4d8826c80e6c1f424805b62608d4
2016-12-16 16:34:42 +00:00
Ethan Glasser-Camp
b80b66c130 Bug 1319884 - Address FirefoxAdapter feedback from kinto.js#589, r=mgoodwin
Change FirefoxAdapter definitively to require an externally-managed
Sqlite connection in order to function. This connection must be
produced by calling an openConnection() static method, which does the
work of initializing the tables and schema. Passing any other
connection is wrong, but won't be detected at runtime, and might even
work depending on the previous state of the database. Future work
might define a new KintoSqliteConnection type that can only be
produced by this method, so that it's impossible to create an
uninitialized Kinto database.

This change, since it moves Sqlite connections out of the
FirefoxAdapter, also means that the path option is no longer handled
or provided with a default. This means that the previous default,
"kinto.sqlite", is now preserved in a bunch of places all over the
codebase. This is unfortunate, but a migration is outside the scope of
this patch.

MozReview-Commit-ID: BKJqPR3jOTq

--HG--
extra : rebase_source : 91e0027890ac5fd0ba683abddc23e268f672d169
2016-11-23 14:18:53 -05:00
Ethan Glasser-Camp
5a6b486919 Bug 1318669 - Remove stripPrivateProps from blocklist-clients.js, r=mgoodwin
MozReview-Commit-ID: 84yvzpBr3Q6

--HG--
extra : rebase_source : 727b0d86405c9f4db217a290b7fd7c68d689b2f4
2016-11-18 10:07:39 -05:00
Ethan Glasser-Camp
877252b989 Bug 1317841 - Stylistic pass on new kinto-storage-adapter, r=MattN
- Reflow things to try to avoid long lines.

- Add terminal comma where possible.

MozReview-Commit-ID: 1USxo0lO33w

--HG--
extra : rebase_source : 0869cc9f9ba29cc39b227a0694e9cd6d635ccc3f
2016-11-16 11:13:32 -05:00
Ethan Glasser-Camp
4742db4baa Bug 1317841 - Update version of kinto.js to v6.0.0, r=MattN
This major version of kinto.js released without a FirefoxStorage
adapter. Since Gecko is the only project with a need for this adapter
as well as the only one who can use it, that file moves to this repo
as a new kinto-storage-adapter.js. This file is mostly a copy of the
most recent FirefoxStorage.js, plus some other non-exported utility
functions copied from kinto.js to make it work.

This changes the export of the kinto-offline-client.js from a
`loadKinto` function which returns the Kinto class, to the actual
Kinto class itself, with the user expected to "hook up" the
adapter. It turns out that this doesn't change much in how we actually
use Kinto, since we were always previously explicitly selecting the
Kinto adapter.

This release of kinto.js also changes some of the build options
around, which changes the minified output of kinto-offline-client.js.

There are still some outstanding stylistic complaints about
FirefoxAdapter having to do with its _init static method which is
public and the fact that sometimes FirefoxAdapter manages its own
Sqlite connection and sometimes it doesn't. These will be addressed in
a future patch.

MozReview-Commit-ID: HF0oNCEDcFs

--HG--
rename : services/common/kinto-offline-client.js => services/common/kinto-storage-adapter.js
extra : rebase_source : 11d01e573b259798305494ac072575247ac01e2c
2016-11-15 19:38:53 -05:00
Mark Hammond
9c1b1b298b Bug 1317587 - don't start scheduled sync after shutdown. r=rnewman
MozReview-Commit-ID: GSyWAUa1qyr

--HG--
extra : rebase_source : 45d0dfd5c686803f017230ab6152d0204a3d4c8e
2016-11-15 15:28:52 +11:00
Sebastian Hengst
0dc4492dd2 Bug 1310297 - Remove test annotations using b2g, mulet or gonk: services. r=RyanVM
MozReview-Commit-ID: DuzsFEaAeYr

--HG--
extra : rebase_source : b6c4cb95bf0563b0abd48949d50d2c156c86602b
2016-11-05 11:29:21 +01:00
Ethan Glasser-Camp
65d084b973 Bug 1315247 - Update version of Kinto.js client to 5.1.0, r=MattN
MozReview-Commit-ID: K68DXYrpHYX

--HG--
extra : rebase_source : 9c2dd7ff123ce364e9ee5cfaee4efe73ee26c83b
2016-11-04 09:38:34 -04:00
Ethan Glasser-Camp
bce63cb01d Bug 1308515: Update version of kinto.js client to 5.0.0, r=MattN
MozReview-Commit-ID: D3WISXfSaTz

--HG--
extra : rebase_source : ab9d5497c4b1aa22ae15bae65ef4f7a30ec87626
2016-10-07 10:27:48 -04:00
Ethan Glasser-Camp
061b360de6 Bug 1308515: Fix blocklist-clients.js so that it can work with new kinto.js, r=leplatrem,MattN
MozReview-Commit-ID: AwLBvYQb4DX

--HG--
extra : rebase_source : 5b2b1084aad4f9a1b98a243a9693cfe1ab3e8516
2016-10-17 10:20:50 -04:00
Ethan Glasser-Camp
b307183a8c Bug 1300591 - Update Kinto.js to v4.0.4, r=MattN
MozReview-Commit-ID: B5pB3AmjjAL

--HG--
extra : rebase_source : ff7960141b7a46dc4a96c1dce6286d942c02645c
2016-09-05 13:18:25 -04:00
Ethan Glasser-Camp
64606dd324 Bug 1299208 - Update kinto.js to v4.0.3. r=MattN
MozReview-Commit-ID: HlLbIpRri19

--HG--
extra : rebase_source : 68371c68745480f36b516b208428d2453ea06609
2016-08-30 12:19:19 -04:00
Ethan Glasser-Camp
f42c20c601 Bug 1298106 - Update Kinto.js to 4.0.2, r=MattN
MozReview-Commit-ID: 3xi7o9DvAmS

--HG--
extra : rebase_source : a751fea322f063718aa91630bb4c6303e36fe48c
2016-08-25 14:13:15 -04:00
Thom Chiovoloni
98df436e16 Bug 1288445 - Use new hashed_fxa_uid field instead of the real FxA UID in sync telemetry ping. r=bsmedberg,markh
MozReview-Commit-ID: DhlIEvyrtlL

--HG--
extra : rebase_source : b8a45bf1c13be13ff00c8dc3a9cdd8f0504908f3
2016-08-09 12:28:35 -04:00
Wes Kocher
66c318b349 Backed out changeset e4437c4da937 (bug 1288445) for xpcshell failures a=backout 2016-08-12 19:06:00 -07:00
Thom Chiovoloni
e8d58192dd Bug 1288445 - Use new hashed_fxa_uid field instead of the real FxA UID in sync telemetry ping. r=bsmedberg,markh
MozReview-Commit-ID: DhlIEvyrtlL

--HG--
extra : rebase_source : 8fffdf42ba56242144e4450a783c4d23cc4f2aeb
2016-08-09 12:28:35 -04:00
Thom Chiovoloni
5b9dedc2c6 Bug 1283456 - Ensure the response exists in the HawkClient's onComplete method. r=markh
MozReview-Commit-ID: CYQ8E9vEjqY

--HG--
extra : transplant_source : %1CI%9F%BB%FE%B5S%14%EFVZ%B53%19e%CF%A6%CC%0B%5E
2016-08-04 17:19:41 -04:00
Sumit Tiwari
ec358ae079 Bug 1292995 - Replace Iterator() with Object.{values,entries} in services/; r=gps
MozReview-Commit-ID: 3VEOjAJROld

--HG--
extra : rebase_source : 09102ed0ea8831adc1e6fd5973a290d16afcba03
2016-08-08 22:40:23 -04:00
Tom Tromey
5538d692d3 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx

--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06:00
Carsten "Tomcat" Book
8428cd56e3 merge mozilla-inbound to mozilla-central a=merge 2016-07-20 11:20:15 +02:00
Mark Hammond
5d1196dc29 Bug 1279145 - log manager now cleans old Sync and ReadingList log files. r=tcsc
MozReview-Commit-ID: JpispWkvlFZ

--HG--
extra : rebase_source : 10e7339e50e6238e56c06e915fdb148fdbeda79d
2016-07-18 11:46:01 +10:00
Mark Goodwin
73853a0ba3 Bug 1280877 - Prevent collections from being overwritten by outdated signed data r=MattN, r=leplatrem
MozReview-Commit-ID: JI7DEVEW7P6
2016-07-18 19:32:56 +01:00
Ethan Glasser-Camp
7e018723e9 Bug 1282109: update kinto-offline-client.js, r=MattN
MozReview-Commit-ID: BiE4UvlLu6T
2016-07-13 15:09:42 -04:00
Mark Hammond
7332bc6420 Bug 1283379 - have RESTRequest log on channel redirect. r=tcsc
MozReview-Commit-ID: 5QakocdCw7k

--HG--
extra : rebase_source : eb6993058b80493604e98c2621fbae3634d94cae
2016-06-30 17:15:35 +10:00
Ben Kelly
dd3c9e4501 Bug 1279389 P3 Fix OS.File.DirectoryIterator leaks throughout tree. r=yoric 2016-06-28 18:47:55 -07:00
Mark Goodwin
f386fadbc0 Bug 1263602 - Verify kinto collection signatures using the content signature service. r=MattN, r=leplatrem
MozReview-Commit-ID: J6fuSDaW1JR
2016-06-02 09:01:26 +01:00
Mark Goodwin
da244c1539 Bug 1286600 - prevent errors in calls to the CertBlocklist from causing blocklist sync to fail. r=MattN
MozReview-Commit-ID: 42O2QnPQRuj
2016-07-14 21:31:54 +01:00
Mathieu Leplatre
695a9942a4 Bug 1266235 - Use blocklist prefix in preference names. r=MattN
MozReview-Commit-ID: 5aeoiSEMwYw

--HG--
extra : rebase_source : ff4e77c88de58923afe75be2046dcdb98e40ad2f
2016-05-19 12:51:13 +02:00
Mathieu Leplatre
fe3e7d0c4d Bug 1266235 - Rename KintoBlocklist to blocklist-clients. r=mgoodwin
MozReview-Commit-ID: Eus7sHqN6GW

--HG--
rename : services/common/KintoBlocklist.js => services/common/blocklist-clients.js
rename : services/common/tests/unit/test_kintoCertBlocklist.js => services/common/tests/unit/test_blocklist_certificates.js
rename : services/common/tests/unit/test_kintoAddonPluginBlocklist.js => services/common/tests/unit/test_blocklist_clients.js
extra : rebase_source : 4543b62309fd35139087090e1aa2445601d58eaf
2016-04-28 13:24:21 +02:00
Mathieu Leplatre
397e35b6c1 Bug 1266235 - Rename kinto-updater to blocklist-updater. r=mgoodwin
MozReview-Commit-ID: 8bDKbxbIus3

--HG--
rename : services/common/kinto-updater.js => services/common/blocklist-updater.js
rename : services/common/tests/unit/test_kinto_updater.js => services/common/tests/unit/test_blocklist_updater.js
extra : rebase_source : 4d03542a741cdd38bc048f54fea6a752e8114f40
2016-04-21 17:22:01 +02:00
Thom Chiovoloni
45855b9236 Bug 1263280 - Dump a list of addons currently installed when writing the sync error log r=markh
MozReview-Commit-ID: KudJLUYWv1N

--HG--
extra : transplant_source : %98%7F%C9%B6l%0C%84%B0%8B%ACH%23%CC%FF%E6%04A%02-%8C
2016-05-06 14:35:40 -04:00
Wes Kocher
26012d19b7 Backed out 4 changesets (bug 1266235) for test_ev_certs.js failures on pretty much every platform CLOSED TREE
Backed out changeset f684fac95bd9 (bug 1266235)
Backed out changeset f560cba61749 (bug 1266235)
Backed out changeset 5f321f10da1e (bug 1266235)
Backed out changeset 93deaa5641bc (bug 1266235)

--HG--
rename : services/common/blocklist-clients.js => services/common/KintoBlocklist.js
rename : services/common/blocklist-updater.js => services/common/kinto-updater.js
rename : services/common/tests/unit/test_blocklist_clients.js => services/common/tests/unit/test_kintoAddonPluginBlocklist.js
rename : services/common/tests/unit/test_blocklist_certificates.js => services/common/tests/unit/test_kintoCertBlocklist.js
rename : services/common/tests/unit/test_blocklist_updater.js => services/common/tests/unit/test_kinto_updater.js
2016-05-10 13:46:28 -07:00
Mathieu Leplatre
34370ce5a8 Bug 1266235 - Use blocklist prefix in preference names. r=Mattn
MozReview-Commit-ID: 5aeoiSEMwYw

--HG--
extra : amend_source : bb232bb34c7a25abffac36531d5ab4d8e9c6c7af
extra : transplant_source : K%1A1d%EEc%8FY%030NRb%AFD%00.%40U8
2016-04-29 12:48:45 +02:00
Mathieu Leplatre
8c2fad2d33 Bug 1266235 - Rename KintoBlocklist to blocklist-clients,r=mgoodwin
MozReview-Commit-ID: Eus7sHqN6GW

--HG--
rename : services/common/KintoBlocklist.js => services/common/blocklist-clients.js
rename : services/common/tests/unit/test_kintoCertBlocklist.js => services/common/tests/unit/test_blocklist_certificates.js
rename : services/common/tests/unit/test_kintoAddonPluginBlocklist.js => services/common/tests/unit/test_blocklist_clients.js
extra : transplant_source : %2B%5E%DA%B5%96%FB%8E%40%96%C0S%CDU%C3%F4w%80%20%9B%A1
2016-04-28 13:24:21 +02:00
Mathieu Leplatre
012488413a Bug 1266235 - Rename kinto-updater to blocklist-updater,r=mgoodwin
MozReview-Commit-ID: 8bDKbxbIus3

--HG--
rename : services/common/kinto-updater.js => services/common/blocklist-updater.js
rename : services/common/tests/unit/test_kinto_updater.js => services/common/tests/unit/test_blocklist_updater.js
extra : transplant_source : %95%FD%CDf%12%84%F5%AA8%8C%E4CQ%DB%40P%91%EC%C2%B4
2016-04-21 17:22:01 +02:00
Mathieu Leplatre
ffa05b0781 Bug 1268907 - Fix kinto-offline packaging about Buffer. r=mgoodwin, r=MattN
MozReview-Commit-ID: 9vHN2COufQi

--HG--
extra : rebase_source : 7547c221f748720b6cb314c023c25af855208787
2016-05-02 12:45:50 +02:00
Johann Hofmann
a9c1b37d97 Bug 1264914: Make services.kinto.clock_skew_seconds non-absolute. r=mgoodwin,MattN
MozReview-Commit-ID: K7LSRjB3wlU

--HG--
extra : rebase_source : 0f3ffed50a7ca2f6dedd76c0a4e8fbef3a858cc3
2016-04-20 16:37:43 +02:00
Mathieu Leplatre
93af383736 Bug 1257556 - Generalize Kinto blocklist client to addons/plugins/gfx. r=MattN
MozReview-Commit-ID: DkiNF78QTId

--HG--
extra : transplant_source : %90K%5D%89%3AZW%CC%97%FE%BF%D9%CD%A5%F8%18%08%85%B02
2016-04-18 11:38:25 +02:00
Mathieu Leplatre
d2b5a1e1ce Bug 1257556 - Rename KintoBlocklist client. r=MattN
MozReview-Commit-ID: 9qlb0fBxeGn

--HG--
rename : services/common/KintoCertificateBlocklist.js => services/common/KintoBlocklist.js
extra : transplant_source : %EE%C5%95w%D1Rj%7E%AB%B24s%97%BB%91%5E%EE%82%AC%19
2016-04-05 12:11:53 +02:00
Mathieu Leplatre
d5be51a41a Bug 1257533 - Optimize and add safety checks in Kinto updater. r=mgoodwin,MattN
- Skip changes from other bucket
- Leverage ETag to limit bandwidth
- Use setting for collection name
- Add safety check when server is failing. This also fixes Bug 1259145.

MozReview-Commit-ID: 5YSVCrZirzQ

--HG--
extra : rebase_source : b07d0ea491875fd0dffc1bc3f918c8c668738aae
2016-04-15 16:50:51 +02:00
Thom Chiovoloni
6625026d42 Bug 655722 - Rewrite _buildGUIDMap in the sync bookmark engine to use PlacesUtils.promiseBookmarksTree. r=mak
MozReview-Commit-ID: BfcVQEldK6M

--HG--
extra : transplant_source : %21%E4%10%19n%F3%86m%A5%C8%28u%E7q%8E%F8KX/%D4
2016-04-05 16:42:10 -07:00
Mathieu Leplatre
ca88fcd131 Bug 1262389 - Update to kinto.js 2.0. r=mgoodwin,MattN
* Land kinto.js 2.0, with transactions, indexeddb optimizations and incoming-changes hooks for content signing
* Renamed moz-kinto-client.js to kinto-offline-client.js
* Introduced kinto-http-client.js for direct interaction with Kinto HTTP API

MozReview-Commit-ID: 2rOW27cB7wt

--HG--
rename : services/common/moz-kinto-client.js => services/common/kinto-offline-client.js
extra : amend_source : d1fe9291dbec41bae1b4521ab7e64ae4def6f403
2016-04-14 16:07:31 -07:00
Nick Alexander
e90bd4aabb Bug 1256401 - Part 2: Remove references to b2gdroid. r=fabrice
MozReview-Commit-ID: 63yJGdgPbhe

--HG--
extra : rebase_source : 2256e0a12588703a83f4cba06971231ac3c64592
extra : amend_source : 1f35a04191f37225986bd7ff4d0b6b2c34a71b05
extra : histedit_source : 82d351700936c8e1297eeca91ce00f96340e2f2c
2016-03-18 14:41:51 -07:00
Tooru Fujisawa
50608d5d55 Bug 1256088 - Merge mock app-info implementation into AppInfo.jsm. r=gps 2016-03-16 16:58:29 +09:00
Mark Goodwin
985802557a Bug 1224531 - Provide a mechanism for the updater to drive kinto collection sync r=rnewman,mossop
There are two parts to this change. The first is a module to drive kinto
collection sync. This gives server-provided last-update times to each module
managing collection information so that data is only fetched when updates are
necessary. This also keeps track of when pings last took place (for future use)
and any apparent difference between client and server clock (we need this later
for the content signing work).

Currently only one module (the kinto version of the OneCRL client) consumes this
information, though more will follow.

The second is a minor change to nsBlocklistService.js to ensure that this ping
takes place whenever the existing blocklist ping happens.

MozReview-Commit-ID: 7SN03AOJ4Wc
2016-03-15 08:55:23 +00:00
Mark Hammond
306ad15e8f Bug 1251057 - enable debug logging for rest.js requests and responses. r=adw 2016-03-10 17:20:29 +11:00
Mark Hammond
0f691c4a60 Bug 1243594 (part 3) - leave the utf-8 encoding of the payload to rest.js instead of directly in loop. r=Standard8 2016-02-26 15:46:30 +11:00
Mark Hammond
bed56e0809 Bug 1243594 (part 2) - have rest.js automatically encode the request body as utf-8. r=gfritzsche 2016-02-26 15:46:30 +11:00
Carsten "Tomcat" Book
bbe3d019dc merge mozilla-inbound to mozilla-central a=merge 2016-02-11 11:52:01 +01:00
Mark Goodwin
266741693f Bug 1227956 - Implement Kinto.js OneCRL client r=rnewman
--HG--
extra : rebase_source : 7f2d174df2b1e9971ddf8f9ed211b5b0e7ec2b39
2016-02-09 18:51:08 +00:00
Mark Banner
cd2ee45865 Bug 1246938 - Allow extra headers to be passed via hawk requests. r=markh
--HG--
extra : commitid : 3QxWpv2vbXh
2016-02-10 11:21:26 +00:00
Mark Goodwin
a96f295645 Bug 1244776 - Update moz-kinto-client.js to include recent Kinto.js changes r=rnewman
Please see the Kinto.js PR for the storage adapter changes:
https://github.com/Kinto/kinto.js/pull/303

Additions and changes to the Firefox storage adapter tests have been made
accordingly.
2016-02-01 16:11:48 +00:00
Hector Zhao
0067cc1e04 Bug 1242965 - Make services/common eslintable. r=rnewman 2016-01-28 15:42:16 +08:00
brendan
5a94abc3f4 Bug 1237983 - Investigate and remove the Bagheera Client Implementation. r=gfritzsche 2016-01-24 22:33:52 -05:00
Carsten "Tomcat" Book
0ce9718a21 Backed out changeset 1686b901daa4 (bug 1237983) for bustage 2016-01-28 09:36:00 +01:00
brendan
9aceac8c13 Bug 1237983 - Investigate and remove the Bagheera Client Implementation. r=gfritzsche 2016-01-24 22:33:52 -05:00
Christoph Kerschbaumer
150e86404a Bug 1230221 - Convert JS callsites to use asyncOpen2 within services/ (r=sicking) 2016-01-15 11:39:12 -08:00
Mark Hammond
ad3ae4193a Bug 1236383 (part 1) - remove and rework some Sync/FxA telemetry probes. r=gfritzsche/kitcambridge 2016-01-12 12:21:27 +11:00
Anup Kumar
64a1cfc0a0 Bug 1234734 - Replace CommonUtils.stackTrace() with Log.stackTrace(). r=markh
--HG--
rename : services/common/tests/unit/test_utils_stackTrace.js => toolkit/modules/tests/xpcshell/test_Log_stackTrace.js
2016-01-07 20:44:00 -05:00
Anup Kumar
c14571be80 Bug 1003204: Removed test_utils_exceptionStr.js and its entry in xpcshell.ini r=gfritzsche 2015-12-16 09:46:00 +01:00
Anup Kumar
8ae68951a8 Bug 1003204: Removed CommonUtils.exceptionStr() in services/common/ r=gfritzsche 2015-12-16 09:43:00 +01:00
Shu-yu Guo
1768759efb Bug 1220564 - Update chrome code uses of genexprs and legacy comprehensions. (r=billm) 2016-01-06 16:02:16 -08:00
Rémy Hubscher
3adda86da3 Bug 1227877 — loadDump support for Firefox Storage adapter. (r=rnewman) 2015-12-14 11:01:40 +00:00
Wes Kocher
d2615415f5 Backed out 4 changesets (bug 1230221, bug 1230220, bug 1229890) for m-e10s(2) permafails in test_window_open_close.html CLOSED TREE
Backed out changeset a1cd28ddbfa2 (bug 1230221)
Backed out changeset 7e89f5020ac7 (bug 1230220)
Backed out changeset 91f6e72fa9f4 (bug 1229890)
Backed out changeset 7e717a810420 (bug 1229890)

--HG--
extra : commitid : BinvCloSNFx
extra : amend_source : 94dfb9ebf66c6e73b1b407e93d8475724d2ae7a2
2015-12-04 15:58:40 -08:00
Christoph Kerschbaumer
28da77fee9 Bug 1230221 - Convert JS callsites to use asyncOpen2 within services/ (r=sicking) 2015-12-04 09:40:11 -08:00
Tooru Fujisawa
17d87da8ac Bug 1217077 - Remove for-each from services/. r=gps
--HG--
extra : commitid : Fyer74kcwGc
2015-10-19 03:52:58 +09:00
Mark Goodwin
5d07d0d9b5 Bug 1216749 - Additional kinto client tests (r=rnewman) 2015-10-30 09:02:01 +00:00
Mark Goodwin
199296f744 Bug 1216749 - Land the Firefox Kinto.js client (r=rnewman)
Kinto.js lives here: https://github.com/Kinto/kinto.js - there is a set of files
(currently in a branch) that allow creation of the jsm included in this patch.

The branch is here: https://github.com/Kinto/kinto.js/tree/212-firefox-entry-point

To create the jsm, run 'npm run dist-fx' in the kinto.js dir
2015-10-30 09:01:58 +00:00
Mark Hammond
f8d9dac2f5 Bug 1214076 - allow TokenServerClient errors to be JSON.stringify'd. r=rnewman 2015-10-15 08:57:31 +11:00
Carsten "Tomcat" Book
08997000eb Backed out 2 changesets (bug 1202902) to recking bug 1202902 to be able to reopen inbound on a CLOSED TREE
Backed out changeset 647025383676 (bug 1202902)
Backed out changeset d70c7fe532c6 (bug 1202902)
2015-10-07 14:03:21 +02:00
Carsten "Tomcat" Book
e7ef778c9d Backed out 1 changesets (bug 1202902) for causing merge conflicts to mozilla-central
Backed out changeset cfc1820361f5 (bug 1202902)

--HG--
extra : rebase_source : 5d3db72337754bc7ab0ed0c30b2896100411ff92
2015-10-07 12:13:45 +02:00
Shu-yu Guo
d06b6030f6 Bug 1202902 - Scripted fix the world. 2015-10-06 14:00:31 -07:00
Tooru Fujisawa
95e75e96f8 Bug 1207496 - Part 1: Remove use of expression closure from services/common/. r=gps
--HG--
extra : commitid : EeWW6zhKp9t
extra : rebase_source : b23def2c39cad03dd5e4b3a3b440e43d3b343b7a
2015-09-23 18:40:52 +09:00
Mark Hammond
e348d6bbbb Bug 1205111 - return a transient error on 401 fetching info/collections using FxA. r=rnewman 2015-09-28 17:21:42 +10:00
Kit Cambridge
053d626c80 Bug 1124428 - Add telemetry probes for FxA-related authentication issues. r=markh,vladan
--HG--
extra : commitid : AgENo3CiQTo
extra : rebase_source : 502d7dd6ac9e0931119df9ee26ab5c10fe7aa037
2015-09-15 18:18:04 -07:00
Shu-yu Guo
64db2267cf Bug 1202902 - Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff) 2015-09-15 11:19:45 -07:00
Mark Hammond
a061eb73d6 Bug 1195603 - prevent Sync from blocking app shutdown. r=rnewman 2015-08-31 11:57:25 +10:00
Nick Alexander
d9cf646bc2 Bug 1195388 - Pre: Include services-* resource:// registrations in b2gdroid. r=fabrice
--HG--
extra : commitid : 7EAmRzwzO51
extra : rebase_source : 25fb2dbf28818ece7b86f0b0e144cdde26ce835e
2015-08-25 11:28:41 -07:00
Gregory Szorc
3e949ee8fe Bug 1176642 - Use absolute_import in mach_commands.py files; r=glandium
This removes ambiguity as to which modules are being imported, making
import slightly faster as Python doesn't need to test so many
directories for file presence.

All files should already be using absolute imports because mach command
modules aren't imported to the package they belong to: they instead
belong to the "mach" package. So relative imports shouldn't have been
used.

--HG--
extra : commitid : 6tFME1KKfTD
extra : rebase_source : 78728f82f5487281620e00c2a8004cd5e1968087
2015-06-21 17:39:09 -07:00
Gregory Szorc
a19bee3a08 Bug 1176642 - Remove unused imports; r=glandium
--HG--
extra : commitid : IZ7JkH4GKW4
extra : rebase_source : 4c3301c5c353be8afed407df4a003a9cac4583e8
2015-06-25 12:16:38 -07:00
Fernando Jimenez
e428265be2 Bug 1174191 - ./mach storage-server is not working. r=rnewman 2015-06-12 19:04:20 +02:00
Gijs Kruitbosch
57f1d898a3 Bug 1166406 - use Object.create in sync code, r=rnewman
--HG--
extra : rebase_source : 4b7915d265d0433bbbea2d74ed3e512a3d90be72
2015-05-19 19:45:29 +01:00
Mark Hammond
e960378c4d Bug 1152116 - prevent Sync from spamming the browser console. r=rnewman 2015-05-18 17:34:22 +10:00
Mark Hammond
3c26a0a19f Bug 1148980 - have success and error log files for Sync and ReadingList based on whether an error record was written to the log. r=rnewman 2015-05-18 17:34:22 +10:00
ziyunfei
e1db0f779e Bug 1102219 - Part 4: Replace String.prototype.contains with String.prototype.includes in chrome code. r=till 2015-04-30 00:32:05 +09:00
Mark Hammond
87d69c9432 Bug 1153691 - intTestLogging() now adds timestamps and supports param substitution. r=rnewman 2015-04-22 09:27:43 +10:00
Mark Hammond
5eda97b0fc Bug 1152193 - ensure sync/readinglist log directory exists. r=rnewman 2015-04-20 10:00:03 +10:00
Philip Chee
3a0ac45225 Bug 1139958 - Start using AppConstants.jsm in Toolkit r=mossop 2015-04-07 16:09:49 +08:00
Sebastian Hengst
38474724f0 Bug 1151184 - Don't run test_load_modules and bagheera* tests for builds without MOZ_SERVICES_HEALTHREPORT. r=rnewman 2015-04-04 17:37:30 +02:00
Carsten "Tomcat" Book
d03ee825c7 merge mozilla-inbound to mozilla-central a=merge 2015-03-31 14:43:50 +02:00
Richard Newman
cd74b28c30 Bug 1148990 - Don't ship bagheeraclient.js or tokenserverclient.js on Android. r=gps
Neither of these clients are used on Android, and the Bagheera client isn't
used anywhere unless Firefox Health Report is enabled.

This patch conditionalizes their inclusion in services-common, makes the tests
aware, and also tests that they are _not_ present on Android.

Note that some unused test helpers are also omitted.
2015-03-30 15:02:51 -07:00
Richard Newman
7437753aa4 Bug 1148933 - Remove old storageservice.js and tests. r=gps 2015-03-30 15:02:51 -07:00
Wes Kocher
63f81ffac1 Backed out changeset 9d80f8548ac9 (bug 1148933) for b2g xpcshell bustage CLOSED TREE
--HG--
extra : amend_source : 7df4682dceccd5e785a8b45d50761e87713c7fe9
2015-03-30 18:00:10 -07:00
Wes Kocher
def703fa5e Backed out changeset b5e71f873231 (bug 1148990) 2015-03-30 18:00:09 -07:00
Richard Newman
067db356ca Bug 1148990 - Don't ship bagheeraclient.js or tokenserverclient.js on Android. r=gps
Neither of these clients are used on Android, and the Bagheera client isn't
used anywhere unless Firefox Health Report is enabled.

This patch conditionalizes their inclusion in services-common, makes the tests
aware, and also tests that they are _not_ present on Android.

Note that some unused test helpers are also omitted.
2015-03-30 15:02:51 -07:00
Richard Newman
884ee4f1ee Bug 1148933 - Remove old storageservice.js and tests. r=gps 2015-03-30 15:02:51 -07:00
Andrew McCreight
46dfeaba0b Bug 1148070 - Change nsIClassInfo::getHelperForLanguage() to getScriptableHelper(). r=bholley 2015-03-29 07:52:54 -07:00
Hiroyuki Ikezoe
c06c81c0ef Bug 1139254 - Use MockRegistrar in services. r=gps 2015-03-03 19:46:00 -05:00
Mike Hommey
525ae5030d Bug 1147283 - Replace mozpack.path with mozpath. r=mshal
Back when mozpack.path was added, it was used as:

  import mozpack.path
  mozpack.path.func()

Nowadays, the common idiom is:

  import mozpack.path as mozpath
  mozpath.func()

because it's shorter.

$ git grep mozpath\\. | wc -l
423
$ git grep mozpack.path\\. | wc -l
123

This change was done with:
$ git grep -l mozpack.path\\. | xargs sed -i 's/mozpack\.path\./mozpath./g'
$ git grep -l 'import mozpack.path$' | xargs sed -i 's/import mozpack.path$/\0 as mozpath/'
$ (pat='import mozpack.path as mozpath'; git grep -l "$pat" | xargs sed -i "1,/$pat/b;/$pat/d")
2015-03-27 08:13:16 +09:00
Mark Hammond
a558a2ad93 Bug 1146068 (part 2) - fix log manager to automatically set log level for all logs under its control. r=adw 2015-03-25 16:28:18 +11:00
Geoff Brown
13431d9251 Bug 1140148 - Update xpcshell test manifests for Android 4.3 emulator; r=dminor 2015-03-19 11:00:58 -06:00
Wes Kocher
b9799a40ef Merge m-c to fx-team a=merge CLOSED TREE 2015-03-02 13:07:53 -08:00
Nigel Babu
19d4481b2a Backout Bug 1132771 for spidermonkey build bustage on CLOSED TREE 2015-03-02 17:13:05 +05:30
Gregory Szorc
3ee0ca43a1 Bug 1132771 - Define some bug components; r=glandium
This patch defines bug components for code that I have historically
touched.

--HG--
extra : rebase_source : 738916cf41ac11c094f5c15667925a7221e6446e
extra : histedit_source : 0f7d5cd869a7b239def58877a8858159219cdf59
2015-02-26 11:43:45 -08:00
Tooru Fujisawa
4d59d774bf Bug 1108382 - Part 11: Do not use non-standard flag argument of String.prototype.replace in services/. r=rnewman 2015-03-01 09:51:33 +09:00
Gregory Szorc
eaf5064744 Bug 1132771 - Define some bug components; r=glandium
This patch defines bug components for code that I have historically
touched.

--HG--
extra : rebase_source : 9e670da52247a8feb149e6419e8b488e84f93333
2015-02-26 11:43:45 -08:00
Mark Hammond
718ce655b4 Bug 1131410 followup - addressing review comments I missed in part1, r=adw/rnewman 2015-02-26 18:48:11 +11:00
Mark Hammond
27f4146bba Bug 1131410 - Extract sync's log management so it can be reused by the reading-list back-end. r=adw 2015-02-17 22:06:00 +01:00
Carsten "Tomcat" Book
f0c43be7a0 Backed out changeset cd1f981b5e58 (bug 1131410) for XPC Bustage 2015-02-25 10:41:23 +01:00
Mark Hammond
fbda17121a Bug 1131410 - Extract sync's log management so it can be reused by the reading-list back-end. r=adw 2015-02-25 18:54:59 +11:00
Chris Peterson
79115c2bac Bug 1133284 - Remove nonstandard expression closures from services/sync. r=rnewman 2015-01-24 23:50:01 -08:00
Brian O'Keefe
1fa0eaa700 Bug 870366 - Part 2: Move PREF_JS_EXPORTS to moz.build (easy moves). r=gps 2015-01-20 13:07:03 -05:00
Christoph Kerschbaumer
7589c49614 Bug 1087741: Make JS callers of ios.newChannel call ios.newChannel2 in services/ (r=rnewman,hskupin) 2014-10-24 15:22:14 -07:00
Mark Hammond
296849b1e3 Bug 1121325 - improve sync logging with FxA. r=rnewman/ckarlof 2015-01-28 10:11:08 +11:00
Mark Hammond
5a5728ae2f Bug 1121329 - fixes to promise handling in FxA and Hawk. r=ckarlof 2015-01-28 10:11:08 +11:00
Richard Newman
5b7f5d1661 Bug 951480 - Disable test_tokenserverclient on Android. a=test-only 2015-01-24 21:38:44 -08:00
Mark Banner
8826f41cbe Bug 1099085 - HawkClient, HawkRequest and RESTRequest should support PATCH requests. r=ckarlof 2014-11-17 22:12:26 +00:00
Mike de Boer
a2c956ceba Bug 1089547: simplify LoopRooms implementation, add support for events. r=Standard8 2014-10-29 14:28:42 +01:00
Georg Fritzsche
6527ebfd28 Bug 1064333 - Migrate the FHR client id to the datareporting service. r=gps 2014-10-17 17:24:04 +02:00
Carsten "Tomcat" Book
4dad62acf8 Backed out changeset 5513b60463b8 (bug 1064333) for XPCshell test failures on a CLOSED TREE 2014-10-21 14:38:40 +02:00
Georg Fritzsche
6ef325b0bf Bug 1064333 - Migrate the FHR client id to the datareporting service. r=gps 2014-10-15 17:34:53 +02:00
Wes Kocher
60a12fdf28 Backed out 4 changesets (bug 1064333) for XPCShell bustage
Backed out changeset 378314f2892c (bug 1064333)
Backed out changeset ccb8a2ac9746 (bug 1064333)
Backed out changeset 3466ed3b9b61 (bug 1064333)
Backed out changeset 553c113c8f4e (bug 1064333)
2014-10-16 13:37:37 -07:00
Georg Fritzsche
0e08e7fd64 Bug 1064333 - Migrate the FHR client id to the datareporting service. r=gps 2014-10-16 20:11:03 +02:00
Carsten "Tomcat" Book
517cd96d4c Backed out changeset 735f5c30d397 (bug 1064333) for XPC Bustage on a CLOSED TREE
--HG--
extra : amend_source : 8b12237f285b03acfe6e18cccc9f8480c6d385c2
2014-10-16 15:03:13 +02:00
Georg Fritzsche
8594bb83b2 Bug 1064333 - Migrate the FHR client id to the datareporting service. r=gps 2014-10-15 17:34:53 +02:00
Andrew Halberstadt
d292ee73f1 Bug 1066735 - Remove root b2g and android specific xpcshell manifests, r=chmanchester 2014-10-07 18:18:28 -04:00
Ryan VanderMeulen
8a931577a4 Backed out changesets b08e57dbef4e and 1049cfbf3426 (bug 947044) for various regressions. 2014-09-25 14:32:43 -04:00
Nick Fitzgerald
51675a240f Bug 947044 - Part 2: Fix tests that check ReferenceError's message. r=gavin 2014-09-22 16:13:00 +02:00
Shu-yu Guo
59ccd2fecb Bug 1001090 - Part 5: Fix errors in tests throughout the tree. (r=robcee,gavin) 2014-09-15 16:30:47 -07:00
Florian Quèze
528c7343e7 Bug 838458 - Fix 'rest.js - setting a property that has only a getter' warnings, r=rnewman. 2014-08-27 16:52:21 +02:00
Gregory Szorc
8ea5c183d9 Bug 1055102 - Properly handle Unicode in Bagheera payloads; r=bsmedberg
It was observed that FHR was sending invalid JSON payloads to the
server. Specifically, JSON payloads contained invalid Unicode strings.

Investigation revealed that the culprint was CommonUtils.convertString()
silently swallowing high bytes. When the Bagheera client went to gzip
the JSON payload, the input buffer into gzip was missing high bytes.

This patch changes the bagheera client to UTF-8 encode strings before
gzip, thus ensuring all data is preserved. A corresponding change was
also added to the mock bagheera server implementation.

Alternatively, we could have changed CommonUtils.convertString() to
be high byte aware. However, many consumers rely on this function.
This patch is written with the intent of being uplifted and the change
performed is targeted at the specific problem.

Tests for Unicode preserving behavior have been added to both the
generic Bagheera client and to FHR. The latter test is arguably
not necessary, but peace of mind is a good thing, especially with
FHR.

See also bug 915850.

--HG--
extra : rebase_source : 4efddea7767c2e5f8cf19df247c3aba07c40eec6
extra : amend_source : ae3b6d89efa54fc9ed1794404476622946ad4b22
2014-08-19 09:12:12 -07:00
Nathan Froyd
b600fe311e Bug 1045617 followup - remove dummy mach command DONTBUILD; r=me 2014-08-06 12:28:37 -04:00
Nathan Froyd
a9ceaeb4dd Bug 1045617 - move services's run_server.py Makefile rules into mach; r=gps 2014-07-30 15:44:13 -04:00
Nathan Froyd
cd91df4210 Bug 1054476 - move INSTALL_TARGETS in services/ Makefiles to EXTRA_{PP_,}JS_MODULES; r=gps 2014-07-28 15:24:01 -04:00
Nathan Froyd
4c895ecac4 Bug 1054476 - use PREF_JS_EXPORTS in services/ Makefiles; r=gps 2014-07-28 14:42:26 -04:00
Birunthan Mohanathas
c8bac35511 Bug 1048989 - Fix 'useless expression' warnings with MERGED_COMPONENT. r=gps 2014-08-07 21:52:05 -07:00
Steve Workman
55ac136605 Bug 982816 - Remove extra calls to nextTest in test_hawkrequest.js r=ckarlof 2014-07-08 11:44:03 -07:00
Gregory Szorc
25170257c3 Bug 1033836 - Convert TESTING_JS_MODULES to moz.build; r=glandium
--HG--
extra : rebase_source : 1cd9e402c507260358af7a93c6fb2fc91c24994b
2014-07-02 16:43:41 -07:00
Gregory Szorc
04d5343419 Bug 1033836 - Rename services-common to services/common; rs=rnewman
The upcoming build system patches don't support hypthens in path names.
Changing this for that reason is kind of silly, but it's the easiest
way. Besides, nothing else uses hyphens in directory names.

--HG--
extra : rebase_source : 42dda2b1f16a3c0bfe17397a70092362e400530f
2014-07-02 16:49:36 -07:00
Fernando Jiménez
fce1090b0d Bug 1027595 - TypeError: deriveHawkCredentials is not a function after bug 1020859. r=jedp 2014-06-21 07:43:39 +01:00
Mark Banner
59a1c3ac3e Bug 1020859 Part 1 - Make HawkClient return all the response details for a request, and make deriveHawkCredentials common code. r=jparsons 2014-06-18 10:42:15 +01:00