Commit Graph

143 Commits

Author SHA1 Message Date
Kit Cambridge
699bd228b1 Back out changeset 0e68d7a16ed8 (bug 1189543) for mochitest-push timeouts. 2015-08-06 10:12:59 -07:00
Nikhil Marathe
97ce772489 Bug 1191495 - Relax PushManager callback assertions. r=kitcambridge 2015-08-05 15:32:19 -07:00
Wes Kocher
1470527e28 Backed out 3 changesets (bug 1191495, bug 1153499, bug 1144660) for mochitest-push crashes
Backed out changeset 8917e7323399 (bug 1191495)
Backed out changeset 13ed6f60d3f9 (bug 1144660)
Backed out changeset 95bd6642e4b1 (bug 1153499)
2015-08-05 15:18:05 -07:00
Nikhil Marathe
3c675df72a Bug 1191495 - Relax PushManager callback assertions. r=kitcambridge 2015-08-05 13:21:08 -07:00
Nikhil Marathe
242709838c 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.
2015-07-30 20:00:21 -07:00
Kit Cambridge
888f36d283 Bug 1189543 - pushManager.getSubscription() should return null for nonexistent push subscriptions in workers. r=nsm 2015-08-04 13:43:23 -07:00
Nikhil Marathe
163db26016 Bug 1190672 - Fix use of AutoReleasePromiseWorkerProxy in PushManager. r=catalinb 2015-08-03 21:47:16 -07:00
Nikhil Marathe
cb37e89c41 Bug 1190478 - Hide PushEvent.data until we ship message encryption. r=mt,jst 2015-08-03 11:04:41 -07:00
Ryan VanderMeulen
e1199f4eee Backed out changeset 96bb759922a1 (bug 1189543) for frequent crashes/asserts.
CLOSED TREE
2015-08-03 12:32:31 -04:00
Nikhil Marathe
ca5d552376 Bug 1188686 - Clear push subscriptions when forgetting about site. r=kitcambridge 2015-07-29 11:33:48 -07:00
Kit Cambridge
08cdfadaff Bug 1189543 - pushManager.getSubscription() should return null for nonexistent push subscriptions in workers. r=nsm 2015-07-30 15:31:48 -07:00
Ehsan Akhgari
1d2d3d0154 Bug 1188091 - Fix the exposure of Push interfaces; r=dougt,bzbarsky,nsm
Currently we don't check the dom.push.enabled pref in some cases for
some of these interfaces.  This patch unifies how all of these
interfaces are exposed to Window, Worker, and ServiceWorker.
2015-07-30 01:06:38 -04:00
Wes Kocher
13400e57d2 Merge b2ginbound to central, a=merge 2015-07-29 20:19:12 -07:00
Jessica Jong
ad1b17760f Bug 1167132 - Part 10: [NetworkManager] Move network information into a separate interface (PushService). r=nsm 2015-07-29 02:11:00 -04:00
Bobby Holley
106e778c81 Bug 1188696 - Hoist nsRefPtr.h into MFBT. r=froydnj 2015-07-29 10:44:59 -07:00
Ehsan Akhgari
8ce7b61f37 Bug 1188450 - Add an empty EXPORTED_SYMBOLS array to PushServiceChildPreload.jsm; r=nsm 2015-07-28 18:46:52 -04:00
Ryan VanderMeulen
2b4ba89daa Backed out changeset c88d1138bc38 (bug 1188091) for Mulet test_serviceworker_interfaces.html failures.
CLOSED TREE
2015-07-28 13:28:39 -04:00
Ehsan Akhgari
98d60c7ea2 Bug 1188091 - Fix the exposure of Push interfaces; r=dougt,bzbarsky
Currently we don't check the dom.push.enabled pref in some cases for
some of these interfaces.  This patch unifies how all of these
interfaces are exposed to Window, Worker, and ServiceWorker.
2015-07-28 12:28:53 -04:00
Eitan Isaacson
a0f6f56d8d Bug 1184626 - Add a per-process push message listener. r=smaug 2015-07-17 14:54:38 -07:00
Nikhil Marathe
812956b4c1 Bug 1184574 - Allow access to PushManager on ServiceWorker. r=kitcambridge,smaug,catalinb
Refactoring to allow access to PushManager in ServiceWorkerGlobalScope. See comment in PushManager.h for details.
2015-07-23 08:30:15 -07:00
Nikhil Marathe
0097c6b529 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.
2015-07-14 15:01:41 -07:00
Nikhil Marathe
ad2e56c65b Bug 1183853 - Rename hasPermission() to permissionState(). r=mt,smaug 2015-07-14 14:27:32 -07:00
Nikhil Marathe
95ccfbfa7b Bug 1183825 - Hide PushMessageData methods until we support sending push data. r=mt,smaug 2015-07-14 13:45:01 -07:00
Kit Cambridge
8cba041605 Bug 1153504 - Add per-origin push quotas. r=nsm,mt,markh 2015-06-25 14:52:57 -07:00
Nikhil Marathe
b0c13dec0f Bug 1166350 - Patch 2 - Fix tests. a=bustage 2015-06-24 14:27:49 -07:00
Nikhil Marathe
2b07e52f76 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.
2015-06-24 13:34:54 -07:00
Nikhil Marathe
f5f4f13297 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
909f1c268d Bug 1166350 - Patch 2 - Fix tests. a=bustage 2015-06-24 14:27:49 -07:00
Ryan VanderMeulen
a7d736ee1c Backed out changeset 98c7277a8fb5 (bug 1166350) for xpcshell failures. 2015-06-24 16:10:45 -04:00
Nikhil Marathe
5cb984764e 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.
2015-06-02 15:56:33 -07:00
Nikhil Marathe
719564aef0 Bug 1170817 - Fix unsubscribe() resolution value. r=dougt 2015-06-02 15:53:55 -07:00
Kit Cambridge
5375005e59 Bug 1171261 - Only track pending channel registrations. r=dragana 2015-06-06 22:17:04 -07:00
Dragana Damjanovic
745074be0b Bug 1172667 - Use EXTRA_JS_MODULES for dom/push/ jsm files. r=dougt 2015-06-09 02:11:00 -04:00
Dragana Damjanovic
a60b5b951d Bug 1150812 - xcpshell test for PushService with http2. r=nsm, r=mt 2015-06-02 07:16:00 -04:00
Dragana Damjanovic
0b4bf77300 Bug 1150812 - Add Http2 Push service. r=nsm, r=mt 2015-06-03 08:06:00 -04:00
Dragana Damjanovic
603a4d670f 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
9262fa30e5 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
cc1c6f6b94 Bug 1150812 - Split PushService - separate webSocket part. r=nsm, r=mt 2015-06-03 08:04:00 -04:00
Andrea Marchesini
43290d31c1 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
6e9fd947fd Bug 1152264 - Push API constantly doing requests. r=nsm 2015-05-11 07:06:00 -04:00
Dragana Damjanovic
cf0689e023 Bug 1162414 - Change PushService.jsm db to use promise. r=nsm, r=mt 2015-05-12 12:08:00 -04:00
Doug Turner
2ec70c0a27 Bug 1160333 - When denying permission, use the string 'PermissionDeniedError'. r=nsm 2015-05-01 11:01:17 -07:00
Doug Turner
e917d0ffd6 Bug 1160316 - Bump IndexedDB name. r=nsm 2015-05-01 10:54:48 -07:00
Kit Cambridge
bead71165e Bug 1159310 - Update the storage xpcshell tests. r=dougt 2015-04-29 05:31:00 -04:00
Doug Turner
60e1c95475 Bug 1159310 - Remember the push count and last push time for push events. r=kit 2015-04-28 09:44:00 -04:00
Carsten "Tomcat" Book
ccb1bb7eed Backed out changeset 0efce0a97efe (bug 1159310) for xpc bustage on a CLOSED TREE 2015-04-29 09:53:02 +02:00
Doug Turner
8a5c7f847d Bug 1159310 - Remember the push count and last push time for
push events. r=kit
2015-04-28 09:40:57 -07:00
Doug Turner
6533fae7cc Bug 1149271 - Remove subscriptionid. r=baku 2015-04-26 03:59:38 -07:00
Dragana Damjanovic
5fe45aad54 Bug 1156397 - some fix for webpush PushServer. r=dougt r=nsm 2015-04-24 14:55:00 +02:00
Doug Turner
1250cb2f0d Bug 1157732 - Allow ws (insecure) connections to localhost. r=kcambridge 2015-04-23 20:43:40 +02:00