Closed
Bug 903431
Opened 11 years ago
Closed 7 years ago
PhoneNumberUtils API
Categories
(Core :: DOM: Device Interfaces, defect)
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: airpingu, Unassigned)
References
Details
+++ This bug was initially created as a clone of Bug #898364 +++
Please see bug 898364, comment #5 for the objective. The PhoneNumberUtils API could be a very useful API for lots of communication apps, including messaging, telephony and contacts. We're hoping to expose this API to the content because:
1. We don't want each app to load one duplicated PhoneNumberUtils.jsm copy which will redundantly occupy the memory.
2. Some of the utility functions in PhoneNumberUtils.jsm need to refer to the RIL info. For example, parseWithMCC(aNumber, aMCC) needs MCC. Therefore, keeping PhoneNumberUtils.jsm in the parent makes more sense.
In the initiative step, we only want this API for certified apps only.
Comment 1•11 years ago
|
||
Has there been any discussion regarding the standardization of a common Web API for phone number normalization?
Updated•11 years ago
|
Keywords: dev-doc-needed
Comment 2•11 years ago
|
||
Rick> not that I know of.
Reporter | ||
Comment 3•11 years ago
|
||
It seems there has already been a similar work at Bug 883923?
Comment 4•11 years ago
|
||
Fuzzy Matcher is quite different, it's only do handle comparison.
We try hard to not expose the whole PhoneNumberUtils API and try to extract meaningful API instead :)
Reporter | ||
Comment 5•11 years ago
|
||
OK, I see. Thanks! It's great to have an existing framework to expose other APIs in the future.
Updated•7 years ago
|
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
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
•