Commit Graph

224 Commits

Author SHA1 Message Date
Kit Cambridge
a6d5a040d9 Bug 1257821 - Remove the authenticated aesgcm128 content coding scheme. r=mt,marco
MozReview-Commit-ID: 5pX2GHJ2lNz

--HG--
extra : rebase_source : 8747786a915e0adb3be7555dd1648e3e03b4fbf0
2016-03-22 19:20:36 -07:00
Kit Cambridge
f57e60c641 Bug 1247089 - Log Web Push decryption errors. r=bkelly
MozReview-Commit-ID: HEEq8IPlwBx

--HG--
extra : rebase_source : 8501836fa322b3a09ffec21e83fdb32e4aa3abf5
2016-03-28 13:33:20 -07:00
Kit Cambridge
18c5c296ef Bug 1246341 - Add a test for push event error reporting. r=dragana
MozReview-Commit-ID: LABOJnYtpD5

--HG--
extra : rebase_source : 86c27b8a2deb388cdb34a82aebd12b042477acb5
2016-03-28 11:40:58 -07:00
Kit Cambridge
d97d284c24 Bug 1246341 - Include status codes in "ack" and "unregister" requests. r=dragana
MozReview-Commit-ID: Gsh3FhTfvkX

--HG--
extra : rebase_source : 94b9afcf006a6201f01875df1aae20c8bb52fb76
2016-03-28 12:29:25 -07:00
Kit Cambridge
8943858ebf Bug 1253831 - Don't check actual intervals in the Push backoff test. r=wchen
MozReview-Commit-ID: CUESwtv58LJ

--HG--
extra : rebase_source : 600b8baeeea6334726c88bf1cba64b2d5635c405
2016-03-19 15:29:11 -07:00
Kit Cambridge
bc0b536de1 Bug 1257821 - Support the new aesgcm content encoding scheme. r=mt
MozReview-Commit-ID: IPNXletzJRK

--HG--
extra : rebase_source : 3593624d3513a0ccc7422bfeefe5c85dca37541a
2016-03-18 09:01:50 -07:00
Kit Cambridge
755fc071a9 Bug 1258883 - Add a way to replace the entire Push service in tests. r=wchen
MozReview-Commit-ID: ExJPShvXL5L

--HG--
extra : rebase_source : acafdaf81a8c47d811772dfabc24e001a69d429b
2016-03-22 17:34:41 -07:00
Kit Cambridge
896fb82ab8 Bug 1258145 - Remove waitForPromise from the xpcshell tests. r=wchen
MozReview-Commit-ID: 6dX63gyXw07

--HG--
extra : rebase_source : b5638140200403f4441ab2a60d69b3baae6d6de6
2016-03-19 14:57:15 -07:00
Ryan VanderMeulen
dd9dced81d Merge inbound to m-c. a=merge 2016-03-19 11:22:28 -04:00
Ryan VanderMeulen
d37d8fbb9a Bug 1257708 - Move dom/push/test back into mochitest-plain instead of a separate test suite. 2016-03-19 11:02:04 -04:00
William Chen
1d955fb568 Bug 1164432 - Update test_try_registering_offline_disabled.html to use mock push server. r=kitcambridge 2016-03-19 00:35:57 -07:00
Ryan VanderMeulen
ae58ec8c78 Backed out changeset 7e63f8cd76bb (bug 1164432) for test_try_registering_offline_disabled.html failures. 2016-03-19 00:01:19 -04:00
William Chen
a07586e88d Bug 1164432 - Update test_try_registering_offline_disabled.html to use mock push server. r=kit 2016-03-18 00:20:00 -04:00
Kit Cambridge
fa6e8e2743 Bug 1257405 - Increase auth secret length to 16 octets. r=mt
MozReview-Commit-ID: 3oiYMgQHckk

--HG--
extra : rebase_source : b15e184c0ffd3845eaf913ec5cdb654b9a7a1932
2016-03-16 19:53:19 -07:00
William Chen
6f3a1d7c9e Bug 1244816 - Create PushService mock for mochitests backed by a mock web socket. r=kitcambridge 2016-03-17 17:11:22 -07:00
Wes Kocher
0fbf6c1476 merge inbound to m-c a=merge
MozReview-Commit-ID: BHxDQF6gIe3
2016-03-08 16:00:45 -08:00
vladikoff
5ceebef356 Bug 1247786 - Add push subscription to device registration r=kitcambridge,markh
MozReview-Commit-ID: 40Tt8sJPYrr

--HG--
extra : rebase_source : e80d3230a7a38e2b28c736cb0188c60be1d6a871
2016-03-07 00:00:34 -05:00
Mark Hammond
61b041057e Bug 1252290 - load xpcom services registered with the category manager as being able to handle push notifications before delivering them. r=kitcambridge 2016-03-07 16:46:10 +11:00
Kit Cambridge
f82589cbd1 Bug 1243856 - Remove alarms from the Push WebSocket backend. r=dragana
MozReview-Commit-ID: c1P4xK8txJ

--HG--
extra : rebase_source : 879c96a6e3d7a691b8e377d24644e5a1888a2c75
extra : source : a8e2c9ff57a72a4810453643a571a42c96b6a10c
2016-02-03 15:27:34 -08:00
Kit Cambridge
d2fcfdda5d Bug 1253438 - Expose Push observer notification topics. r=markh
MozReview-Commit-ID: HublNSAD3NY

--HG--
extra : rebase_source : ca89fad6bfafa403e97c1e1defc4d3a0673af430
2016-03-03 14:37:10 -08:00
J. Ryan Stinnett
2a55d065b7 Bug 1238160 - Rename OriginAttributes.mInBrowser and associated methods. r=bz,mayhemer
This change renames OriginAttributes.mInBrowser to mInIsolatedMozBrowser and
nsIPrincipal::GetIsInBrowserElement to GetIsInIsolatedMozBrowserElement.  Other
methods that pass these values around also have name changes.

