2011-06-01 Andreas Kling <kling@webkit.org>
authorAndreas Kling <kling@webkit.org>
Wed, 1 Jun 2011 12:39:46 +0000 (12:39 +0000)
committerAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Thu, 2 Jun 2011 13:06:24 +0000 (10:06 -0300)
commit791c2c861307913712b9d95fc3f96c69d7d6fc45
tree27238fa90f89f4390fab5dc5929854bc0be5bbd3
parentefbf910ad7c49e8cdf81411b4ac0abeea0efd8f8
2011-06-01  Andreas Kling  <kling@webkit.org>

        Reviewed by Benjamin Poulain.

        REGRESSION: [Qt] QNetworkReply delivered by the unsupportedContent() signal does not contain downloaded data
        https://bugs.webkit.org/show_bug.cgi?id=49650

        Defer emission of QWebPage::unsupportedContent() until we're back in the event loop.
        This lets the QNAM backend finish with the reply without handing over ownership to the user code.

        No new tests since this doesn't fail for qrc:// or file:// URLs and our tests can't depend on http:// URLs.

        To correctly solve this issue, we need changes to Qt, tracked here:
        http://bugreports.qt.nokia.com/browse/QTBUG-18718

        * WebCoreSupport/FrameLoaderClientQt.cpp:
        (WebCore::FrameLoaderClientQt::setFrame):
        (WebCore::FrameLoaderClientQt::download):
        * WebCoreSupport/FrameLoaderClientQt.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@87797 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit/qt/ChangeLog
Source/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp
Source/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.h