Closed Bug 900933 Opened 11 years ago Closed 11 years ago

Alarm API - AlarmsManager.remove() should use sendAsyncMessage()

Categories

(Core :: DOM: Device Interfaces, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla25

People

(Reporter: airpingu, Assigned: airpingu)

References

Details

Attachments

(1 file)

First of all, .remove() should return nothing according the spec. Secondly, we shouldn't wait for the return of sendSyncMessage, where the remove is actually performing asynchronous DB interaction.

[1] https://developer.mozilla.org/en-US/docs/Web/API/MozAlarmsManager.remove
Attached patch PatchSplinter Review
Attachment #784952 - Flags: review?(nsm.nikhil)
Comment on attachment 784952 [details] [diff] [review]
Patch

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

::: dom/alarm/AlarmsManager.js
@@ +92,1 @@
>        "AlarmsManager:Remove", 

Nit: Can you remove the trailing whitespace.
Attachment #784952 - Flags: review?(nsm.nikhil) → review+
Fixed trailing white space and land the patch.

https://hg.mozilla.org/integration/mozilla-inbound/rev/1387a91ce0bc
https://hg.mozilla.org/mozilla-central/rev/1387a91ce0bc
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: