Closed
Bug 951958
Opened 11 years ago
Closed 11 years ago
B2G RIL: set/get preferred network type error message is not set accordingly
Categories
(Firefox OS Graveyard :: RIL, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jessica, Assigned: jessica)
Details
Attachments
(1 file, 2 obsolete files)
2.47 KB,
patch
|
hsinyi
:
review+
|
Details | Diff | Splinter Review |
RILContentHelper.handleSimpleRequest() relies on errorMsg to fire request error, we should set the errorMsg accordingly in ril_worker.
Assignee | ||
Comment 1•11 years ago
|
||
Assignee | ||
Comment 2•11 years ago
|
||
Attachment #8349803 -
Attachment is obsolete: true
Assignee | ||
Comment 3•11 years ago
|
||
Comment on attachment 8349815 [details] [diff] [review] proposed patch, v2. Since emulator's modem is multimode, we are not able to make modem return error while setting preferred network type, so no test cases for this yet. :( Try: https://tbpl.mozilla.org/?tree=Try&rev=3042a53d8298
Attachment #8349815 -
Flags: review?(htsai)
Comment 4•11 years ago
|
||
Comment on attachment 8349815 [details] [diff] [review] proposed patch, v2. Review of attachment 8349815 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/system/gonk/ril_worker.js @@ +5882,5 @@ > > options.success = (options.rilRequestError == ERROR_SUCCESS); > + if (!options.success) { > + options.errorMsg = RIL_ERROR_TO_GECKO_ERROR[options.rilRequestError]; > + } Seems redundant to check both options.rilRequestError and options.success. How about this: if (options.rilRequestError) { options.errorMsg = RIL_ERROR_TO_GECKO_ERROR[options.rilRequestError]; } @@ +5890,5 @@ > options.success = (options.rilRequestError == ERROR_SUCCESS); > + if (!options.success) { > + options.errorMsg = RIL_ERROR_TO_GECKO_ERROR[options.rilRequestError]; > + this.sendChromeMessage(options); > + return; ditto:
Attachment #8349815 -
Flags: review?(htsai)
Assignee | ||
Comment 5•11 years ago
|
||
Hsinyi, I am keeping the option.success as discussed, as it is used in RadioInterfaceLayer. Please check if it's okay this way. Thanks.
Assignee: nobody → jjong
Attachment #8349815 -
Attachment is obsolete: true
Attachment #8349913 -
Flags: review?(htsai)
Comment 6•11 years ago
|
||
Comment on attachment 8349913 [details] [diff] [review] proposed patch, v3. Review of attachment 8349913 [details] [diff] [review]: ----------------------------------------------------------------- Thank you.
Attachment #8349913 -
Flags: review?(htsai) → review+
Assignee | ||
Comment 7•11 years ago
|
||
Thank you, Hsinyi. Try for patch v3: https://tbpl.mozilla.org/?tree=Try&rev=72efb06e0504
Keywords: checkin-needed
Comment 8•11 years ago
|
||
https://hg.mozilla.org/integration/b2g-inbound/rev/1136327bc10f
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/1136327bc10f
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•