Bug 376589 - Layout destroyed after clicking link with HiDPI
Summary: Layout destroyed after clicking link with HiDPI
Status: RESOLVED UPSTREAM
Alias: None
Product: kmail2
Classification: Applications
Component: message list (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-17 17:56 UTC by Thiago Macieira
Modified: 2017-04-04 06:32 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
"Before" screenshot (576.94 KB, image/png)
2017-02-17 17:56 UTC, Thiago Macieira
Details
"After" screenshot (643.09 KB, image/png)
2017-02-17 17:56 UTC, Thiago Macieira
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thiago Macieira 2017-02-17 17:56:02 UTC
When clicking a link in an email in KMail, the message view layout is destroyed and cannot be recovered unless you close KMail's main window and open it again. This happens for *every* link, but only happens on HiDPI screens (QT_SCREEN_SCALE_FACTOR=2 or higher).

This has been happening since the switch to QtWebEngine. It has never worked with it.

Steps to reproduce:
1) close kmail (killall kmail to be sure)
2) from a terminal, open kmail in HiDPI mode: QT_SCREEN_SCALE_FACTOR=2 kmail
3) select an email that has a web link
4) click it

Expected results:
Browser opens and KMail window remains as it was before clicking the link (see "before" screenshot)

Actual results:
Browser opens, but KMail window layout is destroyed (see "after" screenshot).
Comment 1 Thiago Macieira 2017-02-17 17:56:30 UTC
Created attachment 104078 [details]
"Before" screenshot
Comment 2 Thiago Macieira 2017-02-17 17:56:48 UTC
Created attachment 104079 [details]
"After" screenshot
Comment 3 David Faure 2017-02-20 08:56:42 UTC
I was able to reproduce the same bug in webengine's demobrowser, so it's a Qt bug.


https://bugreports.qt.io/browse/QTBUG-59017
Comment 4 David Faure 2017-04-04 06:32:47 UTC
Note: if `kcmshell5 componentchooser` says the webbrowser is firefox, the bug doesn't happen.
If OTOH it says "based on the contents of the URL" (i.e. KMail uses KIO), then the bug happens.

That's a workaround for now, and an indication that something in KIO is triggering it.