Closed Bug 1157108 Opened 9 years ago Closed 9 years ago

onpush EventHandler support

Categories

(Core :: DOM: Push Subscriptions, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla40
Tracking Status
firefox40 --- fixed

People

(Reporter: dougt, Assigned: dougt)

Details

Attachments

(1 file)

From a SW, 'onpush' doesn't work.

this.onpush = function(event) {
  debug("onpush");
}

onpushsubscriptionchange also doesn't work.
Attached patch onpush_implSplinter Review
Attachment #8596051 - Flags: review?(josh)
Comment on attachment 8596051 [details] [diff] [review]
onpush_impl

Review of attachment 8596051 [details] [diff] [review]:
-----------------------------------------------------------------

::: dom/push/test/worker.js
@@ +1,5 @@
>  // Any copyright is dedicated to the Public Domain.
>  // http://creativecommons.org/licenses/publicdomain/
>  
> +
> +//addEventListener("push", handlePush);

Did you forget to remove this comment?

::: dom/webidl/ServiceWorkerGlobalScope.webidl
@@ +30,5 @@
>    attribute EventHandler onmessage;
> +
> +  // These are from w3c.github.io/push-api/
> +  attribute EventHandler onpush;
> +  attribute EventHandler onpushsubscriptionchange;

Please copy and paste this from the spec, as a partial interface, preserving the comment above.
Attachment #8596051 - Flags: review?(josh) → review+
https://hg.mozilla.org/mozilla-central/rev/cbabce5695c4
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: