Bug with firefox rendering some emails on 8.8.15 P16

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
User avatar
JDunphy
Outstanding Member
Outstanding Member
Posts: 573
Joined: Fri Sep 12, 2014 11:18 pm
Location: Victoria, BC
ZCS/ZD Version: 8.8.15_P20 RHEL6 Network Edition
Contact:

Bug with firefox rendering some emails on 8.8.15 P16

Postby JDunphy » Wed Dec 02, 2020 11:10 pm

Greetings,

Some emails are no longer viewable after patch 16 when viewing with firefox that were previously viewable with patch 15. Safari and Chrome work as expected with patch 16.

Zimbra will "containerize" the email to display it in an iframe but are botching the width for firefox. For other browsers they set it correctly to 100% width. The bug is specific to firefox where they are setting the number of pixels for the width and getting it wrong for that iframe container. Safari and Chrome will display the message correctly because they don't attempt to set it by pixel. Note: firefox will display the message correctly if you bounce the email to gmail to view it there.

Here is what is going on.

You can use the debugger inside your browser to locate the appropriate iframe that contains the email to display and will see that they have something odd for the width when firefox is the browser... In our case with a Canada Post Tracking email, width was set to 11588px when with safari and chrome browsers they set it to 100% for this email message.

Prior to P16, we didn't notice this rendering bug and we had some Canada Post tracking email that we viewed previously that was no longer available to us now. I never saw mention in the release notes they were modifying anything related to this in P16??

Workaround:

1) you will need to move your horizontal scroll bar to the right to find and locate the text
2) Other browsers will be able to display the message
3) bounce the email to another email server where then can render it with firefox. (gmail, etc)

HTH,

Jim


Klug
Elite member
Elite member
Posts: 2423
Joined: Mon Dec 16, 2013 11:35 am
Contact:

Re: Bug with firefox rendering some emails on 8.8.15 P16

Postby Klug » Thu Dec 03, 2020 12:35 pm

Is OWASP enabled on this server?
ghen
Posts: 23
Joined: Thu May 12, 2016 1:56 pm
Location: Belgium

Re: Bug with firefox rendering some emails on 8.8.15 P16

Postby ghen » Thu Dec 03, 2020 2:25 pm

Can you share an example e-mail that triggers this?
ghen
Posts: 23
Joined: Thu May 12, 2016 1:56 pm
Location: Belgium

Re: Bug with firefox rendering some emails on 8.8.15 P16

Postby ghen » Thu Dec 03, 2020 2:38 pm

I found some emails from bounce@notifications.canadapost.ca in our logs, that indeed have a display issue with Firefox, however I see exactly the same behaviour with P10 as with P16...
(long horizontal scroll bar with Firefox, displays correctly with Chrome)
ghen
Posts: 23
Joined: Thu May 12, 2016 1:56 pm
Location: Belgium

Re: Bug with firefox rendering some emails on 8.8.15 P16

Postby ghen » Thu Dec 03, 2020 3:34 pm

You are right;
P10: incorrect display (long horizontal scroll bar)
P15: correct display (no scroll bar)
P16: incorrect display again (same as P10)

Those are all versions I can verify right away.

So this issue was fixed somewhere in P11 through P15, but re-introduced in P16.
ghen
Posts: 23
Joined: Thu May 12, 2016 1:56 pm
Location: Belgium

Re: Bug with firefox rendering some emails on 8.8.15 P16

Postby ghen » Thu Dec 03, 2020 3:45 pm

Looks very much like ZCS-8165, this issue was originally fixed in P13 with: https://github.com/Zimbra/zm-web-client ... b9ee08ba6b
But partially reverted again in P16 by ZBUG-1885: https://github.com/Zimbra/zm-web-client ... 4b31093d80
Last edited by ghen on Thu Dec 03, 2020 5:40 pm, edited 1 time in total.
ghen
Posts: 23
Joined: Thu May 12, 2016 1:56 pm
Location: Belgium

Re: Bug with firefox rendering some emails on 8.8.15 P16

Postby ghen » Thu Dec 03, 2020 4:16 pm

Confirmed; you can fix it on P16 by restoring /opt/zimbra/jetty/webapps/zimbra/js/MailCore_all.js{,.zgz} from P15.
User avatar
JDunphy
Outstanding Member
Outstanding Member
Posts: 573
Joined: Fri Sep 12, 2014 11:18 pm
Location: Victoria, BC
ZCS/ZD Version: 8.8.15_P20 RHEL6 Network Edition
Contact:

Re: Bug with firefox rendering some emails on 8.8.15 P16

Postby JDunphy » Thu Dec 03, 2020 4:49 pm

All good info. Thanks for that.

This was reported and is being tracked as ZBUG-1998
User avatar
JDunphy
Outstanding Member
Outstanding Member
Posts: 573
Joined: Fri Sep 12, 2014 11:18 pm
Location: Victoria, BC
ZCS/ZD Version: 8.8.15_P20 RHEL6 Network Edition
Contact:

Re: Bug with firefox rendering some emails on 8.8.15 P16

Postby JDunphy » Thu Dec 03, 2020 5:17 pm

Klug wrote:Is OWASP enabled on this server?

Yes OWASP is enabled.

We don't think it's related however given that other browsers are able to display it correctly. It looks more like a bug related to browser incompatibilities when setting body style width for that iframe. I have one of our web developers looking at the js now to see if we can come up with a quick fix. It is not a show stopper as there are other browsers one can use in a pinch or with enough patience with your scroll bars one should be able to locate the text within the message. We are trying to get in front of this before the calls come in from our users. I have only seen a hand full of messages that have this problem so we were lucky it happened to me. Zimbra has the original email and 3 screen shots of our inspection from the browser debuggers in each browser (chrome, safari, and firefox) for the same email.

It is beginning to look like a simple miscalculation in /opt/zimbra/jetty/webapps/zimbra/js/MailCore_all.js .... It appears from the comment in the code, they are attempting to force a width/height value so that scrollbars are activated for large emails. They just botched the calculation for the firefox browser.
ghen
Posts: 23
Joined: Thu May 12, 2016 1:56 pm
Location: Belgium

Re: Bug with firefox rendering some emails on 8.8.15 P16

Postby ghen » Thu Dec 03, 2020 5:38 pm

Actually the original fix was ZCS-8165 in P13: https://github.com/Zimbra/zm-web-client ... b9ee08ba6b
Not ZBUG-1656 from P14.

This was partially reverted in a later commit: https://github.com/Zimbra/zm-web-client ... 4b31093d80

Return to “Administrators”

Who is online

Users browsing this forum: No registered users and 21 guests