Closed Bug 1183867 Opened 9 years ago Closed 9 years ago

Fix PushSubscription.unsubscribe() semantics

Categories

(Core :: DOM: Push Subscriptions, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla42
Tracking Status
firefox42 --- fixed

People

(Reporter: nsm, Assigned: nsm)

References

Details

Attachments

(1 file)

resolve with false when subscription does not exist. true when successfully unregistered. reject with NetworkError in other cases.
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.
Attachment #8633722 - Flags: review?(martin.thomson)
Comment on attachment 8633722 [details]
MozReview Request: Bug 1183867 - Fix PushSubscription.unsubscribe() semantics r?mt

https://reviewboard.mozilla.org/r/13257/#review11887

Ship It!

::: dom/push/PushService.jsm:961
(Diff revision 1)
> -        ]);
> +        ]).then(function() {
> +          return true;
> +        });

`_ => true` or `() => true`
Attachment #8633722 - Flags: review?(martin.thomson) → review+
url:        https://hg.mozilla.org/integration/mozilla-inbound/rev/0560abdc67cf6b249101da32ad6af4580990addb
changeset:  0560abdc67cf6b249101da32ad6af4580990addb
user:       Nikhil Marathe <nsm.nikhil@gmail.com>
date:       Tue Jul 14 15:01:41 2015 -0700
description:
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.
https://hg.mozilla.org/mozilla-central/rev/0560abdc67cf
Assignee: nobody → nsm.nikhil
Status: NEW → RESOLVED
Closed: 9 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: