Changeset 82489 in webkit
- Timestamp:
- Mar 30, 2011 1:14:13 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r82488 r82489 1 2011-03-30 Robert Hogan <robert@webkit.org> 2 3 Reviewed by Antonio Gomes. 4 5 [Qt] Fix LoadHTMLStringItem::invoke() after r75966 6 7 Unskip http/tests/navigation/go-back-to-error-page.html 8 9 https://bugs.webkit.org/show_bug.cgi?id=52614 10 11 * platform/qt/Skipped: 12 1 13 2011-03-30 Mihai Parparita <mihaip@chromium.org> 2 14 -
trunk/LayoutTests/platform/qt/Skipped
r82476 r82489 3175 3175 fast/xmlhttprequest/xmlhttprequest-nonexistent-file.html 3176 3176 3177 # [Qt] Fix LoadHTMLStringItem::invoke() after r759663178 # https://bugs.webkit.org/show_bug.cgi?id=526143179 http/tests/navigation/go-back-to-error-page.html3180 3181 3177 # [Qt] LayoutTests/media/video-currentTime-delay.html fails 3182 3178 # https://bugs.webkit.org/show_bug.cgi?id=52859 -
trunk/Source/WebKit/qt/ChangeLog
r82243 r82489 1 2011-03-30 Robert Hogan <robert@webkit.org> 2 3 Reviewed by Antonio Gomes. 4 5 [Qt] Fix LoadHTMLStringItem::invoke() after r75966 6 7 Add DRT support for loading an alternate HTML string 8 for error pages. This allows Qt to unskip 9 http/tests/navigation/go-back-to-error-page.html. 10 11 https://bugs.webkit.org/show_bug.cgi?id=52614 12 13 * WebCoreSupport/DumpRenderTreeSupportQt.cpp: 14 (DumpRenderTreeSupportQt::setAlternateHtml): 15 * WebCoreSupport/DumpRenderTreeSupportQt.h: 16 1 17 2011-03-29 Alexis Menard <alexis.menard@openbossa.org> 2 18 -
trunk/Source/WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.cpp
r82059 r82489 951 951 } 952 952 953 // API Candidate? 953 954 QString DumpRenderTreeSupportQt::responseMimeType(QWebFrame* frame) 954 955 { … … 1040 1041 } 1041 1042 1043 // API Candidate? 1044 void DumpRenderTreeSupportQt::setAlternateHtml(QWebFrame* frame, const QString& html, const QUrl& baseUrl, const QUrl& failingUrl) 1045 { 1046 KURL kurl(baseUrl); 1047 WebCore::Frame* coreFrame = QWebFramePrivate::core(frame); 1048 WebCore::ResourceRequest request(kurl); 1049 const QByteArray utf8 = html.toUtf8(); 1050 WTF::RefPtr<WebCore::SharedBuffer> data = WebCore::SharedBuffer::create(utf8.constData(), utf8.length()); 1051 WebCore::SubstituteData substituteData(data, WTF::String("text/html"), WTF::String("utf-8"), failingUrl); 1052 coreFrame->loader()->load(request, substituteData, false); 1053 } 1054 1042 1055 // Provide a backward compatibility with previously exported private symbols as of QtWebKit 4.6 release 1043 1056 -
trunk/Source/WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.h
r80319 r82489 199 199 200 200 static QUrl mediaContentUrlByElementId(QWebFrame*, const QString& elementId); 201 static void setAlternateHtml(QWebFrame*, const QString& html, const QUrl& baseUrl, const QUrl& failingUrl); 201 202 }; 202 203 -
trunk/Tools/ChangeLog
r82484 r82489 1 2011-03-30 Robert Hogan <robert@webkit.org> 2 3 Reviewed by Antonio Gomes. 4 5 [Qt] Fix LoadHTMLStringItem::invoke() after r75966 6 Unskip http/tests/navigation/go-back-to-error-page.html 7 8 Also add the location of DumpRenderTreeSupportQt.h 9 to DRT's include paths. 10 11 https://bugs.webkit.org/show_bug.cgi?id=52614 12 13 * DumpRenderTree/qt/DumpRenderTree.pro: 14 * DumpRenderTree/qt/DumpRenderTreeQt.cpp: 15 * DumpRenderTree/qt/DumpRenderTreeQt.h: 16 * DumpRenderTree/qt/GCControllerQt.cpp: 17 * DumpRenderTree/qt/LayoutTestControllerQt.cpp: 18 (LayoutTestController::queueLoadHTMLString): 19 * DumpRenderTree/qt/LayoutTestControllerQt.h: 20 * DumpRenderTree/qt/PlainTextControllerQt.cpp: 21 * DumpRenderTree/qt/TextInputControllerQt.cpp: 22 * DumpRenderTree/qt/WorkQueueItemQt.cpp: 23 (LoadAlternateHTMLStringItem::invoke): 24 * DumpRenderTree/qt/WorkQueueItemQt.h: 25 (LoadAlternateHTMLStringItem::LoadAlternateHTMLStringItem): 26 * QtTestBrowser/QtTestBrowser.pro: 27 * QtTestBrowser/launcherwindow.h: 28 1 29 2011-03-30 Adam Barth <abarth@webkit.org> 2 30 -
trunk/Tools/DumpRenderTree/qt/DumpRenderTree.pro
r82125 r82489 10 10 INCLUDEPATH += ../../../Source/JavaScriptCore 11 11 INCLUDEPATH += ../../../Source/JavaScriptCore/ForwardingHeaders 12 INCLUDEPATH += ../../../Source/WebKit/qt/WebCoreSupport 12 13 INCLUDEPATH += $$BASEDIR 13 14 DESTDIR = ../../bin -
trunk/Tools/DumpRenderTree/qt/DumpRenderTreeQt.cpp
r81588 r82489 33 33 34 34 #include "DumpRenderTreeQt.h" 35 #include " ../../../Source/WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.h"35 #include "DumpRenderTreeSupportQt.h" 36 36 #include "EventSenderQt.h" 37 37 #include "GCControllerQt.h" -
trunk/Tools/DumpRenderTree/qt/DumpRenderTreeQt.h
r81588 r82489 41 41 #endif 42 42 43 #include " ../../../Source/WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.h"43 #include "DumpRenderTreeSupportQt.h" 44 44 #include <qgraphicsview.h> 45 45 #include <qgraphicswebview.h> -
trunk/Tools/DumpRenderTree/qt/GCControllerQt.cpp
r75908 r82489 30 30 #include "config.h" 31 31 #include "GCControllerQt.h" 32 #include " ../../../Source/WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.h"32 #include "DumpRenderTreeSupportQt.h" 33 33 34 34 #include <qwebpage.h> -
trunk/Tools/DumpRenderTree/qt/LayoutTestControllerQt.cpp
r82172 r82489 29 29 #include "config.h" 30 30 #include "LayoutTestControllerQt.h" 31 #include " ../../../Source/WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.h"31 #include "DumpRenderTreeSupportQt.h" 32 32 33 33 #include "DumpRenderTreeQt.h" … … 316 316 } 317 317 318 void LayoutTestController::queueLoadHTMLString(const QString& content, const QString& baseURL) 319 { 320 WorkQueue::shared()->queue(new LoadHTMLStringItem(content, baseURL, m_drt->webPage())); 318 void LayoutTestController::queueLoadHTMLString(const QString& content, const QString& baseURL, const QString& failingURL) 319 { 320 if (failingURL.isEmpty()) 321 WorkQueue::shared()->queue(new LoadHTMLStringItem(content, baseURL, m_drt->webPage())); 322 else 323 WorkQueue::shared()->queue(new LoadAlternateHTMLStringItem(content, baseURL, failingURL, m_drt->webPage())); 321 324 } 322 325 -
trunk/Tools/DumpRenderTree/qt/LayoutTestControllerQt.h
r81733 r82489 122 122 void queueForwardNavigation(int howFarForward); 123 123 void queueLoad(const QString& url, const QString& target = QString()); 124 void queueLoadHTMLString(const QString& content, const QString& baseURL = QString() );124 void queueLoadHTMLString(const QString& content, const QString& baseURL = QString(), const QString& failingURL = QString()); 125 125 void queueReload(); 126 126 void queueLoadingScript(const QString& script); -
trunk/Tools/DumpRenderTree/qt/PlainTextControllerQt.cpp
r75908 r82489 29 29 #include "PlainTextControllerQt.h" 30 30 31 #include " ../../../Source/WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.h"31 #include "DumpRenderTreeSupportQt.h" 32 32 #include <QApplication> 33 33 #include <QInputMethodEvent> -
trunk/Tools/DumpRenderTree/qt/TextInputControllerQt.cpp
r75908 r82489 29 29 #include "config.h" 30 30 #include "TextInputControllerQt.h" 31 #include " ../../../Source/WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.h"31 #include "DumpRenderTreeSupportQt.h" 32 32 33 33 #include <QApplication> -
trunk/Tools/DumpRenderTree/qt/WorkQueueItemQt.cpp
r63191 r82489 29 29 #include "config.h" 30 30 #include "WorkQueueItemQt.h" 31 #include "DumpRenderTreeSupportQt.h" 31 32 32 33 QWebFrame* findFrameNamed(const QString& frameName, QWebFrame* frame) … … 73 74 } 74 75 76 bool LoadAlternateHTMLStringItem::invoke() const 77 { 78 Q_ASSERT(m_webPage); 79 80 QWebFrame* frame = m_webPage->mainFrame(); 81 if (!frame) 82 return false; 83 84 DumpRenderTreeSupportQt::setAlternateHtml(frame, m_content, QUrl(m_baseURL), QUrl(m_failingURL)); 85 return true; 86 } 87 75 88 bool ReloadItem::invoke() const 76 89 { -
trunk/Tools/DumpRenderTree/qt/WorkQueueItemQt.h
r63191 r82489 81 81 }; 82 82 83 class LoadAlternateHTMLStringItem : public WorkQueueItem { 84 public: 85 LoadAlternateHTMLStringItem(const QString& content, const QString& baseURL, const QString &failingURL, QWebPage *page) 86 : WorkQueueItem(page) 87 , m_content(content) 88 , m_baseURL(baseURL) 89 , m_failingURL(failingURL) 90 { 91 } 92 93 private: 94 virtual bool invoke() const; 95 96 QString m_content; 97 QString m_baseURL; 98 QString m_failingURL; 99 }; 100 83 101 class ReloadItem : public WorkQueueItem { 84 102 public: -
trunk/Tools/QtTestBrowser/QtTestBrowser.pro
r82125 r82489 27 27 isEmpty(OUTPUT_DIR): OUTPUT_DIR = ../.. 28 28 include(../../Source/WebKit.pri) 29 INCLUDEPATH += ../../Source/WebKit/qt/WebCoreSupport 29 30 30 31 DESTDIR = $$OUTPUT_DIR/bin -
trunk/Tools/QtTestBrowser/launcherwindow.h
r82244 r82489 62 62 #endif 63 63 64 #include "DumpRenderTreeSupportQt.h" 64 65 #include "mainwindow.h" 65 66 #include "urlloader.h" … … 68 69 #include "webpage.h" 69 70 #include "webview.h" 70 #include "../../Source/WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.h"71 71 72 72 #ifdef Q_WS_MAEMO_5
Note: See TracChangeset
for help on using the changeset viewer.