Tokens such as "inBrowser" have previously been serialized into cache keys, used
as DB column names, stored in app registries, etc.  No changes are made to any
serialization formats.  Only runtime method and variable names are updated.

No behavior changes are made in this patch, so some renamed methods may have
nonsensical implementations.  These are corrected in subsequent patches
focused on behavior.

MozReview-Commit-ID: 66HfMlsXFLs
2016-03-02 10:35:56 -06:00
Ehsan Akhgari
119e7f4cad Bug 1232029 - Set some prefs that some tests rely on explicitly; r=bkelly 2016-03-01 10:09:06 -05:00
Ehsan Akhgari
8a0731fdde Bug 1251875 - Part 1: Remove the dom.serviceWorkers.interception.enabled pref; r=bkelly 2016-03-01 09:16:38 -05:00
Kit Cambridge
10df43f248 Bug 1250266 - Always send a TTL in the Push mochitests. r=benbangert
MozReview-Commit-ID: 4hoBveTY2pE

--HG--
extra : rebase_source : a1728e6b23c5852d1ca2977fb9d150891568791d
2016-02-22 11:54:54 -08:00
Kit Cambridge
ff6fdbef17 Bug 1246073 - Fix unique constraint errors in the H2 backend when resubscribing. r=dragana
MozReview-Commit-ID: DciQIx9T99U

--HG--
extra : rebase_source : 4d9c3a40626280bdada21e58c3112b70b3ac5b2d
2016-02-04 20:17:07 -08:00
Nick Alexander
5f7db00eeb No bug - Use default skip-if. r=me
We want to change this to run these tests on Fennec (but not b2gdroid);
this'll make it easier.  In addition, this makes it easier to rebase
Fennec Push patches that touch this file.

