[kmail2] [Bug 331156] Display of HTML-Message extremely slow

Jon Moon jon.moon at cantab.net
Mon May 26 19:10:53 BST 2014


https://bugs.kde.org/show_bug.cgi?id=331156

--- Comment #22 from Jon Moon <jon.moon at cantab.net> ---
Consistent with my earlier analysis, following patch does seem to work around
the problem.  Not sure what is lost by not having the html quote coloring.

jmoon at jmoon-w530:~/kde$ diff -c10
kdepim-4.13.1{-orig,}/messageviewer/viewer/htmlquotecolorer.cpp 
*** kdepim-4.13.1-orig/messageviewer/viewer/htmlquotecolorer.cpp       
2014-05-07 11:01:39.000000000 +0100
--- kdepim-4.13.1/messageviewer/viewer/htmlquotecolorer.cpp     2014-05-26
18:41:06.013342901 +0100
***************
*** 26,45 ****
--- 26,46 ----
  #include <QWebPage>
  #include <QWebFrame>
  #include <QWebElement>
  #endif

  using namespace MessageViewer;

  HTMLQuoteColorer::HTMLQuoteColorer()
  {
  }
+ #define KDEPIM_NO_WEBKIT

  QString HTMLQuoteColorer::process( const QString &htmlSource,
QString&extraHead )
  {
  #ifndef KDEPIM_NO_WEBKIT
      // Create a DOM Document from the HTML source
      QWebPage page(0);
      page.settings()->setAttribute( QWebSettings::JavascriptEnabled, false );
      page.settings()->setAttribute( QWebSettings::JavaEnabled, false );
      page.settings()->setAttribute( QWebSettings::PluginsEnabled, false );

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Kdepim-bugs mailing list