Closed Bug 867632 Opened 11 years ago Closed 11 years ago

SimplePush: unregister() calls should not queue up as requests.

Categories

(Firefox OS Graveyard :: General, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: nsm, Assigned: mail)

References

Details

(Whiteboard: [good-first-bug][mentor=nsm])

Attachments

(1 file)

register() and unregister() requests are currently tracked by timers so that a register() DOMRequest is notified of failure if the server cannot be reached or does not reply fast enough. With unregister() being a local call (see PushService.unregister()) for justification, unregister() no longer needs the timer to be used. This is a very simple fix with _sendRequest() replaced by _send().
Whiteboard: [good-first-bug] → [good-first-bug][mentor=nsm]
I'd like to take this one as my first bug.
Assignee: nobody → mail
Attached patch Proposed patchSplinter Review
Attachment #771447 - Flags: review?(nsm.nikhil)
Robert,

The patch looks good, but I don't want to land without verifying some things.
I am on vacation till Monday, so I'll probably r+ and land then. Thanks for the patch!
That's no problem. When you do take a look, would you mind letting me know what kinds of things you are verifying? I'd like to get a better idea of how things are tested.
Attachment #771447 - Flags: review?(nsm.nikhil) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/307ab52a74fc

I didn't really have to test anything since this was a minor change. I just wanted to verify that that was the only change required. Thanks again for the patch.
No problem. :)
https://hg.mozilla.org/mozilla-central/rev/307ab52a74fc
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: