Closed
Bug 873702
Opened 13 years ago
Closed 13 years ago
[Email] HTML tags containing attributes without separating/delimiting whitespace will be emitted as text by the HTML sanitizer (bleach.js)
Categories
(Firefox OS Graveyard :: Gaia::E-Mail, defect, P1)
Tracking
(blocking-b2g:leo+, b2g18 fixed, b2g18-v1.0.1 affected)
People
(Reporter: leo.bugzilla.gaia, Assigned: asuth)
Details
(Whiteboard: [TD-30812], c= , MiniWW, QARegressExclude)
Attachments
(1 file)
|
31.41 KB,
image/png
|
Details |
1. Title : HTML Parsing Errors with images/ background from auto generated mails
2. Precondition : Email should be working and an IMAP account is configured
3. Tester's Action: Launch Email -> Open any email such as received from Google+
4. Detailed Symptom (ENG.) : Some of the HTML contents related to background and Images are not rendered
5. Expected :All the content on email body should shown properly.
6.Reproducibility: Y
1)Frequency Rate : 100%
7.Gaia Master/v1-train : Reproduced
8.Gaia Revision: 3c199e889364a0cc20f1b13a37eb309364a73de9
9.Personal email id: psingapati@gmail.com
Comment 1•13 years ago
|
||
eml contents are send to mail
asuth@mozilla.com.
Please check.
Comment 2•13 years ago
|
||
Adding image that shows html content not parsed
| Assignee | ||
Comment 3•13 years ago
|
||
from IRC:
asuth: psingapati: I believe I've identified the problem. There is a line like this:
asuth: <td style=3D="border-top:5px solid white;background-repeat:no-repeat;"background=3D"
asuth: er, where the '=' after that first =3D is a quoted-printable newline I elided
asuth: I think the lack of whitespace between the style tag and the "background" may be breaking the regex used by the HTML parser
| Assignee | ||
Updated•13 years ago
|
Summary: [Email] HTML Parsing Errors with images/ background from Auto generated mails → [Email] HTML tags containing attributes without separating/delimiting whitespace will be emitted as text by the HTML sanitizer (bleach.js)
Updated•13 years ago
|
Target Milestone: --- → 1.1 QE2
Updated•13 years ago
|
blocking-b2g: leo? → leo+
Updated•13 years ago
|
Whiteboard: [TD-30812] → [TD-30812], c=
Updated•13 years ago
|
Whiteboard: [TD-30812], c= → [TD-30812], c= , MiniWW
| Assignee | ||
Comment 5•13 years ago
|
||
extra context: the html sanitizer lib is bleach.js, we're using the worker-thread-friendly branch:
https://github.com/asutherland/bleach.js/tree/worker-thread-friendly
The test/test-unclean.js test framework that process files in test/unclean and checks against test/unclear/expected. The tests are run with mocha, you would want to do an "npm install" in the bleach.js dir, and then probably do an "npm install -g mocha" to get the mocha test runner on your path (or you can run it out of node_modules somehow? maybe 'npm' can help)?
The regex in question lives here:
https://github.com/asutherland/bleach.js/blob/worker-thread-friendly/lib/bleach.js#L350
I had tried to comment it a lot, but a lot of the regexp is inherited and I was just trying to document what it was doing.
| Assignee | ||
Updated•13 years ago
|
Assignee: nobody → leo.bugzilla.gaia
Status: NEW → ASSIGNED
| Assignee | ||
Updated•13 years ago
|
Assignee: leo.bugzilla.gaia → bugmail
Comment 6•13 years ago
|
||
Andrew are you working on this or should we reassign?
| Assignee | ||
Comment 7•13 years ago
|
||
landed on gaia-email-libs-and-more/master:
https://github.com/mozilla-b2g/gaia-email-libs-and-more/pull/214
https://github.com/mozilla-b2g/gaia-email-libs-and-more/commit/b64dbe054cce60f4ccb30e7abf523b753c6961a8
landed on gaia/master:
https://github.com/mozilla-b2g/gaia/pull/10120
https://github.com/mozilla-b2g/gaia/commit/e73419a5353fedaa44bba4a03dcc6902098c250e
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
status-b2g18:
--- → affected
status-b2g18-v1.0.1:
--- → affected
Resolution: --- → FIXED
Comment 8•13 years ago
|
||
Uplifted e73419a5353fedaa44bba4a03dcc6902098c250e to:
v1-train: 3aca920cdbffec4b438e94246cf25562257fbf69
Updated•13 years ago
|
Flags: in-moztrap?
Updated•13 years ago
|
Flags: in-moztrap? → in-moztrap?(cschmoeckel)
| Assignee | ||
Comment 9•13 years ago
|
||
This would be hard for humans to test and the automated tests cover this.
Whiteboard: [TD-30812], c= , MiniWW → [TD-30812], c= , MiniWW, QARegressExclude
Comment 10•13 years ago
|
||
Added Email Suite Test Case #8935 - [Email] HTML text & links are displayed properly in an e-mail IMAP account
Flags: in-moztrap?(cschmoeckel) → in-moztrap+
You need to log in
before you can comment on or make changes to this bug.
Description
•