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)
Tracking
(blocking-b2g:leo+, b2g18 fixed)
People
(Reporter: julienw, Assigned: julienw)
References
Details
(Keywords: regression)
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
julienw
:
review+
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Comment 1•11 years ago
|
||
---
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)
Assignee | ||
Comment 2•11 years ago
|
||
asking leo+ on this because this is a regression from mms patches.
Comment 3•11 years ago
|
||
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+
Assignee | ||
Comment 4•11 years ago
|
||
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+
Assignee | ||
Comment 5•11 years ago
|
||
unrelated lint error on travis.
master: 33abecaf661a4bb7440726c8809748368cc9af60
Updated•11 years ago
|
blocking-b2g: leo? → leo+
Flags: needinfo?(dietrich)
Comment 6•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 7•11 years ago
|
||
oops somehow forgot to resolve/fixed the bug, thanks ;)
Comment 8•11 years ago
|
||
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)
Comment 9•11 years ago
|
||
after applying the 872395 cherry pick, this picks clean
Flags: needinfo?(felash) → needinfo?(jhford)
Comment 10•11 years ago
|
||
v1-train: a86878d4ac90b4cc2792c247d08455f6e4ee1769
status-b2g18:
--- → fixed
Flags: needinfo?(jhford)
Updated•11 years ago
|
Flags: in-moztrap-
You need to log in
before you can comment on or make changes to this bug.
Description
•