Alarms API doesn't throw error when receiving bad input

RESOLVED INCOMPLETE

Status

()

Core
DOM: Device Interfaces
RESOLVED INCOMPLETE
3 years ago
6 months ago

People

(Reporter: coolaj86, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

3 years ago
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36

Steps to reproduce:

I had a function to set a weekly alarm. When the alarm fires it sets a new alarm. 

navigator.mozAlarms.add({ bad: "not a date object or date string" }, "honorTimezone", { state: state });


Actual results:

There was a mistake in my code and it caused an infinite loop that I had to delete the app to get out of.


Expected results:

An error should have been thrown.
Component: General → General
Product: Firefox OS → Core
Component: General → DOM: Device Interfaces
More mass-incompleting of FxOS bugs in the Device Interfaces component.

Please update and let me know if any of these are still valid.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 6 months ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.