MozReview-Commit-ID: 97UftkziZ4A
2016-02-15 09:54:23 -08:00
Marco Bonardo
d1f0a04370 Bug 1243778 - PushRecord::getLastVisit cannot rely on the Places url index anymore. r=kitcambridge
--HG--
extra : commitid : 4zr7xfJixhU
extra : rebase_source : b3fa86b314d338b2ee0fc846d212ba6bb6c2ab0c
2016-02-08 14:42:07 +01:00
Kit Cambridge
efe23eadc2 Back out 2 changesets (bug 1243856) for intermittent xpcshell failures on a CLOSED TREE.
--HG--
extra : commitid : HOS6utihBe9
2016-02-05 22:39:23 -08:00
Kit Cambridge
7bdf56f6bd Bug 1243856 - Remove alarms from the Push WebSocket backend. r=dragana
--HG--
extra : commitid : BFuMZVMSDs0
extra : rebase_source : 072f03fc57886b4fac2b3727c8258e0177960127
2016-02-03 15:27:34 -08:00
Kit Cambridge
6a09c44325 Bug 1219064 - Add test for extendable pushsubscriptionchange event. r=mt
--HG--
extra : commitid : 11uVDDnvoeE
extra : rebase_source : 04651f9d10fe23b719800e0cf31174ba0239fd5e
2016-01-28 19:26:17 -08:00
Kit Cambridge
d977630d47 Bug 1243781 - Push methods called from a worker should reject with a DOMException. r=mt
--HG--
extra : commitid : GyMrfLbnMVY
extra : rebase_source : a68422c66ede9f3eaca14de1d966be75ebd622b9
2016-01-28 08:23:29 -08:00
Kit Cambridge
3439243de8 Bug 1191931, Part 2 - Test resubscribing from a worker. r=mt
--HG--
extra : commitid : 6ZboHyRd5dR
extra : rebase_source : 074381c7b5133f7c4f37ab660cfd7afa54a23c65
2016-01-28 08:06:32 -08:00
Kit Cambridge
02f444f5c0 Bug 1191931, Part 1 - Use tasks in the Push subscription tests. r=mt
--HG--
extra : commitid : EAUs5BX5o9E
extra : rebase_source : 4590d5d3a08ff89b35c9c237a910e8e4690c80ba
2016-01-28 07:57:42 -08:00
Paolo Amadini
8b8676204b Bug 989960 - Unhandled rejections in DOM Promises should cause xpcshell tests to fail. r=Yoric
--HG--
extra : commitid : yWjnDGhk9j
extra : rebase_source : 24228660defd6971a621d52eee0b79be823c6926
extra : amend_source : ef8de24265fa9026b0f764a63453b816442f7232
extra : source : 3958782fe187026cbc3755ad6eae6920e67fa7d2
2016-02-03 12:58:03 +00:00
Wes Kocher
1b65a8ee2f Backed out changeset e8148cda7d85 (bug 989960) for xpcshell bustage
--HG--
extra : commitid : Bxwy5tzArNN
extra : rebase_source : a15513777534e54d05fda5037f24e15ac089b313
2016-02-01 08:25:19 -08:00
Carsten "Tomcat" Book
75413d36fe Merge mozilla-central to fx-team 2016-02-01 16:26:01 +01:00
Carsten "Tomcat" Book
9a95326890 Backed out changeset 02bcedf966fd (bug 1191931) for still failing push perma failure 2016-02-01 12:41:03 +01:00
Carsten "Tomcat" Book
6f89c9107b Backed out changeset 6df33c3ef63b (bug 1191931) 2016-02-01 12:40:38 +01:00
Carsten "Tomcat" Book
0cc03eb73c Backed out changeset 6d13649d2f01 (bug 1243781) 2016-02-01 12:40:36 +01:00
Carsten "Tomcat" Book
dec75fcac9 Backed out changeset eaa49fbb1bc2 (bug 1219064) for perma failures in test_data.html 2016-02-01 10:06:43 +01:00
Paolo Amadini
ecd744bdef Bug 989960 - Unhandled rejections in DOM Promises should cause xpcshell tests to fail. r=Yoric
--HG--
extra : commitid : 6aGIHyyYqSo
extra : rebase_source : 38fbf5e49d06970555a088c5ea3f8379e2064767
extra : source : 3958782fe187026cbc3755ad6eae6920e67fa7d2
2016-01-30 18:53:56 +00:00
Kit Cambridge
b66b3437fe Bug 1219064 - Add test for extendable pushsubscriptionchange event. r=mt
--HG--
extra : commitid : lQLs1WCMV3
extra : rebase_source : d12d9e7fde179d4135c2a1b224e50e75b61dc6ba
2016-01-28 19:26:17 -08:00
Kit Cambridge
cb042fa9d8 Bug 1243781 - Push methods called from a worker should reject with a DOMException. r=mt
--HG--
extra : commitid : 8agVK4llzMA
extra : rebase_source : 9f646dee24cc980bef4b01a86550e4e0f12bba14
2016-01-28 08:23:29 -08:00
Kit Cambridge
79cd67d0dc Bug 1191931, Part 2 - Test resubscribing from a worker. r=mt
--HG--
extra : commitid : KDSIPXbjSMK
extra : rebase_source : 11e26748ef2f3762e3b8c046e4eef4a477562369
2016-01-28 08:06:32 -08:00
Kit Cambridge
f7a0799918 Bug 1191931, Part 1 - Use tasks in the Push subscription tests. r=mt
--HG--
extra : commitid : 5Pl1YQzsI9W
extra : rebase_source : d7acb5a8841fe60fa3aec5618f687da74ab0ed9a
2016-01-28 07:57:42 -08:00
Kit Cambridge
a2a02af8bf Bug 1239584, Part 3 - Update tests. r=dragana
--HG--
extra : commitid : KIDc3UHjz1N
extra : rebase_source : 9eccff6802a9453cfe5b3b318d38d13f1aab8a09
2016-01-13 22:26:57 -07:00
Kit Cambridge
f398300afc Back out out 3 changesets (bug 1239584) for B2G build failures on a CLOSED TREE.
--HG--
extra : commitid : 74RywJW7UVo
extra : amend_source : 2088096e01cb7b6fda50c87f05d427cd79147554
2016-01-22 11:06:14 -08:00
Kit Cambridge
555408c01b Bug 1239584, Part 3 - Update tests. r=dragana
--HG--
extra : commitid : JbCjwPZWvMU
extra : rebase_source : 4c2e62fd4029ed5b5b7df4e0a6fc96404cc40845
2016-01-13 22:26:57 -07:00
Kit Cambridge
0333c16142 Bug 1239558 - Exempt system Push subscriptions from quota and permissions checks. r=dragana
--HG--
extra : commitid : 6weiBkKPMVj
extra : rebase_source : b5d6479902725a37c5b212bc4b23dc8296f34c9a
2015-12-16 09:21:22 -08:00
Kit Cambridge
1c0dc1a969 Bug 1205137 - Add a PushSubscription serializer. r=mt,smaug
--HG--
extra : commitid : F5xjqIFcach
extra : rebase_source : 61b0a0cbae318f7afc51752fc31a7133b8abd15c
2015-12-14 16:28:19 -08:00
Kit Cambridge
7963856ba1 Bug 1189998, Part 4 - Add authentication secret to Push data test. r=dragana
--HG--
extra : commitid : KJvXUjiZrTC
extra : rebase_source : 49c8b9529ba9b47e67852c3b8c43a26017f1b31f
2015-12-11 11:16:46 -05:00
Kit Cambridge
a15219cdc8 Bug 1189998, Part 3 - Update consolidated Push tests. r=mt
--HG--
extra : commitid : 14SSmeaQP4S
extra : rebase_source : 16e10ef52149e6002d5196595662bef45a00205f
2015-12-08 15:41:57 -05:00
Martin Thomson
0a36983413 Bug 1225968 - Adding more messages to the push message tests, r=kitcambridge
--HG--
extra : commitid : DKvDzgHBTd7
extra : rebase_source : 953a864bb23b9b24d14957e49490fdcf1ed36818
2015-12-05 21:51:59 +11:00
Martin Thomson
d8c0edad16 Bug 1225968 - Refactor data delivery tests to support addition of new tests, r=kitcambridge
--HG--
extra : commitid : BDX6sCt4cbd
extra : rebase_source : b13732d37c0fce50816f7e96a03f9bf3a8e76458
2015-11-20 14:21:24 -08:00
Kit Cambridge
da70e5e668 Bug 1170115 - Use clear-origin-data to remove Push records. r=allstars.chh
--HG--
extra : commitid : HPTqiGSIMbc
extra : rebase_source : 04ebebe52cd847c2258913ca97ed2dcc09aa9c32
2015-11-13 15:18:10 -08:00
William Chen
551e115461 Bug 1210211 - Part 3: Test for push notification quota with web notifications. r=kitcambridge
--HG--
extra : commitid : 6jOIM2i8D3P
extra : rebase_source : 2c3dbcb73f561d8a6132f465148b59d269f96d8b
2015-11-16 21:34:00 -08:00
William Chen
8588891ca7 Bug 1210211 - Part 1: Delay updating push quota. r=kitcambridge
--HG--
extra : commitid : 70QSm4u4WLW
extra : rebase_source : e52cc3bae822448e64dca6c40be48d74ea924e0b
2015-11-16 21:33:11 -08:00
Phil Ringnalda
6edbd4d1af Back out 3 changesets (bug 1210211) for b2g build bustage
CLOSED TREE

