Closed Bug 1253438 Opened 8 years ago Closed 8 years ago

Expose observer notification names on `nsIPushService`

Categories

(Core :: DOM: Push Subscriptions, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla47
Tracking Status
firefox47 --- fixed

People

(Reporter: lina, Assigned: lina)

Details

Attachments

(1 file)

Technically, they're related to `nsIPushNotifier`...but that would require consumers to import two services, and `nsIPushNotifier` is an internal interface that only supports `PushService.jsm`.
Comment on attachment 8726451 [details]
MozReview Request: Bug 1253438 - Expose Push observer notification topics. r?markh

https://reviewboard.mozilla.org/r/38005/#review34563

Loogs good to me. Note I'm not a DOM peer, so I'm probably not technically able to r+ this, but given the changes are all in dom/push and you are requesting review, it's probably fine.

::: dom/push/PushComponents.js:19
(Diff revision 1)
> +const OBSERVER_TOPIC_PUSH = "push-message";

I think it's probably worth a comment indicating that these constants are duplicated in PushNotifier.cpp (avoiding the duplication is probably possible if PushNotifier got a handle to the push service, but I don't think we need to bother with that).  Ditto in the .cpp (ie, a comment noting the constants are duplicated in the .js)
Attachment #8726451 - Flags: review?(markh) → review+
https://hg.mozilla.org/mozilla-central/rev/65955cf5a546
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: