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)
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.
Reporter | ||
Updated•12 years ago
|
blocking-b2g: tef? → ---
Updated•11 years ago
|
Keywords: dev-doc-needed
Comment 2•11 years ago
|
||
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)
Comment 3•7 years ago
|
||
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
Updated•7 years ago
|
Keywords: dev-doc-needed
You need to log in
before you can comment on or make changes to this bug.
Description
•