Backed out changeset 204a1746f421 (bug 1210211)
Backed out changeset e5d16111e809 (bug 1210211)
Backed out changeset b78d00c9af42 (bug 1210211)
2015-11-16 19:34:14 -08:00
William Chen
658a242e1a Bug 1210211 - Part 3: Test for push notification quota with web notifications. r=kitcambridge
--HG--
extra : commitid : 7VLdKkGHG
extra : rebase_source : 222edbb7684e86e1fd656ad91df6d9ce4661105e
2015-11-16 13:20:20 -08:00
William Chen
e791f70b13 Bug 1210211 - Part 1: Delay updating push quota. r=kitcambridge
--HG--
extra : commitid : GXDHaPbe8pi
extra : rebase_source : 260a2a8e1434355671b25d58e36007c88b934464
2015-11-16 13:20:09 -08:00
Kit Cambridge
8431cd65cd Bug 1223481 - Use the "potentially trustworthy origin" helper to validate Push server URLs. r=dragana
--HG--
extra : commitid : 6RrHT77kcOj
extra : rebase_source : b5b498cc266e2c1c97459ace3da3febbb6a34e65
2015-11-10 10:50:46 -08:00
Kit Cambridge
53cdf28e5a Bug 1223202 - Only send subscription change events if the Push permission is granted. r=mt
--HG--
extra : commitid : 4m6UEhlrFtl
extra : rebase_source : 512c9e2ea4be850994e891fc8193df17a2788260
2015-11-10 14:27:47 -08:00
Kit Cambridge
b8e624b786 Bug 1210896, Part 2 - Use JS errors to reject internal Push promises. r=mt
--HG--
extra : commitid : CD3LEbvrDYq
extra : rebase_source : d1d633073a8729d67b44ad0f5b19afc50d692ebd
2015-11-09 13:58:50 -08:00
Kit Cambridge
e5aa219f60 Bug 1210896, Part 1 - Use Console.jsm to log Push errors. r=mt
--HG--
extra : commitid : D2lgLoQtSlk
extra : rebase_source : 58bb82b758ef4dc2c4e8b8a7e902c266670347e8
2015-11-09 13:58:32 -08:00
Kit Cambridge
1a2d174fbf Bug 1206302 - Use DOMException for Push errors. r=mt
--HG--
extra : commitid : 12nCKPtERml
extra : rebase_source : 1d59f113235a98ca30653d2c935e0cc2e7bc8931
2015-11-05 10:38:35 -08:00
Kit Cambridge
a434586a78 Bug 1219063, Part 2 - Remove obsolete "push" permission. r=mt
--HG--
extra : commitid : Gwzo2WQgBrD
extra : rebase_source : 300428e3ce886f27b12f0c6abe503e2e002bbab8
2015-10-30 18:16:19 -07:00
Kit Cambridge
5c2750f5a6 Bug 1159641, Part 2 - Use tasks in the Push permissions test. r=mt
--HG--
extra : commitid : 35UxmOh7qlF
extra : rebase_source : b8eed6ec86fd7a8738d4022bc0972f3d70830098
extra : histedit_source : 10083dedd8fdb3535c0d3d899c90da0a844a6de8
2015-10-30 11:48:56 -07:00
Kit Cambridge
ce72643192 Bug 1159641, Part 1 - Skip the permission check in pushManager.getSubscription(). r=mt
--HG--
extra : commitid : KlBKsjxZn42
extra : rebase_source : b7071400bdaec6eeabfad1f458bda023144e51b1
extra : histedit_source : c68c86bca0c4c2abe0c01bae824a43a36150c48d
2015-10-30 09:37:22 -07:00
Kit Cambridge
4792069b33 Bug 1218591 - Reset the WebSocket retry counter when the server replies. r=dragana
--HG--
extra : commitid : L8bN4lFe50x
2015-10-28 17:07:11 -07:00
Ehsan Akhgari
7029e804f8 Bug 1218135 - Remove FetchEvent.client; r=bzbarsky
This has been removed from the spec.  See:
https://github.com/slightlyoff/ServiceWorker/issues/723#issuecomment-123516555
2015-10-26 23:00:16 -04:00
Kit Cambridge
421c7b6540 Bug 1201128 - Don't send channel IDs in the Push handshake. r=nsm
--HG--
extra : commitid : 7fv5Up5JnkG
extra : rebase_source : 462ffb3f9b6caefa2d27f41e69e0c1d0c98f6690
2015-10-26 08:42:29 -07:00
Andrea Marchesini
8ec6671244 Bug 1203802 - Websocket Frame Listener API for devtool Network Inspector - part 1 - WindowID added into WebSocketChannel, r=michal 2015-10-26 15:29:28 +00:00
Kit Cambridge
641f7ea40a Bug 1217065 - Unconditionally ack incoming updates. r=dragana,benbangert
--HG--
extra : commitid : B1gV3zsa54r
2015-10-22 10:32:33 -06:00
Kit Cambridge
bca5312693 Bug 1206163 - Retry failed register requests on reconnect. r=dragana
--HG--
extra : commitid : ITUpqPr1O3m
extra : amend_source : 8c9062cd1d3fcecc5b78ea0773fff3c618b440b5
2015-10-22 10:14:43 -06:00
Kit Cambridge
3898c24797 Bug 1191453 - Drop subscriptions for a site when the user revokes push permissions. r=mt,MattN
--HG--
extra : commitid : JlZvX8xAxRf
extra : rebase_source : 14372dacf2d519784890550a0e77d4c05e4f2c1a
2015-10-06 08:14:25 -07:00
Nicholas Hurley
4c3788b7e0 Bug 1197847 - make debugging h2 and spdy test servers easier. r=mcmanus
--HG--
extra : rebase_source : d7559f26af0fb04ae2249db4acc181ff9be6eb6b
2015-10-05 13:13:05 -07:00
Kit Cambridge
74ef03c1a6 Bug 1192458, Part 1 - Consolidate push and desktop notification permissions. r=nsm,wchen,MattN
--HG--
extra : commitid : 1veevVaOOYv
2015-10-05 16:39:34 -07:00
Kit Cambridge
cfd53ffe54 Bug 1210943 - Drop subscriptions unconditionally if the UAID changes. r=benbangert
--HG--
extra : commitid : 6vvxcaIIAbE
extra : amend_source : 1ea3d4821cb9a7b799f33da897d14cbd28a0c118
2015-10-03 14:59:24 -07:00
Catalin Badea
12590da787 Bug 1188545 - Fixup for test_serviceworker_lifetime.html a=testonly 2015-10-01 01:42:18 -04:00
Catalin Badea
450ddec732 Bug 1188545 - Add tests for service workers' lifetime management. r=nsm 2015-09-30 19:11:03 -04:00
Wes Kocher
6fbdec2422 Backed out 12 changesets (bug 1188545) for test_fetch_cors failures CLOSED TREE
Backed out changeset e04738ee72a3 (bug 1188545)
Backed out changeset 1989893b59de (bug 1188545)
Backed out changeset 11ff29cc25d8 (bug 1188545)
Backed out changeset 4b6bdf859845 (bug 1188545)
Backed out changeset 76eb7ffeca2a (bug 1188545)
Backed out changeset 4473e036b52e (bug 1188545)
Backed out changeset 2a28cb794b23 (bug 1188545)
Backed out changeset 1fa2f55727f3 (bug 1188545)
Backed out changeset 032f4c24fc34 (bug 1188545)
Backed out changeset 4be675dc1b37 (bug 1188545)
Backed out changeset d5d05def5b17 (bug 1188545)
Backed out changeset e94f12b0bcf3 (bug 1188545)
2015-09-30 11:11:47 -07:00
Catalin Badea
e3772b283b Bug 1188545 - Add tests for service workers' lifetime management. r=nsm 2015-09-30 10:14:33 -04:00
Kit Cambridge
7f516ea381 Back out bug 1205109 for Push mochitest failure.
--HG--
extra : commitid : 8uF5cA3R489
extra : rebase_source : 32dcfc2a2816dabecb7a102d7b44b8f2d2c89160
2015-09-18 18:15:23 -07:00
Kit Cambridge
731f585e6c Bug 1205109 - Make pushsubscriptionchange extendable. r=mt,nsm
--HG--
extra : commitid : 4ziWEfRBlb4
extra : rebase_source : 8998aaf2f21825c93aba12de2a8543ecb64d7c1b
2015-09-17 05:15:45 -07:00
Kit Cambridge
556109257e Bug 1205112 - Make PushEvent.data nullable. r=mt,smaug
--HG--
extra : commitid : 8kofiFgB7WB
extra : rebase_source : 1ff780efd336a9a4214800149c397d9fd3fd6429
2015-09-17 05:13:04 -07:00
Kit Cambridge
cc7189cb64 Bug 1149195 - Expose push message data accessors. r=nsm,dragana,smaug
--HG--
extra : commitid : 10hopC95zuL
extra : rebase_source : c3c9cfac62d1acb234bba2f16b443783354c43a4
2015-09-17 05:10:42 -07:00
Kit Cambridge
6c8172cef8 Bug 1185544 - Add data delivery to the WebSocket backend. r=dragana,nsm
--HG--
extra : commitid : EntjTGDbYag
extra : rebase_source : 79b325dacbed5d96fea17ac26a4bc8103c8dfae1
2015-09-17 05:08:50 -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
Dragana Damjanovic
a7f75d48d4 Bug 1172502 - Add message encription for WebPush. r=mt r=kitcambridge r=keeler r=smaug
--HG--
extra : commitid : FsE5V9w4fej
extra : amend_source : 8b44837b765bd319cadc93a53948264dfbd87ecf
2015-09-11 07:51:32 -07:00
Doug Turner
e70d6a59f1 Bug 1164432. Try disabling test_try_registering_offline_disabled due to too many intermittent failures. r=kitcambridge
--HG--
extra : commitid : F7WVEQXl0j5
2015-08-31 12:28:04 -07:00
Muhsin Ali Steiman
f59bd8d992 Bug 1183440 - Replaces Promise.defer() with the Promise constructor in push tests. r=kitcambridge
--HG--
extra : commitid : 90WEhC4PKRD
extra : amend_source : ab3ef1029dd8daa831eac49bdb2f682032ac547c
2015-08-14 17:26:07 -07:00
Kit Cambridge
b8b774517b Back out changeset 0e68d7a16ed8 (bug 1189543) for mochitest-push timeouts.
--HG--
extra : commitid : Jgv1qFFc8Z6
2015-08-06 10:12:59 -07:00
Kit Cambridge
7e438a9230 Bug 1189543 - pushManager.getSubscription() should return null for nonexistent push subscriptions in workers. r=nsm
--HG--
extra : commitid : 1y3hC0xJqr6
extra : rebase_source : 29a7f65263d0d5d84a0940f1b8219b45b783b655
2015-08-04 13:43:23 -07:00
Nikhil Marathe
7fe3f37d58 Bug 1190478 - Hide PushEvent.data until we ship message encryption. r=mt,jst
--HG--
extra : commitid : 6i4eexsw50U
extra : rebase_source : 9147a2f5e3996d104ff40e32da3e82ca1cc3917d
2015-08-03 11:04:41 -07:00
Ryan VanderMeulen
f98e582bb3 Backed out changeset 96bb759922a1 (bug 1189543) for frequent crashes/asserts.
CLOSED TREE
2015-08-03 12:32:31 -04:00
Nikhil Marathe
97ea06c0c0 Bug 1188686 - Clear push subscriptions when forgetting about site. r=kitcambridge
--HG--
extra : commitid : 4z3omFAziAN
extra : transplant_source : %0A%E7%85%26%EE9%CE%95%0C/%AC%7E%89%ED%08%9A%3C%99mA
2015-07-29 11:33:48 -07:00
Kit Cambridge
1afb67d0c5 Bug 1189543 - pushManager.getSubscription() should return null for nonexistent push subscriptions in workers. r=nsm
--HG--
extra : commitid : zVDx1cN50P
extra : rebase_source : 7a3be47ab508b092f083a6452239ac77839395fc
2015-07-30 15:31:48 -07:00
Nikhil Marathe
f400c4125c Bug 1183867 - Fix PushSubscription.unsubscribe() semantics r=mt
resolve with false when subscription does not exist. true when successfully unregistered. reject with NetworkError in other cases.

