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)

ARM
Gonk (Firefox OS)

Tracking

(blocking-b2g:leo+, b2g18 fixed, b2g18-v1.0.1 affected)

RESOLVED FIXED
1.1 QE2 (6jun)
blocking-b2g leo+
Tracking Status
b2g18 --- fixed
b2g18-v1.0.1 --- affected

People

(Reporter: leo.bugzilla.gaia, Assigned: asuth)

Details

(Whiteboard: [TD-30812], c= , MiniWW, QARegressExclude)

Attachments

(1 file)

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
eml contents are send to mail asuth@mozilla.com. Please check.
Attached image HTML content not parsed —
Adding image that shows html content not parsed
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: nobody → leo.bugzilla.gaia
Assignee: leo.bugzilla.gaia → nobody
blocking-b2g: --- → leo?
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)
Target Milestone: --- → 1.1 QE2
blocking-b2g: leo? → leo+
Whiteboard: [TD-30812] → [TD-30812], c=
Whiteboard: [TD-30812], c= → [TD-30812], c= , MiniWW
As discussed in San Diego work week marking this as leo+.
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: nobody → leo.bugzilla.gaia
Status: NEW → ASSIGNED
Assignee: leo.bugzilla.gaia → bugmail
Andrew are you working on this or should we reassign?
Uplifted e73419a5353fedaa44bba4a03dcc6902098c250e to: v1-train: 3aca920cdbffec4b438e94246cf25562257fbf69
Flags: in-moztrap?
Flags: in-moztrap? → in-moztrap?(cschmoeckel)
This would be hard for humans to test and the automated tests cover this.
Whiteboard: [TD-30812], c= , MiniWW → [TD-30812], c= , MiniWW, QARegressExclude
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.

Attachment

General

Creator:
Created:
Updated:
Size: