Open Bug 1208211 Opened 10 years ago Updated 6 months ago

html email is displayed differently than other renderers

Categories

(Core :: Layout, defect)

40 Branch
defect

Tracking

()

Tracking Status
firefox44 --- affected

People

(Reporter: michael.wiktowy, Unassigned)

Details

(Whiteboard: DUPEME)

Attachments

(5 files, 1 obsolete file)

Attached file Wonky Email Source - Scrubbed (obsolete) —
User Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:40.0) Gecko/20100101 Firefox/40.0 Build ID: 20150827075926 Steps to reproduce: Received an email that was possibly malformed. Actual results: Much of the plain text content was hidden while the partial (malformed) html content was displayed. Expected results: Other renderers of the same email (GMail web interface viewed through Chrome, Evolution, Email app on Android phone) all displayed the email as it was intended. Likely Firefox is making a very strict interpretation of syntax that the others are not. I am not sure if interpretation is wrong and you want to match the others or everyone else is wrong. I will attach the email source with source and recipient scrubbed but all else intact. If you want to original, unscrubbed email, please provide a side-channel to send it to.
How did you view this email in Firefox? Was it through the gmail web interface or something else?
The viewing issue was seen via the full web interface of GMail at https://mail.google.com/ . It displayed the same way with Firefox mobile on my Android phone. Switching to the dumbed down "html mode" of the web interface displayed the entire contents of the plain text portion of the email.
FWIW the email you attached is multipart/alternative, and includes both a plain-text version and a HTML version of the email. Except that the HTML version only has the first sentence of the email and has a large number of useless div tags. So it sounds kind of like when you viewed this email in Firefox, Gmail decided to show the text/html version of the email and in other browsers/mail clients you got the text/plain version of the email. Would you be able to take a screenshot of the email rendering in Gmail in Firefox vs Chrome?
I agree that is what is happening. I am wondering why every single other non-Firefox viewer is interpreting things "as intended" rather than strictly interpreting the garbage and displaying it. I can certainly take a screen shot of what the exact same message looks like in Chrome, Firefox and Evolution ... but only later on today after I get home from work. What I am noticing is that when I "Show original" in Chrome, I get more than the truncated version that I posted here ... I get a whole bunch more messy html including the content that was in the plain text portion. I will post more details later.
Added a fix to scrubbed original email source. All the html info section was there. It was just after a large whitespace that I hadn't scrolled down for when I cut and pasted the first time. Same rendering problem still exists ... just more mysterious why Firefox ignored everything after the whitespace ... differently for normal display and print layout display. See further attachments.
Attachment #8665598 - Attachment is obsolete: true
Appears to also contain a rendering error of the GMail logo in the print format display. Firefox will not render the <img src="//www.gmail.com/mail/help/images/logo1.gif" width=143 height=59 alt="Gmail"> tag. Not sure why the http: or https: is missing but the same tag renders in Chrome.
Component: Untriaged → Layout
Product: Firefox → Core
I can reproduce the issue by sending myself the attached email, and opening it in a gmail web interface. I inspected the HTML (by dumping the .innerHTML of the div containing the email body) and it does appear to have the full HTML, but as Michael observed, it is not visible in the interface. It appears to be a Firefox HTML parsing error, perhaps because of the depth of the nesting involved.
Status: UNCONFIRMED → NEW
Component: Layout → HTML: Parser
Ever confirmed: true
Sounds more like the HTML is all there, but we're hitting MAX_REFLOW_DEPTH or similar.
Component: HTML: Parser → Layout
Whiteboard: DUPEME
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: