[webkit-qt] QtWebkit 5.212 QWebpage creation delay issue

Ramakanth Kesireddy rama.kesi at gmail.com
Tue Dec 15 08:17:56 PST 2020


Am using Qt WebKit 5.212 Alpha4 release through yocto build on top of Qt
5.6.3 binaries and found good with respect to security bugs and fixes as
recommended and QtTestBrowser works fine on target.

Below are the cmake qtwebkit bb options:

 " \
    -DPORT=Qt \

As we donot use javascript but only setHTML when HTML content is available
and setuserstylesheet for the webkit-scrollbar, would like to remove
unwanted initializations of QWebPage for our usecases.

On profiling, adding qDebug() logs with QElapsedTimer in qtwebkit source,
found that QWebPage creation takes lot of time. It could be javascript
being run in the same thread where CPU usage shoots upto 80% and more.

Is there any means to disable the Javascript or any other initializations
on creation of QWebpage being used internally in setHtml?

Not sure if this behavior is similar to
https://github.com/qtwebkit/qtwebkit/issues/903 as we observe increase in
CPU load(more than 90% spike) and memory when it is loading Html(using
setHTML() with more than 10seconds) on button press?

Appreciate if there are any suggestions to fix the behavior in this regard.

Thanks and Regards,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-qt/attachments/20201215/48315bc4/attachment.htm>

More information about the webkit-qt mailing list