--HG--
extra : commitid : 52Armk3onZ2
extra : rebase_source : 0ec2a950871bfb84a6bcd8bd8c00f3a10cd5bbce
2015-07-14 15:01:41 -07:00
Nikhil Marathe
457c7b88a7 Bug 1183853 - Rename hasPermission() to permissionState(). r=mt,smaug
--HG--
extra : commitid : IJXqmdPz2eS
extra : rebase_source : 3100fd71103969134792d1376e56606d3e9c5201
2015-07-14 14:27:32 -07:00
Nikhil Marathe
13cd15e734 Bug 1183825 - Hide PushMessageData methods until we support sending push data. r=mt,smaug
--HG--
extra : commitid : 7WT6shALhFp
extra : rebase_source : 4b3be0825b035666d0412888397b8de15e602af6
2015-07-14 13:45:01 -07:00
Kit Cambridge
97018538cd Bug 1153504 - Add per-origin push quotas. r=nsm,mt,markh
--HG--
extra : commitid : 8CPpVl9sAYo
extra : rebase_source : d4e6330e3717c89f39686c620ae0aeb90e2156c8
2015-06-25 14:52:57 -07:00
Nikhil Marathe
808595ef2e Bug 1166350 - Patch 2 - Fix tests. a=bustage
--HG--
extra : source : 726f0355ea94ba0772427bbebf53c2e919929d41
2015-06-24 14:27:49 -07:00
Nikhil Marathe
b8eea4d16b Bug 1166350 - Push fixes for principals. r=kitcambridge,bholley
Fix xpcshell tests.
Add support for webapps-clear-data.
Trash old regs on idb version upgrade.
Use principal for permission check.
use principal in PushSubscription.

