Closed
Bug 859623
Opened 12 years ago
Closed 12 years ago
mozTelephony API - return undefined if the API is unsupported on the platform, not null
Categories
(Core :: DOM: Device Interfaces, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: jsmith, Unassigned)
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.
I don't understand this bug.
We only have a navigator.mozTelephony property if we build with MOZ_B2G_RIL defined (currently only on B2G I hope). There we return null if you lack permissions, or a Telephony object otherwise.
As far as I can tell this is the correct behavior. What am I missing?
Reporter | ||
Comment 2•12 years ago
|
||
Oh, so in that case then, mozTelephony would be undefined on Android and Desktop, right? In that case, we can close this bug as WFM if you confirm this.
Reporter | ||
Updated•12 years ago
|
Status: NEW → RESOLVED
blocking-b2g: tef? → ---
Closed: 12 years ago
Resolution: --- → WORKSFORME
Great! Thanks.
You need to log in
before you can comment on or make changes to this bug.
Description
•