Closed Bug 1252297 Opened 8 years ago Closed 8 years ago

alarms.clear does not work

Categories

(WebExtensions :: Untriaged, defect)

defect
Not set
normal

Tracking

(firefox48 verified)

VERIFIED FIXED
Iteration:
47.3 - Mar 7
Tracking Status
firefox48 --- verified

People

(Reporter: wbamberg, Assigned: andy+bugzilla)

References

Details

(Whiteboard: [alarms])

Attachments

(1 file)

Attached file alarms-clear.xpi
I've attached a simple add-on that adds a browser action.

When you click the button once, it creates an alarm using chrome.alarms.create().

When you click the button again, it clears the alarm using chrome.alarms.clear().

On Firefox, when you click the button the second time, the alarm is not cleared, and instead you get "f is not a function" in the Browser Console.
Whiteboard: [alarms]
This occurs when no callback is specified for .clear()
Kris says that when the schema lands in bug 1246732, this will take care of it, I'll retest it when it does.
Depends on: 1246732
Assignee: nobody → amckay
Iteration: --- → 47.3 - Mar 7
Fixed in bug 1246732.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
I was able to reproduce the initial issue on Firefox 47.0a1 (2016-02-29) under Windows 10 64-bit.

Verified fixed on Firefox 48.0a1 (2016-04-07) under Windows 10 64-bit, Mac OS X 10.11 and Ubuntu 14.04 32-bit.
Status: RESOLVED → VERIFIED
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: