When directing the WebView to "http://webchat.freenode.net/", the site not only gets not displayed correct (corrupted), but also crashes when the user right clicks and selects "Reload". I tried this in Qt 4.7.0 and 4.7.1 - I think this is caused by the javascript on that site. Here is the stacktrace MSVS gives me: > QtNetworkd4.dll!QHttpNetworkRequest::operation() Line 240 + 0xb bytes C++ QtNetworkd4.dll!QHttpNetworkReplyPrivate::expectContent() Line 801 + 0xb bytes C++ QtNetworkd4.dll!QHttpNetworkConnectionChannel::_q_receiveReply() Line 395 + 0x8 bytes C++ QtNetworkd4.dll!QHttpNetworkConnectionChannel::_q_readyRead() Line 876 C++ QtNetworkd4.dll!QHttpNetworkConnectionChannel::qt_metacall(QMetaObject::Call _c=InvokeMetaMethod, int _id=2, void * * _a=0x003dd2c4) Line 92 + 0x8 bytes C++ QtCored4.dll!QMetaObject::metacall(QObject * object=0x037186cc, QMetaObject::Call cl=InvokeMetaMethod, int idx=6, void * * argv=0x003dd2c4) Line 238 C++ QtCored4.dll!QMetaObject::activate(QObject * sender=0x0371a230, const QMetaObject * m=0x67342060, int local_signal_index=0, void * * argv=0x00000000) Line 3272 + 0x27 bytes C++ QtCored4.dll!QIODevice::readyRead() Line 91 + 0x12 bytes C++ QtNetworkd4.dll!QAbstractSocketPrivate::canReadNotification() Line 640 C++ QtNetworkd4.dll!QAbstractSocketPrivate::readNotification() Line 77 + 0x15 bytes C++ QtNetworkd4.dll!QAbstractSocketEngine::readNotification() Line 155 C++ QtNetworkd4.dll!QReadNotifier::event(QEvent * e=0x003dd87c) Line 1104 C++ QtGuid4.dll!QApplicationPrivate::notify_helper(QObject * receiver=0x05a974b0, QEvent * e=0x003dd87c) Line 4445 + 0x11 bytes C++ QtGuid4.dll!QApplication::notify(QObject * receiver=0x05a974b0, QEvent * e=0x003dd87c) Line 3845 + 0x10 bytes C++ QtCored4.dll!QCoreApplication::notifyInternal(QObject * receiver=0x05a974b0, QEvent * event=0x003dd87c) Line 732 + 0x15 bytes C++ QtCored4.dll!QCoreApplication::sendEvent(QObject * receiver=0x05a974b0, QEvent * event=0x003dd87c) Line 215 + 0x39 bytes C++ QtCored4.dll!qt_internal_proc(HWND__ * hwnd=0x00080fa4, unsigned int message=1024, unsigned int wp=1832, long lp=1) Line 491 + 0xf bytes C++
I just tested the site with the FancyBrowser Example that is included with Qt - I get the same error there.
Please follow http://trac.webkit.org/wiki/QtWebKitBugs when reporing bugs here (missing Qt keyword). I have no problem with the site with WebKit trunk on Mac. Do you still have the problem or the site has changed and that cannot be reproduced anymore?
Created attachment 83474 [details] Screenshot of the issue
I can reproduce the issue with Linux and QtTestBrowser. I do have rendering issue but no crash when reloading the page. Steps to reproduce : - Open QtTestBrowser (and let the default size, do not maximized). - Go to http://webchat.freenode.net/ (do not log in). - Maximized the QtTestBrowser. Lot of rendering issue are showing. I suspect the page to not be properly repainted. With QGraphicsView mode there is no artifacts but a white background. Reloading make the rendering to work properly.
Well It seems it's for all websites not only this one.
Most probably related to https://bugs.webkit.org/show_bug.cgi?id=54865
I have no way to test this, but perhaps QWebPage::setViewportSize() now needs a call to setBoundsSize().
Or just change to call resize().
I did it in the other bug, posted the patch like 2 minutes ago :)
With trunk (r79441) it works perfectly. I can log in, chat and no crash. Qt 4.7.0 and Qt 4.7.1 includes quite an old version of QtWebKit (2.0 more precisely). We're working on an update.