Closed Bug 917051 Opened 11 years ago Closed 11 years ago

SimplePush: Clean up unregister related code

Categories

(Core :: DOM: Push Subscriptions, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla27

People

(Reporter: nsm, Assigned: nsm)

Details

Attachments

(1 file)

Assignee: nobody → nsm.nikhil
Since we don't really care whether the server got the unregister, let's not handle the reply either.
Attachment #805699 - Flags: review?(doug.turner)
Comment on attachment 805699 [details] [diff] [review]
SimplePush: Clean up unregister related code.

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

::: dom/push/src/PushService.jsm
@@ +1134,5 @@
>            deferred.resolve(message);
>          },
>          function(error) {
>            // Unable to save.
> +          this._send("unregister", {channelID: record.channelID});

How did this work before?
Attachment #805699 - Flags: review?(doug.turner) → review+
(In reply to Doug Turner (:dougt) from comment #2)
> Comment on attachment 805699 [details] [diff] [review]
> SimplePush: Clean up unregister related code.
> 
> Review of attachment 805699 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> ::: dom/push/src/PushService.jsm
> @@ +1134,5 @@
> >            deferred.resolve(message);
> >          },
> >          function(error) {
> >            // Unable to save.
> > +          this._send("unregister", {channelID: record.channelID});
> 
> How did this work before?

_sendRequest() will keep track of the request with a timer and error with a timeout if it fails, and trickle that up to content JS, except we no longer have a watcher for it.
https://hg.mozilla.org/mozilla-central/rev/104e23b70187
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla27
tested and working
1.5 
Gecko fa7c5ad
Gaia 7c73c66
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: