Closed
Bug 821876
Opened 13 years ago
Closed 13 years ago
Fix ParseNumber so that it accepts a null defaultRegion.
Categories
(Firefox OS Graveyard :: General, defect, P1)
Tracking
(blocking-basecamp:+, firefox19 fixed, firefox20 fixed, b2g18 fixed)
People
(Reporter: nsarkar, Assigned: gwagner)
Details
Attachments
(1 file)
|
2.88 KB,
patch
|
gal
:
review+
|
Details | Diff | Splinter Review |
The ParseNumber method in PhoneNumber.jsm (http://mxr.mozilla.org/mozilla-central/source/dom/phonenumberutils/PhoneNumber.jsm#298)doesn't handle the case where defaultRegion is null.
The bug was uncovered when the mcc we were using came from the test equipment and didn't match any in the mcc table(MCC_ISO3166_TABLE). Because of that, the country code passed in here - http://mxr.mozilla.org/mozilla-central/source/dom/phonenumberutils/PhoneNumberUtils.jsm#56 is null.
In such a scenario, it is seen that import sim contacts fails and contacts are not imported.
Updated•13 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Updated•13 years ago
|
Assignee: nobody → anygregor
blocking-basecamp: ? → +
Updated•13 years ago
|
Target Milestone: --- → B2G C3 (12dec-1jan)
| Assignee | ||
Comment 2•13 years ago
|
||
(In reply to Anshul from comment #1)
> To add to what Nivi mentioned, this is failing a GCF test case.
What is a GCF test case?
Comment 3•13 years ago
|
||
It's a device certification test suite.
| Assignee | ||
Comment 4•13 years ago
|
||
Attachment #693202 -
Flags: review?(gal)
Comment 5•13 years ago
|
||
Comment on attachment 693202 [details] [diff] [review]
patch
Make the comment a little clearer.
Attachment #693202 -
Flags: review?(gal) → review+
Comment 6•13 years ago
|
||
Great bug report and diagnosis. ++nsarkar
| Assignee | ||
Comment 7•13 years ago
|
||
Comment 8•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 9•13 years ago
|
||
| Reporter | ||
Comment 10•13 years ago
|
||
Verified the fix. Works correctly now. Thanks.
Comment 11•13 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•