Changeset 76451 in webkit
- Timestamp:
- Jan 22, 2011 9:27:34 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r76450 r76451 1 2011-01-22 Robert Hogan <robert@webkit.org> 2 3 Reviewed by Andreas Kling. 4 5 [Qt] Support layoutTestController.addURLToRedirect() 6 https://bugs.webkit.org/show_bug.cgi?id=52956 7 8 * platform/qt/Skipped: 9 1 10 2011-01-22 Nikolas Zimmermann <nzimmermann@rim.com> 2 11 -
trunk/LayoutTests/platform/qt/Skipped
r76446 r76451 784 784 fast/ruby/rubyDOM-remove-text1.html 785 785 fast/ruby/rubyDOM-remove-text2.html 786 787 # ------- not obeying layoutTestController.addURLToRedirect()788 http/tests/loading/cross-origin-XHR-willLoadRequest.html789 786 790 787 # ============================================================================= # -
trunk/Source/WebKit/qt/ChangeLog
r76378 r76451 1 2011-01-22 Robert Hogan <robert@webkit.org> 2 3 Reviewed by Andreas Kling. 4 5 [Qt] Support layoutTestController.addURLToRedirect() 6 https://bugs.webkit.org/show_bug.cgi?id=52956 7 8 * WebCoreSupport/DumpRenderTreeSupportQt.cpp: 9 (DumpRenderTreeSupportQt::addURLToRedirect): 10 * WebCoreSupport/DumpRenderTreeSupportQt.h: 11 * WebCoreSupport/FrameLoaderClientQt.cpp: 12 (WebCore::FrameLoaderClientQt::dispatchWillSendRequest): 13 * WebCoreSupport/FrameLoaderClientQt.h: 14 1 15 2011-01-21 Sam Weinig <sam@webkit.org> 2 16 -
trunk/Source/WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.cpp
r76079 r76451 894 894 } 895 895 896 void DumpRenderTreeSupportQt::addURLToRedirect(const QString& origin, const QString& destination) 897 { 898 FrameLoaderClientQt::URLsToRedirect[origin] = destination; 899 } 900 896 901 // Provide a backward compatibility with previously exported private symbols as of QtWebKit 4.6 release 897 902 -
trunk/Source/WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.h
r76079 r76451 186 186 static QVariantList nodesFromRect(const QWebElement& document, int x, int y, unsigned top, unsigned right, unsigned bottom, unsigned left, bool ignoreClipping); 187 187 static QString responseMimeType(QWebFrame*); 188 static void addURLToRedirect(const QString& origin, const QString& destination); 188 189 }; 189 190 -
trunk/Source/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp
r75878 r76451 181 181 bool FrameLoaderClientQt::policyDelegateEnabled = false; 182 182 bool FrameLoaderClientQt::policyDelegatePermissive = false; 183 QMap<QString, QString> FrameLoaderClientQt::URLsToRedirect = QMap<QString, QString>(); 183 184 184 185 // Taken from DumpRenderTree/chromium/WebViewHost.cpp … … 1022 1023 newRequest.setHTTPHeaderField(sendRequestClearHeaders.at(i).toLocal8Bit().constData(), QString()); 1023 1024 1025 if (QWebPagePrivate::drtRun) { 1026 QString url = newRequest.url().string(); 1027 if (URLsToRedirect.contains(url)) 1028 newRequest.setURL(QUrl(URLsToRedirect[url])); 1029 } 1024 1030 // seems like the Mac code doesn't do anything here by default neither 1025 1031 //qDebug() << "FrameLoaderClientQt::dispatchWillSendRequest" << request.isNull() << request.url().string`(); -
trunk/Source/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.h
r74571 r76451 251 251 static bool deferMainResourceDataLoad; 252 252 static bool dumpHistoryCallbacks; 253 static QMap<QString, QString> URLsToRedirect; 253 254 254 255 private: -
trunk/Tools/ChangeLog
r76446 r76451 1 2011-01-22 Robert Hogan <robert@webkit.org> 2 3 Reviewed by Andreas Kling. 4 5 [Qt] Support layoutTestController.addURLToRedirect() 6 https://bugs.webkit.org/show_bug.cgi?id=52956 7 8 * DumpRenderTree/qt/LayoutTestControllerQt.cpp: 9 (LayoutTestController::addURLToRedirect): 10 * DumpRenderTree/qt/LayoutTestControllerQt.h: 11 1 12 2011-01-22 Robert Hogan <robert@webkit.org> 2 13 -
trunk/Tools/DumpRenderTree/qt/LayoutTestControllerQt.cpp
r75908 r76451 831 831 } 832 832 833 void LayoutTestController::addURLToRedirect(const QString& origin, const QString& destination) 834 { 835 DumpRenderTreeSupportQt::addURLToRedirect(origin, destination); 836 } 837 833 838 const unsigned LayoutTestController::maxViewWidth = 800; 834 839 const unsigned LayoutTestController::maxViewHeight = 600; -
trunk/Tools/DumpRenderTree/qt/LayoutTestControllerQt.h
r73886 r76451 231 231 QVariantList nodesFromRect(const QWebElement& document, int x, int y, unsigned top, unsigned right, unsigned bottom, unsigned left, bool ignoreClipping); 232 232 233 void addURLToRedirect(const QString& origin, const QString& destination); 234 233 235 /* 234 236 Policy values: 'on', 'auto' or 'off'.
Note: See TracChangeset
for help on using the changeset viewer.