Commit Graph

16 Commits

Author SHA1 Message Date
Andrew McCreight
2c2e9cbbbe Bug 1412125, part 2 - Fix dom/ mode lines. r=qdot
This was automatically generated by the script modeline.py.

MozReview-Commit-ID: BgulzkGteAL
2017-10-26 15:08:41 -07:00
Michael Layzell
c4d400146d Bug 1352772 - Send permissions to the content process before dispatching push events, r=catalinb
MozReview-Commit-ID: DVLjumi9iBJ
2017-04-10 16:03:03 -04: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
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
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
9d1b502f2b Bug 1247089 - Log Web Push decryption errors. r=bkelly
MozReview-Commit-ID: HEEq8IPlwBx
2016-03-28 13:33:20 -07:00
Kit Cambridge
93eaaf66fe Bug 1246341 - Add a test for push event error reporting. r=dragana
MozReview-Commit-ID: LABOJnYtpD5
2016-03-28 11:40:58 -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
Mark Hammond
24eafc967c 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
a708af0a0f Bug 1253438 - Expose Push observer notification topics. r=markh
MozReview-Commit-ID: HublNSAD3NY
2016-03-03 14:37:10 -08: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
80a8d6b653 Bug 1239584, Part 1 - Add nsIPushNotifier and nsIPushMessage interfaces. r=dragana 2016-01-13 22:19:51 -07:00