Closed Bug 1092013 Opened 10 years ago Closed 10 years ago

mozMobileConnection.data.cell is reset to `null` unexpectedly in MobileConnectionService

Categories

(Firefox OS Graveyard :: RIL, defect)

ARM
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
2.1 S8 (7Nov)

People

(Reporter: edgar, Assigned: edgar)

References

Details

(Keywords: regression)

Attachments

(2 files, 1 obsolete file)

Found this by running single marionette test, test_mobile_data_location.js.
Summary: mobileConnection.cell is reset to `null` unexpectedly in MobileConnectionService → mozMobileConnection.data.cell is reset to `null` unexpectedly in MobileConnectionService
It is a regression of bug 1063304.
Blocks: 1063304
Assignee: nobody → echen
The design of updating function (e.g. _updateConnectionInfo() [1]) is to perform updating *only if* new data is passed. Thus, if no new data is passed into updating function, it should just keep the original data unchanged.

[1] http://dxr.mozilla.org/mozilla-central/source/dom/mobileconnection/gonk/MobileConnectionService.js#481-521
Attached patch Patch, v1 (obsolete) — Splinter Review
Comment on attachment 8514823 [details] [diff] [review]
Patch, v1

Please see comment #2, thank you.
Attachment #8514823 - Flags: review?(htsai)
Keywords: regression
Comment on attachment 8515577 [details] [diff] [review]
Part 2: Enable ril debug when running mobileConnection tests, v1

Review of attachment 8515577 [details] [diff] [review]:
-----------------------------------------------------------------

Hi Hsinyi, may I have your review? Thank you.
Attachment #8515577 - Flags: review?(htsai)
Comment on attachment 8514823 [details] [diff] [review]
Patch, v1

Review of attachment 8514823 [details] [diff] [review]:
-----------------------------------------------------------------

Thank you! Please add a comment on the design.
Attachment #8514823 - Flags: review?(htsai) → review+
Attachment #8515577 - Flags: review?(htsai) → review+
(In reply to Hsin-Yi Tsai [:hsinyi] from comment #7)
> Comment on attachment 8514823 [details] [diff] [review]
> Patch, v1
> 
> Review of attachment 8514823 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> Thank you! Please add a comment on the design.

Will do, thank you.
Add comments about the design of updating function.
Attachment #8514823 - Attachment is obsolete: true
Attachment #8516458 - Flags: review+
https://hg.mozilla.org/mozilla-central/rev/64db7d36f278
https://hg.mozilla.org/mozilla-central/rev/566f2111af95
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2.1 S8 (7Nov)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: