Commit Graph
41 Commits
Author SHA1 Message Date
Joel Maher 944830a33d Bug 1339232 - annotate more dom/* moz.build files with BUG_COMPONENT. r=overholt
MozReview-Commit-ID: 2HbPxGkrVfv
2017-03-01 08:20:25 -05:00
Edouard Oger 96a6ccff48 Bug 1287643 - FxA Push registration and handling of device disconnection message. r=kitcambridge,nalexander
MozReview-Commit-ID: 8IH3kBivp26
2016-07-20 10:47:04 -07:00
Tom Tromey 1b5a2bdb96 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
2016-07-14 10:16:42 -06:00
Kit Cambridge 7a4fee08c1 Bug 1275434 - Refactor PushNotifier to clarify remoting logic. r=dragana
Previously, all `PushNotifier` methods checked the process type, and
either called `Notify*{Workers, Observers}` or sent an IPDL message.
The message handlers then called back in to `PushNotifier` from the
remote process.

This was clearer when we only sent worker event notifications to the
content process, and fired all observer notifications in the parent.
It became more complicated once we started notifying observers for all
subscriptions in both processes (bug 1266433). This makes it harder to
see omissions; for example, "push-subscription-modified" isn't
currently forwarded to the child, but "push-subscription-change" and
"push-message" are.

This patch moves the remoting code into `PushNotifier::Dispatch`, and
adds a base `PushDispatcher` class. Each notification type subclasses
this class and implements logic for sending messages and firing
observers and worker events. It's more code, but a bit easier to see
which methods are called where.

MozReview-Commit-ID: 7Q0eD7qXOrW
2016-05-19 19:01:34 -07:00
Kit Cambridge 1f29167357 Bug 1269436 - Always pass the principal to push observer notifications. r=dragana
MozReview-Commit-ID: J1vU3nRKlsa
2016-05-02 09:38:47 -07:00
Kit Cambridge 8692bb2df9 Bug 1269385 - Notify Dev Tools when a push subscription is modified. f=janx r=dragana
MozReview-Commit-ID: 3iTl7jH9IkB
2016-05-02 08:20:14 -07:00
Kit Cambridge 1dd23899d3 Bug 1266433 - Update the comments in the Push XPIDL interfaces. r=me
MozReview-Commit-ID: 7s9VFqYYV9s
2016-04-26 10:20:08 -07:00
Kit Cambridge 2caa8bf8af Bug 1266433 - Indicate push subscriptions created by privileged code. r=dragana
MozReview-Commit-ID: HYKndQiU98U
2016-04-23 19:41:59 -07:00
Kit Cambridge ee7cc68fb2 Bug 1266433 - Clean up nsIPushNotifier static casts. r=dragana
MozReview-Commit-ID: AsZZ4TJquuB
2016-04-22 20:27:44 -07:00
Kit Cambridge 0021a5f6fc Bug 1266433 - Send an observer notification when a push subscription is lost. f=janx r=dragana
MozReview-Commit-ID: EjCVWje2jLB
2016-04-21 12:04:15 -07:00
Kit Cambridge 62be9628a4 Bug 1266433 - Send Push observer notifications to parent and content processes. f=janx r=dragana
MozReview-Commit-ID: 1aUS8HcQApo
2016-04-21 11:11:03 -07:00
Kit Cambridge f9c161b402 Bug 1247685 - WebIDL and DOM implementation changes for app server keys. r=mt,baku
MozReview-Commit-ID: 1xYjSuLMnV4
2016-03-22 13:38:03 -07:00
Kit Cambridge 9d1b502f2b Bug 1247089 - Log Web Push decryption errors. r=bkelly
MozReview-Commit-ID: HEEq8IPlwBx
2016-03-28 13:33:20 -07:00
Kit Cambridge c1473206f5 Bug 1246341 - Report push event errors and rejections to the Push service. r=baku
MozReview-Commit-ID: D6fRPqojOEh
2016-03-28 11:50:39 -07:00
Kit Cambridge a708af0a0f Bug 1253438 - Expose Push observer notification topics. r=markh
MozReview-Commit-ID: HublNSAD3NY
2016-03-03 14:37:10 -08:00
Kit Cambridge e3d564db42 Bug 1239584, Part 2 - Remove message manager usage from PushService.jsm. r=dragana 2016-01-13 22:24:37 -07:00
Kit Cambridge f3156a3121 Bug 1239584, Part 1 - Add nsIPushNotifier and nsIPushMessage interfaces. r=dragana 2016-01-13 22:19:51 -07:00
Kit Cambridge 6bbd351b71 Back out out 3 changesets (bug 1239584) for B2G build failures on a CLOSED TREE. 2016-01-22 11:06:14 -08:00
Kit Cambridge b2ddd0a83a Bug 1239584, Part 2 - Remove message manager usage from PushService.jsm. r=dragana 2016-01-13 22:24:37 -07:00
Kit Cambridge 80a8d6b653 Bug 1239584, Part 1 - Add nsIPushNotifier and nsIPushMessage interfaces. r=dragana 2016-01-13 22:19:51 -07:00
Kit Cambridge 4bb109e9c0 Bug 1189998, Part 2 - Migrate Push service callers. r=mt 2015-12-08 15:41:48 -05:00
Kit Cambridge 1942c86774 Bug 1189998, Part 1 - Consolidate Push client interfaces. r=mt,dragana 2015-12-08 15:41:41 -05:00
Martin Thomson 134a387481 Bug 1225968 - Add authentication secret to push API, r=kitcambridge,smaug 2015-12-09 07:26:42 +11:00
William Chen 27f0d73735 Bug 1210211 - Part 2: Notify Push service of visible notifications. r=baku 2015-11-16 21:33:17 -08:00
Phil Ringnalda 5ab61ded08 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 afe803fd6f Bug 1210211 - Part 2: Notify Push service of visible notifications. r=baku 2015-11-16 13:20:15 -08:00
Dragana Damjanovic 579751a2b2 Bug 1172502 - Add message encription for WebPush. r=mt r=kitcambridge r=keeler r=smaug 2015-09-11 07:51:32 -07:00
Nikhil Marathe 097b753b59 Bug 1188686 - Clear push subscriptions when forgetting about site. r=kitcambridge 2015-07-29 11:33:48 -07:00
Nikhil Marathe 6ede93ec7c 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 386ed172ac 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
Ryan VanderMeulen 2768d1ce46 Backed out changeset 98c7277a8fb5 (bug 1166350) for xpcshell failures. 2015-06-24 16:10:45 -04:00
Nikhil Marathe 6475190f81 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
Doug Turner 20eb96b60c Bug 1159310 - Remember the push count and last push time for push events. r=kit 2015-04-28 09:44:00 -04:00
Doug Turner af36aaba47 Bug 1149274 - Clear site-permissions should clear all registered push notifications. r=nsm 2015-04-21 20:10:51 +02:00
Kit Cambridge f5e74a8fea Bug 1150683 - Add XPCOM interfaces for push notifications. r=dougt
---
 b2g/installer/package-manifest.in                  |  1 +
 browser/installer/package-manifest.in              |  1 +
 dom/interfaces/push/moz.build                      | 12 ++++++
 dom/interfaces/push/nsIPushNotificationService.idl | 49 ++++++++++++++++++++++
 .../push/nsIPushObserverNotification.idl           | 30 +++++++++++++
 dom/moz.build                                      |  1 +
 6 files changed, 94 insertions(+)
 create mode 100644 dom/interfaces/push/moz.build
 create mode 100644 dom/interfaces/push/nsIPushNotificationService.idl
 create mode 100644 dom/interfaces/push/nsIPushObserverNotification.idl
2015-04-21 20:10:50 +02:00
Phil Ringnalda 3c20e4444e 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 fe00761122 Bug 1150683 - Add XPCOM interfaces for push notifications. r=dougt
---
 b2g/installer/package-manifest.in                  |  1 +
 browser/installer/package-manifest.in              |  1 +
 dom/interfaces/push/moz.build                      | 12 ++++++
 dom/interfaces/push/nsIPushNotificationService.idl | 49 ++++++++++++++++++++++
 .../push/nsIPushObserverNotification.idl           | 30 +++++++++++++
 dom/moz.build                                      |  1 +
 6 files changed, 94 insertions(+)
 create mode 100644 dom/interfaces/push/moz.build
 create mode 100644 dom/interfaces/push/nsIPushNotificationService.idl
 create mode 100644 dom/interfaces/push/nsIPushObserverNotification.idl
2015-04-19 12:06:04 +02:00
Phil Ringnalda 3211c550f9 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 6177ae8237 Bug 1150683 - Add XPCOM interfaces for push notifications. r=dougt
---
 b2g/installer/package-manifest.in                  |  1 +
 browser/installer/package-manifest.in              |  1 +
 dom/interfaces/push/moz.build                      | 12 ++++++
 dom/interfaces/push/nsIPushNotificationService.idl | 49 ++++++++++++++++++++++
 .../push/nsIPushObserverNotification.idl           | 30 +++++++++++++
 dom/moz.build                                      |  1 +
 mobile/android/installer/package-manifest.in       |  1 +
 7 files changed, 95 insertions(+)
 create mode 100644 dom/interfaces/push/moz.build
 create mode 100644 dom/interfaces/push/nsIPushNotificationService.idl
 create mode 100644 dom/interfaces/push/nsIPushObserverNotification.idl
2015-04-13 17:25:18 -07:00
Nikhil Marathe b0518e862a Bug 884897 - Convert SimplePush to WebIDL. r=khuey 2013-08-02 17:18:35 -07:00
Doug Turner 2a044a30e3 Bug 822712 - SimplePush - Interface. r=dougt, sr=sicking 2013-03-28 20:49:41 -07:00