| Summary: | ktp-text-ui does not display content with Qt 5.11 | ||
|---|---|---|---|
| Product: | [Unmaintained] telepathy | Reporter: | Eugene Shalygin <eugene.shalygin+bugzilla.kde> |
| Component: | text-ui | Assignee: | Telepathy Bugs <kde-telepathy-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | kde |
| Priority: | NOR | ||
| Version First Reported In: | git-latest | ||
| Target Milestone: | Future | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
Cool thanks. If you have commit access, go ahead and ship it. Otherwise I'll do it I don't have commit rights; please commit the change for me. Merged, thanks |
Contents is not displayed and KIOExec error is shown instead. Seems like the problem is rejecting data:// URLs which are used by QWebEnginePage::setHtml(). The following patch makes it work. diff --git a/lib/adium-theme-view.cpp b/lib/adium-theme-view.cpp index 3b37285..3819788 100644 --- a/lib/adium-theme-view.cpp +++ b/lib/adium-theme-view.cpp @@ -68,6 +68,8 @@ bool AdiumThemePage::acceptNavigationRequest(const QUrl &url, QWebEnginePage::Na Q_EMIT nextConversation(); } else if (url.fragment() == QLatin1String("x-prevConversation")) { Q_EMIT prevConversation(); + } else if (url.scheme() == QLatin1String("data")) { + return true; } else { QDesktopServices::openUrl(url); }