Changeset 95545 in webkit


Ignore:
Timestamp:
Sep 20, 2011 9:08:20 AM (13 years ago)
Author:
alexis.menard@openbossa.org
Message:

[Qt][WK2] Export QNetworkReply in the QtWebKit QML module.
https://bugs.webkit.org/show_bug.cgi?id=68401

Reviewed by Simon Hausmann.

Add QNetworkReply in the QtWebKit module. We use the enum QNetworkReply::NetworkError
as the error code when the load fails. It is not used in the QtQuick module therefore
the QML team thinks it should belong here. Also added some auto-tests to cover the
loading errors.

  • UIProcess/API/qt/qmlplugin/plugin.cpp:

(WebKit2QmlPlugin::registerTypes):

  • UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_loadFail.qml: Added.
  • UIProcess/API/qt/tests/qmltests/TouchWebView/tst_loadFail.qml: Added.
Location:
trunk/Source/WebKit2
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r95542 r95545  
     12011-09-20  Alexis Menard  <alexis.menard@openbossa.org>
     2
     3        [Qt][WK2] Export QNetworkReply in the QtWebKit QML module.
     4        https://bugs.webkit.org/show_bug.cgi?id=68401
     5
     6        Reviewed by Simon Hausmann.
     7
     8        Add QNetworkReply in the QtWebKit module. We use the enum QNetworkReply::NetworkError
     9        as the error code when the load fails. It is not used in the QtQuick module therefore
     10        the QML team thinks it should belong here. Also added some auto-tests to cover the
     11        loading errors.
     12
     13        * UIProcess/API/qt/qmlplugin/plugin.cpp:
     14        (WebKit2QmlPlugin::registerTypes):
     15        * UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_loadFail.qml: Added.
     16        * UIProcess/API/qt/tests/qmltests/TouchWebView/tst_loadFail.qml: Added.
     17
    1182011-09-20  Csaba Osztrogonác  <ossy@webkit.org>
    219
  • trunk/Source/WebKit2/UIProcess/API/qt/qmlplugin/plugin.cpp

    r92373 r95545  
    2525#include <QtDeclarative/qdeclarative.h>
    2626#include <QtDeclarative/qdeclarativeextensionplugin.h>
     27#include <QtNetwork/qnetworkreply.h>
    2728
    2829QT_BEGIN_NAMESPACE
     
    3839        qmlRegisterUncreatableType<QWebNavigationController>(uri, 5, 0, "NavigationController", QObject::tr("Cannot create separate instance of NavigationController"));
    3940        qmlRegisterUncreatableType<QTouchWebPage>(uri, 5, 0, "TouchWebPage", QObject::tr("Cannot create separate instance of TouchWebPage, use TouchWebView"));
     41        qmlRegisterUncreatableType<QNetworkReply>(uri, 5, 0, "NetworkReply", QObject::tr("Cannot create separate instance of NetworkReply"));
    4042    }
    4143};
Note: See TracChangeset for help on using the changeset viewer.