Closed
Bug 887651
Opened 12 years ago
Closed 12 years ago
[SMS] Contact name is double escaped in Notification
Categories
(Firefox OS Graveyard :: Gaia::SMS, defect)
Tracking
(blocking-b2g:leo+, b2g18 verified, b2g-v1.1hd fixed)
RESOLVED
FIXED
blocking-b2g | leo+ |
People
(Reporter: gnarf, Assigned: oconnore)
Details
Attachments
(2 files)
When receiving an SMS from a contact that has <>' or other escaped html characters, the notification will display with <>' etc.
Updated•12 years ago
|
blocking-b2g: leo? → leo+
Updated•12 years ago
|
Assignee: nobody → schung
Updated•12 years ago
|
Assignee: schung → owcarnia
Comment 1•12 years ago
|
||
I think the problem is from ...
Activity_handler.js , sender = Utils.escapeHTML(contact[0].name[0]);
Comment 2•12 years ago
|
||
I've found the same place and this fixes the error. But are we sure contact in all cases is saved with escaped name ?
Comment 3•12 years ago
|
||
I think it doesn't matter since we use textContent and not innerHTML to display name.
Assignee | ||
Comment 4•12 years ago
|
||
Jakub -- contacts are not saved with escaped name. The escaping should be done by the rendering code, which it is in apps/system/js/notifications.js:257.
Sorry for dropping the patch in, I forgot to take this and didn't notice it had been assigned.
Reporter | ||
Comment 5•12 years ago
|
||
Comment on attachment 768717 [details] [review]
Github pull request
r=me - landing
Attachment #768717 -
Flags: review?(gnarf37) → review+
Reporter | ||
Comment 6•12 years ago
|
||
Comment 7•12 years ago
|
||
Comment 8•12 years ago
|
||
v1.1.0hd: 9c9f1445afadcfd7078311341d35800f696fc90d
status-b2g-v1.1hd:
--- → fixed
Issue longer reproduces in the Leo
Build ID: 20130716070204
Gecko: http://hg.mozilla.org/releases/mozilla-b2g18/rev/629020cf576b
Gaia: fb9362d34260771d4a00b9a0e10a6bbad397bd3b
Platform Version: 18.1
Contact name no longer double escaped in Notification. Result as expected.
Updated•11 years ago
|
Attachment mime type: text/plain → text/x-github-pull-request
You need to log in
before you can comment on or make changes to this bug.
Description
•