Closed Bug 876758 Opened 11 years ago Closed 11 years ago

[sms] normal messages are incorrectly considered class-0 messages when clicking the notification and the app is not running

Categories

(Firefox OS Graveyard :: Gaia::SMS, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:leo+, b2g18 fixed)

RESOLVED FIXED
blocking-b2g leo+
Tracking Status
b2g18 --- fixed

People

(Reporter: julienw, Assigned: julienw)

References

Details

(Keywords: regression)

Attachments

(1 file, 1 obsolete file)

STR: * receive a SMS while the app is not displayed => you should get a notification * kill the app * click the notification Expected: * the app launches, the sms is displayed in the app Actual: * the sms is displayed like a class0 message The problem is that we incorrectly rely on a "type" param being either "sms" or "mms", whereas that type is only set for class0 messages.
Attached patch patch v1 (obsolete) (deleted) — Splinter Review
--- apps/sms/js/activity_handler.js | 17 +++---- apps/sms/test/unit/activity_handler_test.js | 66 ++++++++++++++++++++++++++- apps/sms/test/unit/mock_utils.js | 1 + 3 files changed, 75 insertions(+), 9 deletions(-) Sorry, I can't open a PR because github seems done for my repository now :( This applies on top of patch for Bug 867885
Assignee: nobody → felash
Attachment #754913 - Flags: review?(gnarf37)
asking leo+ on this because this is a regression from mms patches.
blocking-b2g: --- → leo?
Flags: needinfo?(dietrich)
Keywords: regression
Comment on attachment 754913 [details] [diff] [review] patch v1 Review of attachment 754913 [details] [diff] [review]: ----------------------------------------------------------------- I still hate the async getSelf() - we should be able to mock that away with one of these, either way! r=me
Attachment #754913 - Flags: review?(gnarf37) → review+
Attached patch patch v2 (deleted) — Splinter Review
carrying r=gnarf. removed the async part in the mozApps mock, added one test, and fixed one bug (I missed a return in the right place). opened PR https://github.com/mozilla-b2g/gaia/pull/10068 and waiting for travis
Attachment #754913 - Attachment is obsolete: true
Attachment #755274 - Flags: review+
unrelated lint error on travis. master: 33abecaf661a4bb7440726c8809748368cc9af60
blocking-b2g: leo? → leo+
Flags: needinfo?(dietrich)
Blocks: 876003
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
oops somehow forgot to resolve/fixed the bug, thanks ;)
I was not able to uplift this bug to v1-train. If this bug has dependencies which are not marked in this bug, please comment on this bug. If this bug depends on patches that aren't approved for v1-train, we need to re-evaluate the approval. Otherwise, if this is just a merge conflict, you might be able to resolve it with: git checkout v1-train git cherry-pick -x 33abecaf661a4bb7440726c8809748368cc9af60 <RESOLVE MERGE CONFLICTS> git commit
Flags: needinfo?(felash)
Depends on: 872395
after applying the 872395 cherry pick, this picks clean
Flags: needinfo?(felash) → needinfo?(jhford)
v1-train: a86878d4ac90b4cc2792c247d08455f6e4ee1769
Flags: needinfo?(jhford)
Flags: in-moztrap-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: