Closed Bug 859615 Opened 12 years ago Closed 7 years ago

mozPower API - return undefined if the API is unsupported on the platform, not null

Categories

(Core :: DOM: Device Interfaces, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: jsmith, Unassigned)

References

Details

See the discussion on bug 859554 for context. Any WebAPI that is not supported on a platform should return undefined, not null. null is only returned if the API is supported on the platform, but the web content does not have access to that API.
Blocks: 859554
blocking-b2g: --- → tef?
blocking-b2g: tef? → ---
Kan-Ru, are you the best assignee here?
Flags: needinfo?(kchen)
After the power manager changed to use WebIDL (bug 911603) navigator.mozPower returns undefined if the web page does not have permission. So this bug is partially resolved. :bz and :sicking are thinking about how to let marketplace detect if the platform supports any particular feature. Let's wait until they have the answer.
Flags: needinfo?(kchen)
Depends on: 1382955
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: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.