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)

ARM
Gonk (Firefox OS)
defect
Not set
normal

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.
Blocks: 859554
blocking-b2g: --- → tef?
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?
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.
Status: NEW → RESOLVED
blocking-b2g: tef? → ---
Closed: 12 years ago
Resolution: --- → WORKSFORME
No longer blocks: 859554
You need to log in before you can comment on or make changes to this bug.