Bug 2214089

Summary: The HTML attachment preview area is way too small to display anything
Product: [Fedora] Fedora Reporter: Andrea Santilli <sacntct>
Component: evolutionAssignee: Milan Crha <mcrha>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 38CC: henning.noren, mcrha, rstrode
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-06-16 05:51:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Andrea Santilli 2023-06-11 18:19:48 UTC
Evolution 3.48.3 is not showing HTML mail contents correctly when plain text is set as the default display mode. This bug is not present in version 3.48.0.
Precisely, the problem arises when you set the preferences to show html parts as attachments and to always show plain text. When you pick an email containing html parts, scroll all the way down and finally click the html content button to enlarge the html preview area: such area will be so small that it won't let you see anything. The width looks correct but the height doesn't, until you resize the Evolution window and force it the redraw the contents.

I guess ResizeObserver not working as expected, as this issue can be worked around by commenting out line 1358 in /usr/share/evolution/webkit/e-web-view.js (Evo.mailDisplayResizeObserver.observe(doc.body);)


Reproducible: Always

Steps to Reproduce:
1. enable "Show suppressed HTML parts as attachments" and set the "HTML Mode" to "Only ever show plain text" in the preferences (Preferences -> Mail Preferences -> HTML Messages).
2. pick any email with html contents and scroll all the way down, till you reach the "HTML document attachment" button, then click it to enlarge the HTML content preview.
3. the HTML area has such a very short height that won't let you see anything, until you resize Evolution's window.

Actual Results:  
The html preview area is too small to show anything

Expected Results:  
The html preview area should show the correct height.

Comment 1 Milan Crha 2023-06-12 05:50:48 UTC
Thanks for a bug report. I cannot reproduce it here. I picked two random HTML messages and when I expand the artificial HTML attachment its content is shown properly. This is with webkit2gtk4.1-2.40.1-1.fc37.x86_64 .

By the way, this does not sound like a Fedora specific bug. A more suitable place to file such report is upstream, at https://gitlab.gnome.org/GNOME/evolution/-/issues . I do not know whether you've an account there though. I can forward it there, if needed.

Comment 2 Milan Crha 2023-06-16 05:51:51 UTC
This appeared in the upstream bug tracker [1], thus I'm closing this in favor of it. Please see it for any further updates.

[1] https://gitlab.gnome.org/GNOME/evolution/-/issues/2400

Comment 3 Milan Crha 2023-06-28 12:26:18 UTC
*** Bug 2218182 has been marked as a duplicate of this bug. ***