Closed
Bug 944608
Opened 11 years ago
Closed 11 years ago
[Messages] Need to add the phonenumberservice permission
Categories
(Firefox OS Graveyard :: Gaia::SMS, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 907740
People
(Reporter: julienw, Unassigned)
References
Details
We need to add the phonenumberservice so that mozPhoneNumberService is actually used instead of the fallback code.
Reporter | ||
Comment 1•11 years ago
|
||
Was done in bug 907740.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
Comment 2•11 years ago
|
||
Is this what would cause the error:
E/GeckoConsole( 516): [JavaScript Error: "TypeError: navigator.mozPhoneNumberService.normalize is not a function" {file: "app://sms.gaiamobile.org/shared/js/fb/fb_data_reader.js" line: 178}]
?
Comment 3•11 years ago
|
||
(In reply to Rick Waldron [:rwaldron] from comment #2)
> Is this what would cause the error:
>
> E/GeckoConsole( 516): [JavaScript Error: "TypeError:
> navigator.mozPhoneNumberService.normalize is not a function" {file:
> "app://sms.gaiamobile.org/shared/js/fb/fb_data_reader.js" line: 178}]
>
> ?
Yeah, as it stands we always expose mozPhoneNumberService on navigator, but only expose its functions (normalize and fuzzyMatch) if the permission is present.
http://hg.mozilla.org/mozilla-central/file/f605430674e2/dom/webidl/PhoneNumberService.webidl#l14
Reporter | ||
Comment 4•11 years ago
|
||
(In reply to Rick Waldron [:rwaldron] from comment #2)
> Is this what would cause the error:
>
> E/GeckoConsole( 516): [JavaScript Error: "TypeError:
> navigator.mozPhoneNumberService.normalize is not a function" {file:
> "app://sms.gaiamobile.org/shared/js/fb/fb_data_reader.js" line: 178}]
>
> ?
To any reader coming here, see bug 952781 comment 9.
You need to log in
before you can comment on or make changes to this bug.
Description
•