--HG--
extra : source : d7554019b424327a3271e2c0debda995fff36cb5
extra : intermediate-source : be40dea6534771bdeedc9f7c6ccd8bbddb6e41c2
2015-06-24 13:34:54 -07:00
Nikhil Marathe
552b7cd770 Backed out changeset 964de5d960fa
The changes these tests depend on were backed out, but I didn't realise that and pushed this. Backing out and pushing again.
2015-06-24 14:32:39 -07:00
Nikhil Marathe
90857a5bc2 Bug 1166350 - Patch 2 - Fix tests. a=bustage
--HG--
extra : rebase_source : a96805e9d0827b618604f7479db8f1e8a6833735
extra : source : 726f0355ea94ba0772427bbebf53c2e919929d41
2015-06-24 14:27:49 -07:00
Ryan VanderMeulen
c01c5195c9 Backed out changeset 98c7277a8fb5 (bug 1166350) for xpcshell failures. 2015-06-24 16:10:45 -04:00
Nikhil Marathe
bd635e2c8a Bug 1166350 - Push fixes for principals. r=kitcambridge,bholley
Fix xpcshell tests.
Add support for webapps-clear-data.
Trash old regs on idb version upgrade.
Use principal for permission check.
use principal in PushSubscription.

--HG--
extra : rebase_source : 3b8cb541512d3fb9a253773c2fd5227c980efdd2
extra : source : d7554019b424327a3271e2c0debda995fff36cb5
2015-06-02 15:56:33 -07:00
Nikhil Marathe
c2202d5a9d Bug 1170817 - Fix unsubscribe() resolution value. r=dougt
--HG--
extra : rebase_source : 4ccadff701ded3f92f58be9fc9454732abb06a30
extra : source : 8332838a23ea21e74212846ad1fe2e36978c4752
2015-06-02 15:53:55 -07:00
Dragana Damjanovic
7cbd07a051 Bug 1150812 - xcpshell test for PushService with http2. r=nsm, r=mt 2015-06-02 07:16:00 -04:00
Dragana Damjanovic
af2c1ad891 Bug 1150812 - Add Http2 Push service. r=nsm, r=mt 2015-06-03 08:06:00 -04:00
Dragana Damjanovic
2ce8502cf6 Bug 1150812 - Adapt xpcshell test and add mochi tests for WebSocket version. r=nsm, r=mt 2015-06-02 07:14:00 -04:00
Dragana Damjanovic
4c8eee1469 Bug 1162414 - Change PushService.jsm db to use promise. r=nsm, r=mt 2015-05-12 12:08:00 -04:00
Kit Cambridge
fb8ad5dbce Bug 1159310 - Update the storage xpcshell tests. r=dougt
--HG--
extra : rebase_source : 3a49ed7f897c4edda9a2b84e4bd9f5f31777d3e2
2015-04-29 05:31:00 -04:00
Doug Turner
1803c2eea5 Bug 1157108 - onpush EventHandler support. r=ehsan 2015-04-23 20:43:40 +02:00
Doug Turner
91f963df66 Bug 1149274 - Clear site-permissions should clear all registered push notifications. r=nsm 2015-04-21 20:10:51 +02:00
Kit Cambridge
47b180edd6 Bug 1150683 - Add xpcshell tests for nsIPushNotificationService. r=dougt
---
 dom/push/moz.build                                 |   4 +
 dom/push/test/xpcshell/head.js                     | 450 +++++++++++++++++++++
 dom/push/test/xpcshell/test_notification_ack.js    | 127 ++++++
 .../test/xpcshell/test_notification_duplicate.js   |  82 ++++
 dom/push/test/xpcshell/test_notification_error.js  | 127 ++++++
 .../test/xpcshell/test_notification_incomplete.js  | 109 +++++
 .../xpcshell/test_notification_version_string.js   |  72 ++++
 dom/push/test/xpcshell/test_register_case.js       |  64 +++
 dom/push/test/xpcshell/test_register_flush.js      | 103 +++++
 .../test/xpcshell/test_register_invalid_channel.js |  60 +++
 .../xpcshell/test_register_invalid_endpoint.js     |  62 +++
 .../test/xpcshell/test_register_invalid_json.js    |  61 +++
 dom/push/test/xpcshell/test_register_no_id.js      |  65 +++
 .../test/xpcshell/test_register_request_queue.js   |  65 +++
 dom/push/test/xpcshell/test_register_rollback.js   |  88 ++++
 dom/push/test/xpcshell/test_register_success.js    |  76 ++++
 dom/push/test/xpcshell/test_register_timeout.js    | 102 +++++
 dom/push/test/xpcshell/test_register_wrong_id.js   |  71 ++++
 dom/push/test/xpcshell/test_register_wrong_type.js |  67 +++
 dom/push/test/xpcshell/test_registration_error.js  |  39 ++
 .../xpcshell/test_registration_missing_scope.js    |  28 ++
 dom/push/test/xpcshell/test_registration_none.js   |  28 ++
 .../test/xpcshell/test_registration_success.js     |  67 +++
 .../test/xpcshell/test_unregister_empty_scope.js   |  37 ++
 dom/push/test/xpcshell/test_unregister_error.js    |  65 +++
 .../test/xpcshell/test_unregister_invalid_json.js  |  78 ++++
 .../test/xpcshell/test_unregister_not_found.js     |  35 ++
 dom/push/test/xpcshell/test_unregister_success.js  |  60 +++
 dom/push/test/xpcshell/xpcshell.ini                |  32 ++
 29 files changed, 2324 insertions(+)
 create mode 100644 dom/push/test/xpcshell/head.js
 create mode 100644 dom/push/test/xpcshell/test_notification_ack.js
 create mode 100644 dom/push/test/xpcshell/test_notification_duplicate.js
 create mode 100644 dom/push/test/xpcshell/test_notification_error.js
 create mode 100644 dom/push/test/xpcshell/test_notification_incomplete.js
 create mode 100644 dom/push/test/xpcshell/test_notification_version_string.js
 create mode 100644 dom/push/test/xpcshell/test_register_case.js
 create mode 100644 dom/push/test/xpcshell/test_register_flush.js
 create mode 100644 dom/push/test/xpcshell/test_register_invalid_channel.js
 create mode 100644 dom/push/test/xpcshell/test_register_invalid_endpoint.js
 create mode 100644 dom/push/test/xpcshell/test_register_invalid_json.js
 create mode 100644 dom/push/test/xpcshell/test_register_no_id.js
 create mode 100644 dom/push/test/xpcshell/test_register_request_queue.js
 create mode 100644 dom/push/test/xpcshell/test_register_rollback.js
 create mode 100644 dom/push/test/xpcshell/test_register_success.js
 create mode 100644 dom/push/test/xpcshell/test_register_timeout.js
 create mode 100644 dom/push/test/xpcshell/test_register_wrong_id.js
 create mode 100644 dom/push/test/xpcshell/test_register_wrong_type.js
 create mode 100644 dom/push/test/xpcshell/test_registration_error.js
 create mode 100644 dom/push/test/xpcshell/test_registration_missing_scope.js
 create mode 100644 dom/push/test/xpcshell/test_registration_none.js
 create mode 100644 dom/push/test/xpcshell/test_registration_success.js
 create mode 100644 dom/push/test/xpcshell/test_unregister_empty_scope.js
 create mode 100644 dom/push/test/xpcshell/test_unregister_error.js
 create mode 100644 dom/push/test/xpcshell/test_unregister_invalid_json.js
 create mode 100644 dom/push/test/xpcshell/test_unregister_not_found.js
 create mode 100644 dom/push/test/xpcshell/test_unregister_success.js
 create mode 100644 dom/push/test/xpcshell/xpcshell.ini
