Commit Graph

155 Commits

Author SHA1 Message Date
Nikhil Marathe
53a8491d88 Bug 1197421 - Fix promise worker proxy cleanup and update callers. r=catalinb
Get rid of having users dispatch control runnables. It was error prone and
required too much reasoning. It was also possible to end up in a state where
callers would dispatch a WorkerRunnable, which would succeed, so they would not
dispatch a WorkerControlRunnable. Then the worker would stop Running,
canceling and releasing the runnable leading to releasing the proxy in an
unclean state. Instead, we AddRef() and add the feature and remove the feature
and Release() on Notify(). If callers successfully run a WorkerRunnable they
clean the proxy. If not, the proxy stays alive until the worker switches to
Canceling state.
2015-09-02 10:07:26 -07:00
Andrea Marchesini
8d4eb66ee6 Bug 1198795 - ipc/StructuredCloneUtils should be merged with StructuredCloneHelper, r=smaug 2015-09-02 17:20:30 +01:00
Doug Turner
9f74b74fb0 Bug 1164432. Try disabling test_try_registering_offline_disabled due to too many intermittent failures. r=kitcambridge 2015-08-31 12:28:04 -07:00
Nicholas Nethercote
10d95cca57 Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.
2015-08-27 20:44:53 -07:00
Chris Peterson
40a65bd331 Bug 1198124 - Enable -Wshadow in directories that have no -Wshadow warnings. r=glandium 2015-08-25 09:14:38 -07:00
Kit Cambridge
fa5db04df2 Bug 1196512 - Use principals to test for push permissions. r=nsm 2015-08-19 16:03:15 -07:00
Chris Peterson
ae4e988199 Bug 1194580 - Mark dom/push as FAIL_ON_WARNINGS. r=nsm 2015-08-13 20:35:31 -07:00
Muhsin Ali Steiman
88ea924913 Bug 1183440 - Replaces Promise.defer() with the Promise constructor in push tests. r=kitcambridge 2015-08-14 17:26:07 -07:00
Nikhil Marathe
0f166e8a30 Bug 1193365 - Disable push debug. r=kitcambridge 2015-08-11 12:53:14 -07:00
Kit Cambridge
64854b9340 Back out bug 1100863 and bug 1152264 for causing bug 1189729 on a CLOSED TREE. a=mhenretty,RyanVM 2015-08-11 07:30:38 -07:00
Dave Townsend
d258987ceb Bug 1192441: Disable Push service debug logging by default. r=dougt 2015-08-08 09:58:24 -07:00
Kit Cambridge
ae57506807 Bug 1189543 - pushManager.getSubscription() should return null for nonexistent push subscriptions in workers. r=nsm 2015-08-06 10:15:00 -07:00
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