Nick Alexander
dcde606dc7
Bug 1240615 - Make PushService protocol init method return a Promise. r=kitcambridge
...
I'd like to make `PushService.init` fallible, but it's not obvious how
to act on failure. This patch at least allows each service to block
_startService until service-specific work initialization is complete.
--HG--
extra : rebase_source : 641bb24429116b4a1db10343b04f83cc6331dc39
2015-11-18 15:55:13 -08: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
Kit Cambridge
2aac6b9fea
Bug 1189998, Part 2 - Migrate Push service callers. r=mt
...
--HG--
extra : commitid : Irrl5pvEqC
extra : rebase_source : 11c261c95820225bcc50976956000f34a79f9578
2015-12-08 15:41:48 -05:00
Kit Cambridge
d1e4feb4e5
Bug 1189998, Part 1 - Consolidate Push client interfaces. r=mt,dragana
...
--HG--
extra : commitid : GZtcmH86Wg4
extra : rebase_source : b1f7410370991819a29c9142d6dee11261f09905
2015-12-08 15:41:41 -05:00
Martin Thomson
6e6387eecb
Bug 1225968 - Add authentication secret to push API, r=kitcambridge,smaug
...
--HG--
extra : commitid : 5qD0xsj9DLR
extra : rebase_source : 407d4152f897f87fa9b5fae8b6b93ef510cce59f
2015-12-09 07:26:42 +11:00
Fernando Jimenez
d4b4ef35f7
Bug 1227908 - JavaScript error: resource://gre/modules/PushService.jsm, line 281: ReferenceError: data is not defined. r=kcambridge
2015-11-26 16:52:54 +01: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
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
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
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
818dc96a78
Bug 1219063, Part 1 - Use transactions for updating Push subscription permissions. r=mt
...
--HG--
extra : commitid : 8ozjimWcLTn
extra : rebase_source : 8a7fe8f397256ce9e02a19bb7df40c8916a3beac
2015-10-30 18:15:48 -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
Dragana Damjanovic
4cd1bc150b
Bug 1216683 - For the WebSocket version unregister should return true even if we are offline. r=kitcambridge
2015-10-27 09:13:00 +01:00
Dragana Damjanovic
0515643189
Bug 1212593 - Fix PushService behavior when we are switching between push servers. r=kcambridge
2015-10-20 01:33:00 +02: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
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
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
Nikhil Marathe
a7bc045c29
Bug 914481 - Patch 4 - Track why we fail to deliver notifications to Service Workers. r=kitcambridge
...
--HG--
extra : commitid : KencxGyLnVk
extra : rebase_source : f434d61fd6fc74434d55d0617b13f61401bfcb63
2015-09-16 10:28:17 -07:00
Nikhil Marathe
f293dc5340
Bug 914481 - Patch 2 - Track subscribe and unsubscribe success/failure. r=kitcambridge
...
--HG--
extra : commitid : FkukoQceUNq
extra : rebase_source : f72c91c37c44ba61abb21c69399b45d571bbdcb4
2015-08-05 17:03:49 -07:00
Carsten "Tomcat" Book
6bd408e0ae
Backed out 4 changesets (bug 914481) for xpc and push service test failures
...
Backed out changeset 6165f6eba17f (bug 914481)
Backed out changeset a8c47e9431d0 (bug 914481)
Backed out changeset f03e8c42861e (bug 914481)
Backed out changeset 84b11173d98f (bug 914481)
--HG--
extra : rebase_source : 9496d5740c290bc6d8169782a8f1a2950711f3d7
2015-09-17 12:31:49 +02:00
Nikhil Marathe
ea76ea7a04
Bug 914481 - Patch 4 - Track why we fail to deliver notifications to Service Workers. r=kitcambridge
...
--HG--
extra : rebase_source : 66bb02452a4b5ffb77157d0f7a44d56b327c360c
2015-08-06 16:59:35 -07:00
Nikhil Marathe
3fc51ef7fd
Bug 914481 - Patch 2 - Track subscribe and unsubscribe success/failure. r=kitcambridge
...
--HG--
extra : rebase_source : 4d605f0557e9e1b5a40e4a518e5f6c9b53e85068
2015-08-05 17:03:49 -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
Kit Cambridge
1acca57a40
Bug 1196512 - Use principals to test for push permissions. r=nsm
...
--HG--
extra : commitid : 7scu10UsEc9
extra : rebase_source : ce8993d0662dfea702b82abf54b98a3f318c386f
extra : amend_source : 0ce3c201cebb227a2e16be35e907f42f73426e03
2015-08-19 16:03:15 -07:00
Dave Townsend
9a151c74f1
Bug 1192441: Disable Push service debug logging by default. r=dougt
...
--HG--
extra : commitid : JtuiAzNqbFM
extra : rebase_source : 0d353f9ca599f6bd458ad74e947a1cea2fb0643a
2015-08-08 09:58:24 -07:00
Nikhil Marathe
84fedf8359
Bug 1190661 - Send push only to child processes when in e10s mode. r=smaug
...
Earlier, the in-process child process message manager and any content process
child process message managers received the push event. This is because
broadcastAsyncMessage is used, but on e10s we want ServiceWorkers to run in the
child process, so the push should only be dispatched to it. This patch
introduces a list of child process listeners in the PushService (running on the
parent). PushServiceChildPreload sends a message to the PushService iff it is
running in a child process. If there are non-zero child listeners, the
PushService will send a message to all of them, otherwise it will fall back to
broadcastAsyncMessage.
We currently do not add support for precise targeting of child processes. This
is because until Bug 1182117 is fixed, all child process ServiceWorkerManagers
maintain all the service worker registrations internally. Yes this is a bug,
but that is the way things are right now. This makes it impossible to
distinguish which child should handle the notification for a given origin.
Considering we don't ship multi-process e10s, I would like to land this right
now.
When Bug 1182117 is fixed, we can remove this code since the
ServiceWorkerManager will manage registrations in the parent, and it will know
which child process is running which ServiceWorker.
--HG--
extra : commitid : Dgfkg4LqLPK
extra : rebase_source : e64a4f1c757b05fe2939a338c1ad8d14f4015a90
2015-07-30 20:00:21 -07: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
Eitan Isaacson
3055640112
Bug 1184626 - Add a per-process push message listener. r=smaug
...
--HG--
rename : dom/push/PushServiceChildPreload.js => dom/push/PushServiceChildPreload.jsm
extra : commitid : JVUONa2Klhc
extra : transplant_source : %8D%A86%94%B2%D7%3F%99%D6%C0%BE/%D8%8A%60%95%EE4%CCt
2015-07-17 14:54:38 -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
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
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
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
Kit Cambridge
d8338f8319
Bug 1171261 - Only track pending channel registrations. r=dragana
2015-06-06 22:17:04 -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
50d7b60872
Bug 1150812 - Split PushService - make the separation more common for webSocket and http2. r=nsm, r=mt
2015-06-03 08:05:00 -04:00
Dragana Damjanovic
3f73665213
Bug 1150812 - Split PushService - separate webSocket part. r=nsm, r=mt
2015-06-03 08:04:00 -04:00
Andrea Marchesini
a71e717b67
Bug 1162088 - patch 1 - ServiceWorkerManager should use OriginAttributes from the principal as scopeKey, r=nsm, r=bholley
2015-06-03 09:43:43 +01:00
Fernando Rodriguez Sela
9caf60383a
Bug 1152264 - Push API constantly doing requests. r=nsm
...
--HG--
extra : rebase_source : b8440e5098a69e9ce6d64783992ddfe2e034cf33
2015-05-11 07:06: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
Doug Turner
817e793cea
Bug 1160316 - Bump IndexedDB name. r=nsm
2015-05-01 10:54:48 -07:00
Doug Turner
9bf4add3ed
Bug 1159310 - Remember the push count and last push time for push events. r=kit
...
--HG--
extra : rebase_source : 58b5f6f1b0e98e201f77b4ec3feabce6c8ef5394
2015-04-28 09:44:00 -04:00
Dragana Damjanovic
984272cb6d
Bug 1156397 - some fix for webpush PushServer. r=dougt r=nsm
...
--HG--
extra : rebase_source : 06425ea3c83db38da11e345ee998a470f9e26570
2015-04-24 14:55:00 +02:00
Doug Turner
fb4dac7539
Bug 1157732 - Allow ws (insecure) connections to localhost. r=kcambridge
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
c32f94ac3c
Bug 1150683 - Add xpcshell test hooks to PushService.jsm. r=dougt
...
---
dom/push/PushService.jsm | 156 ++++++++++++++++++++++++++++++++---------------
dom/push/moz.build | 2 +-
2 files changed, 108 insertions(+), 50 deletions(-)
2015-04-21 20:10:50 +02:00
Kit Cambridge
1e06bb992c
Bug 1150683 - Implement nsIPushNotificationService. r=dougt
...
---
b2g/installer/package-manifest.in | 2 +-
browser/installer/package-manifest.in | 2 +-
dom/push/Push.manifest | 11 +-
dom/push/PushNotificationService.js | 81 +++++++++
dom/push/PushService.jsm | 324 ++++++++++++++++++++--------------
dom/push/PushServiceLauncher.js | 50 ------
dom/push/moz.build | 2 +-
7 files changed, 285 insertions(+), 187 deletions(-)
create mode 100644 dom/push/PushNotificationService.js
delete mode 100644 dom/push/PushServiceLauncher.js
2015-04-21 20:10:50 +02: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
6499b8e520
Bug 1150683 - Add xpcshell test hooks to PushService.jsm. r=dougt
...
---
dom/push/PushService.jsm | 156 ++++++++++++++++++++++++++++++++---------------
dom/push/moz.build | 2 +-
2 files changed, 108 insertions(+), 50 deletions(-)
2015-04-19 12:06:21 +02:00
Kit Cambridge
638298ddea
Bug 1150683 - Implement nsIPushNotificationService. r=dougt
...
---
b2g/installer/package-manifest.in | 2 +-
browser/installer/package-manifest.in | 2 +-
dom/push/Push.manifest | 11 +-
dom/push/PushNotificationService.js | 81 +++++++++
dom/push/PushService.jsm | 324 ++++++++++++++++++++--------------
dom/push/PushServiceLauncher.js | 50 ------
dom/push/moz.build | 2 +-
7 files changed, 285 insertions(+), 187 deletions(-)
create mode 100644 dom/push/PushNotificationService.js
delete mode 100644 dom/push/PushServiceLauncher.js
2015-04-19 12:06:11 +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
725444a06f
Bug 1150683 - Add xpcshell test hooks to PushService.jsm. r=dougt
2015-04-13 17:25:18 -07:00
Kit Cambridge
261b139ba8
Bug 1150683 - Implement nsIPushNotificationService. r=dougt
2015-04-13 17:25:18 -07:00
Doug Turner
a6d4711eae
Bug 1038811 - Push Notifications - Push implementation changes. r=nsm
2015-04-10 20:19:28 -07:00
Dragana Damjanovic
9441d5b1f1
Bug 935838 - Add per app network traffic statistics to the UDP socket. r=sicking, r=mayhemer
2015-04-08 15:35:00 -04:00
Bevis Tseng
ccd20872ec
Bug 1114935 - Part 6.6: Migration in PushService.jsm. r=nsm
...
--HG--
extra : histedit_source : d738f21877abff326fffd9e2c7551c3529c49eb2
2015-01-15 18:40:01 +08:00
Gregor Wagner
fa698fe8a9
Backout Bug 1114935 for causing bug 1144567.
2015-03-18 11:48:52 -07:00
Bevis Tseng
9965fdaa44
Bug 1114935 - Part 6.6: Migration in PushService.jsm. r=nsm
...
--HG--
extra : rebase_source : 91899bb1b11a931e083e0aef8ce70f4dc8aaea93
extra : histedit_source : 5d61014d8ffbdaa49cbab5adeb0d589287884b72
2015-01-15 18:40:01 +08:00
Nikhil Marathe
9ce4ae6f50
Bug 1080752 - Hold wakelock when attempting to connect to push server. r=dougt
...
--HG--
extra : rebase_source : 584f9f681262a74ed0149f5cefbcc5afccdeb04e
2015-03-09 15:40:04 -07:00
Ryan VanderMeulen
91323d7a02
Backed out changeset a1d51e3fea63 (bug 935838) for B2G test_udpsocket.html timeouts.
...
CLOSED TREE
--HG--
extra : rebase_source : c38820b067a8faf405bfae7f5b5fb1089bd29bbc
2015-03-09 16:35:06 -04:00
Dragana Damjanovic
a2a4213345
Bug 935838 - Add per app network traffic statistics to the UDP socket. r=sicking, r=mayhemer
2015-03-06 06:38:00 -05:00
Fernando Rodriguez Sela
012071b939
Bug 1100863 - SimplePush: Adaptive ping doesn't work when it converge. f=jorgep, r=nsm
2015-02-16 01:00:00 -05:00
Christoph Kerschbaumer
4441dedb34
Bug 1099296 - Attach LoadInfo to remaining callers of ioService and ProtocolHandlers - websocket changes in dom/push/ (r=nikhil)
2015-02-17 10:10:16 -08:00
Birunthan Mohanathas
8fd8152982
Bug 1058101 - Flatten dom/push/src/ into parent directory. r=mccr8
...
--HG--
rename : dom/push/src/Push.js => dom/push/Push.js
rename : dom/push/src/Push.manifest => dom/push/Push.manifest
rename : dom/push/src/PushService.jsm => dom/push/PushService.jsm
rename : dom/push/src/PushServiceLauncher.js => dom/push/PushServiceLauncher.js
2014-08-27 10:13:45 -07:00