2015-04-21 20:10:50 +02:00
Ehsan Akhgari
20c06b408e Bug 1155989 - Dump the rejection of the promise returned by ServiceWorkerRegistration.unregister() in our tests; r=nsm 2015-04-21 00:24:44 -04:00
Phil Ringnalda
0db5cd0782 Backed out 4 changesets (bug 1150683) for Talos indexedDB crashes
CLOSED TREE

Backed out changeset 7953d3dd62ff (bug 1150683)
Backed out changeset c6805afff48c (bug 1150683)
Backed out changeset 186ed6bc887e (bug 1150683)
Backed out changeset 8e82f557f913 (bug 1150683)
2015-04-19 07:20:24 -07:00
Kit Cambridge
cfda49a5ee Bug 1150683 - Add xpcshell tests for nsIPushNotificationService. r=dougt
---
 dom/push/moz.build                                 |   4 +
 dom/push/test/xpcshell/head.js                     | 450 +++++++++++++++++++++
 dom/push/test/xpcshell/test_notification_ack.js    | 127 ++++++
 .../test/xpcshell/test_notification_duplicate.js   |  82 ++++
 dom/push/test/xpcshell/test_notification_error.js  | 127 ++++++
 .../test/xpcshell/test_notification_incomplete.js  | 109 +++++
 .../xpcshell/test_notification_version_string.js   |  72 ++++
 dom/push/test/xpcshell/test_register_case.js       |  64 +++
 dom/push/test/xpcshell/test_register_flush.js      | 103 +++++
 .../test/xpcshell/test_register_invalid_channel.js |  60 +++
 .../xpcshell/test_register_invalid_endpoint.js     |  62 +++
 .../test/xpcshell/test_register_invalid_json.js    |  61 +++
 dom/push/test/xpcshell/test_register_no_id.js      |  65 +++
 .../test/xpcshell/test_register_request_queue.js   |  65 +++
 dom/push/test/xpcshell/test_register_rollback.js   |  88 ++++
 dom/push/test/xpcshell/test_register_success.js    |  76 ++++
 dom/push/test/xpcshell/test_register_timeout.js    | 102 +++++
 dom/push/test/xpcshell/test_register_wrong_id.js   |  71 ++++
 dom/push/test/xpcshell/test_register_wrong_type.js |  67 +++
 dom/push/test/xpcshell/test_registration_error.js  |  39 ++
 .../xpcshell/test_registration_missing_scope.js    |  28 ++
 dom/push/test/xpcshell/test_registration_none.js   |  28 ++
 .../test/xpcshell/test_registration_success.js     |  67 +++
 .../test/xpcshell/test_unregister_empty_scope.js   |  37 ++
 dom/push/test/xpcshell/test_unregister_error.js    |  65 +++
 .../test/xpcshell/test_unregister_invalid_json.js  |  78 ++++
 .../test/xpcshell/test_unregister_not_found.js     |  35 ++
 dom/push/test/xpcshell/test_unregister_success.js  |  60 +++
 dom/push/test/xpcshell/xpcshell.ini                |  32 ++
 29 files changed, 2324 insertions(+)
 create mode 100644 dom/push/test/xpcshell/head.js
 create mode 100644 dom/push/test/xpcshell/test_notification_ack.js
 create mode 100644 dom/push/test/xpcshell/test_notification_duplicate.js
 create mode 100644 dom/push/test/xpcshell/test_notification_error.js
 create mode 100644 dom/push/test/xpcshell/test_notification_incomplete.js
 create mode 100644 dom/push/test/xpcshell/test_notification_version_string.js
 create mode 100644 dom/push/test/xpcshell/test_register_case.js
 create mode 100644 dom/push/test/xpcshell/test_register_flush.js
 create mode 100644 dom/push/test/xpcshell/test_register_invalid_channel.js
 create mode 100644 dom/push/test/xpcshell/test_register_invalid_endpoint.js
 create mode 100644 dom/push/test/xpcshell/test_register_invalid_json.js
 create mode 100644 dom/push/test/xpcshell/test_register_no_id.js
 create mode 100644 dom/push/test/xpcshell/test_register_request_queue.js
 create mode 100644 dom/push/test/xpcshell/test_register_rollback.js
 create mode 100644 dom/push/test/xpcshell/test_register_success.js
 create mode 100644 dom/push/test/xpcshell/test_register_timeout.js
 create mode 100644 dom/push/test/xpcshell/test_register_wrong_id.js
 create mode 100644 dom/push/test/xpcshell/test_register_wrong_type.js
 create mode 100644 dom/push/test/xpcshell/test_registration_error.js
 create mode 100644 dom/push/test/xpcshell/test_registration_missing_scope.js
 create mode 100644 dom/push/test/xpcshell/test_registration_none.js
 create mode 100644 dom/push/test/xpcshell/test_registration_success.js
 create mode 100644 dom/push/test/xpcshell/test_unregister_empty_scope.js
 create mode 100644 dom/push/test/xpcshell/test_unregister_error.js
 create mode 100644 dom/push/test/xpcshell/test_unregister_invalid_json.js
 create mode 100644 dom/push/test/xpcshell/test_unregister_not_found.js
 create mode 100644 dom/push/test/xpcshell/test_unregister_success.js
 create mode 100644 dom/push/test/xpcshell/xpcshell.ini
2015-04-19 12:06:31 +02:00
Doug Turner
11be87f208 Bug 1153937 - enable PushServiceLauncher. r=nsm 2015-04-13 10:03:24 -07:00
Phil Ringnalda
0cc202565a Backed out 4 changesets (bug 1150683) for Android xpcshell test bustage
CLOSED TREE

Backed out changeset 645508dd2a76 (bug 1150683)
Backed out changeset 4389151f1348 (bug 1150683)
Backed out changeset 66ca87f2a944 (bug 1150683)
Backed out changeset 814fc7abbe18 (bug 1150683)
2015-04-13 20:15:58 -07:00
Kit Cambridge
0ede23c7ad Bug 1150683 - Add xpcshell tests for nsIPushNotificationService. r=dougt 2015-04-13 17:25:19 -07:00
Doug Turner
d0dec8f3f4 Bug 1038811 - Push Notifications - Allow MOZ_DISABLE_NONLOCAL_CONNECTIONS for push subsuite. r=ahalberstadt/jgriffin 2015-04-10 20:19:29 -07:00
Doug Turner
3dc192b085 Bug 1038811 - Push Notifications - Tests. r=nsm 2015-04-10 20:19:28 -07:00