Changeset 57416 in webkit
- Timestamp:
- Apr 10, 2010 3:12:08 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r57415 r57416 1 2010-04-11 Robert Hogan <robert@webkit.org> 2 3 Reviewed by Simon Hausmann. 4 5 [Qt] Update layoutTestController.DumpResourceLoadCallbacks to match other ports. 6 7 Unskip http/tests/xmlhttprequest/abort-should-cancel-load.html 8 http/tests/misc/will-send-request-returns-null-on-redirect.html 9 fast/loader/user-style-sheet-resource-load-callbacks.html 10 http/tests/misc/window-dot-stop.html 11 http/tests/security/XFrameOptions/x-frame-options-deny-meta-tag-parent-same-origin-allow.html 12 http/tests/security/XFrameOptions/x-frame-options-deny.html 13 http/tests/security/XFrameOptions/x-frame-options-parent-same-origin-allow.html 14 http/tests/security/XFrameOptions/x-frame-options-parent-same-origin-deny.html 15 http/tests/xmlhttprequest/abort-should-cancel-load.html 16 17 QNetworkReply::OperationCanceledError has a value of 5 rather than -999, so add platform-specific results accordingly. 18 19 Add platform-specific results for the the following, though leave them skipped for now. They've started failing again 20 since review was granted (see https://bugs.webkit.org/show_bug.cgi?id=37382): 21 http/tests/security/XFrameOptions/x-frame-options-deny-meta-tag-in-body.html 22 http/tests/security/XFrameOptions/x-frame-options-deny-meta-tag-parent-same-origin-deny.html 23 http/tests/security/XFrameOptions/x-frame-options-deny-meta-tag.html 24 25 https://bugs.webkit.org/show_bug.cgi?id=37237 26 27 * platform/qt/Skipped: 28 * platform/qt/http/tests/misc/window-dot-stop-expected.txt: Added. 29 * platform/qt/http/tests/security/XFrameOptions/x-frame-options-deny-meta-tag-expected.txt: Added. 30 * platform/qt/http/tests/security/XFrameOptions/x-frame-options-deny-meta-tag-in-body-expected.txt: Added. 31 * platform/qt/http/tests/security/XFrameOptions/x-frame-options-deny-meta-tag-parent-same-origin-deny-expected.txt: Added. 32 * platform/qt/http/tests/xmlhttprequest/abort-should-cancel-load-expected.txt: Added. 33 1 34 2010-04-10 Andrew Scherkus <scherkus@chromium.org> 2 35 -
trunk/LayoutTests/platform/qt/Skipped
r57409 r57416 310 310 fast/loader/onload-willSendRequest-null-for-script.html 311 311 312 # Missing layoutTestController.setWillSendRequestReturnsNullOnRedirect()313 http/tests/misc/will-send-request-returns-null-on-redirect.html314 315 312 # Missing layoutTestController.evaluateScriptInIsolatedWorld() 316 313 http/tests/security/isolatedWorld … … 516 513 fast/forms/drag-out-of-textarea.html 517 514 fast/frames/frame-src-attribute.html 518 fast/loader/user-style-sheet-resource-load-callbacks.html519 515 fast/overflow/003.xml 520 516 fast/text/international/bidi-menulist.html … … 4961 4957 http/tests/misc/refresh-headers.php 4962 4958 http/tests/misc/timer-vs-loading.html 4963 http/tests/misc/window-dot-stop.html 4959 4960 4961 # Have an additional line in results for GET of favicon.ico. Probably innocuous. 4962 # https://bugs.webkit.org/show_bug.cgi?id=37382 4963 http/tests/security/XFrameOptions/x-frame-options-deny-meta-tag-in-body.html 4964 http/tests/security/XFrameOptions/x-frame-options-deny-meta-tag-parent-same-origin-deny.html 4965 http/tests/security/XFrameOptions/x-frame-options-deny-meta-tag.html 4964 4966 4965 4967 # Skip failing http/tests/security tests … … 4971 4973 http/tests/security/xss-DENIED-xsl-document-redirect.xml 4972 4974 http/tests/security/xss-DENIED-xsl-document.xml 4973 http/tests/security/XFrameOptions/x-frame-options-deny-meta-tag-in-body.html4974 http/tests/security/XFrameOptions/x-frame-options-deny-meta-tag-parent-same-origin-allow.html4975 http/tests/security/XFrameOptions/x-frame-options-deny-meta-tag-parent-same-origin-deny.html4976 http/tests/security/XFrameOptions/x-frame-options-deny-meta-tag.html4977 http/tests/security/XFrameOptions/x-frame-options-deny.html4978 http/tests/security/XFrameOptions/x-frame-options-parent-same-origin-allow.html4979 http/tests/security/XFrameOptions/x-frame-options-parent-same-origin-deny.html4980 4975 http/tests/security/aboutBlank/security-context-alias.html 4981 4976 http/tests/security/aboutBlank/security-context-window-open.html … … 4998 4993 # Many of these tests exercise preflighted requests, which are not supported with Qt older than 4.7. 4999 4994 http/tests/xmlhttprequest/XMLHttpRequestException.html 5000 http/tests/xmlhttprequest/abort-should-cancel-load.html5001 4995 http/tests/xmlhttprequest/access-control-and-redirects.html 5002 4996 http/tests/xmlhttprequest/access-control-basic-allow-preflight-cache-invalidation-by-header.html -
trunk/WebKit/qt/ChangeLog
r57408 r57416 1 2010-04-11 Robert Hogan <robert@webkit.org> 2 3 Reviewed by Simon Hausmann. 4 5 [Qt] Update layoutTestController.DumpResourceLoadCallbacks to match other ports. 6 7 Unskip http/tests/xmlhttprequest/abort-should-cancel-load.html 8 http/tests/misc/will-send-request-returns-null-on-redirect.html 9 fast/loader/user-style-sheet-resource-load-callbacks.html 10 http/tests/misc/window-dot-stop.html 11 http/tests/security/XFrameOptions/x-frame-options-deny-meta-tag-parent-same-origin-allow.html 12 http/tests/security/XFrameOptions/x-frame-options-deny.html 13 http/tests/security/XFrameOptions/x-frame-options-parent-same-origin-allow.html 14 http/tests/security/XFrameOptions/x-frame-options-parent-same-origin-deny.html 15 http/tests/xmlhttprequest/abort-should-cancel-load.html 16 17 QNetworkReply::OperationCanceledError has a value of 5, so update expected results accordingly. 18 19 https://bugs.webkit.org/show_bug.cgi?id=37237 20 21 * WebCoreSupport/FrameLoaderClientQt.cpp: 22 (qt_set_will_send_request_returns_null_on_redirect): 23 (drtDescriptionSuitableForTestResult): 24 (WebCore::FrameLoaderClientQt::dispatchWillSendRequest): 25 (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse): 26 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoading): 27 (WebCore::FrameLoaderClientQt::dispatchDidFailLoading): 28 1 29 2010-04-10 Laszlo Gombos <laszlo.1.gombos@nokia.com> 2 30 -
trunk/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp
r57277 r57416 80 80 static bool dumpFrameLoaderCallbacks = false; 81 81 static bool dumpResourceLoadCallbacks = false; 82 static bool sendRequestReturnsNullOnRedirect = false; 82 83 83 84 static QMap<unsigned long, QString> dumpAssignedUrls; … … 91 92 { 92 93 dumpResourceLoadCallbacks = b; 94 } 95 96 void QWEBKIT_EXPORT qt_set_will_send_request_returns_null_on_redirect(bool b) 97 { 98 sendRequestReturnsNullOnRedirect = b; 93 99 } 94 100 … … 126 132 { 127 133 QString url = request.url().string(); 128 return QString::fromLatin1("<NSURLRequest %1>").arg(url); 134 QString httpMethod = request.httpMethod(); 135 QString mainDocumentUrl = request.firstPartyForCookies().string(); 136 return QString::fromLatin1("<NSURLRequest URL %1, main document URL %2, http method %3>").arg(url).arg(mainDocumentUrl).arg(httpMethod); 129 137 } 130 138 131 139 static QString drtDescriptionSuitableForTestResult(const WebCore::ResourceResponse& response) 132 140 { 133 QString text = response.httpStatusText(); 134 if (text.isEmpty()) 135 return QLatin1String("(null)"); 136 137 return text; 141 QString url = response.url().string(); 142 int httpStatusCode = response.httpStatusCode(); 143 return QString::fromLatin1("<NSURLResponse %1, http status code %2>").arg(url).arg(httpStatusCode); 138 144 } 139 145 … … 842 848 void FrameLoaderClientQt::dispatchWillSendRequest(WebCore::DocumentLoader*, unsigned long identifier, WebCore::ResourceRequest& newRequest, const WebCore::ResourceResponse& redirectResponse) 843 849 { 850 844 851 if (dumpResourceLoadCallbacks) 845 852 printf("%s - willSendRequest %s redirectResponse %s\n", 846 853 qPrintable(dumpAssignedUrls[identifier]), 847 854 qPrintable(drtDescriptionSuitableForTestResult(newRequest)), 848 qPrintable(drtDescriptionSuitableForTestResult(redirectResponse))); 855 (redirectResponse.isNull()) ? "(null)" : qPrintable(drtDescriptionSuitableForTestResult(redirectResponse))); 856 857 if (sendRequestReturnsNullOnRedirect && !redirectResponse.isNull()) { 858 printf("Returning null for this redirect\n"); 859 newRequest.setURL(QUrl()); 860 } 849 861 850 862 // seems like the Mac code doesn't do anything here by default neither … … 869 881 } 870 882 871 void FrameLoaderClientQt::dispatchDidReceiveResponse(WebCore::DocumentLoader*, unsigned long , const WebCore::ResourceResponse& response)883 void FrameLoaderClientQt::dispatchDidReceiveResponse(WebCore::DocumentLoader*, unsigned long identifier, const WebCore::ResourceResponse& response) 872 884 { 873 885 874 886 m_response = response; 875 887 m_firstData = true; 888 if (dumpResourceLoadCallbacks) 889 printf("%s - didReceiveResponse %s\n", 890 qPrintable(dumpAssignedUrls[identifier]), 891 qPrintable(drtDescriptionSuitableForTestResult(response))); 876 892 //qDebug() << " got response from" << response.url().string(); 877 893 } … … 881 897 } 882 898 883 void FrameLoaderClientQt::dispatchDidFinishLoading(WebCore::DocumentLoader*, unsigned long) 884 { 899 void FrameLoaderClientQt::dispatchDidFinishLoading(WebCore::DocumentLoader*, unsigned long identifier) 900 { 901 if (dumpResourceLoadCallbacks) 902 printf("%s - didFinishLoading\n", 903 (dumpAssignedUrls.contains(identifier) ? qPrintable(dumpAssignedUrls[identifier]) : "<unknown>")); 885 904 } 886 905 … … 888 907 { 889 908 if (dumpResourceLoadCallbacks) 890 printf("%s - didFailLoadingWithError: %s\n", qPrintable(dumpAssignedUrls[identifier]), qPrintable(drtDescriptionSuitableForTestResult(error))); 909 printf("%s - didFailLoadingWithError: %s\n", 910 (dumpAssignedUrls.contains(identifier) ? qPrintable(dumpAssignedUrls[identifier]) : "<unknown>"), 911 qPrintable(drtDescriptionSuitableForTestResult(error))); 891 912 892 913 if (m_firstData) { -
trunk/WebKitTools/ChangeLog
r57408 r57416 1 2010-04-11 Robert Hogan <robert@webkit.org> 2 3 Reviewed by Simon Hausmann. 4 5 [Qt] Update layoutTestController.DumpResourceLoadCallbacks to match other ports. 6 7 Add support for layoutTestController.setWillSendRequestReturnsNullOnRedirect to Qt DRT. 8 Prevent dumping resource load callbacks once layout test has dumped. 9 10 https://bugs.webkit.org/show_bug.cgi?id=37237 11 12 * DumpRenderTree/qt/DumpRenderTreeQt.cpp: 13 (WebCore::DumpRenderTree::dump): 14 * DumpRenderTree/qt/LayoutTestControllerQt.cpp: 15 (LayoutTestController::setWillSendRequestReturnsNullOnRedirect): 16 * DumpRenderTree/qt/LayoutTestControllerQt.h: 17 1 18 2010-04-10 Laszlo Gombos <laszlo.1.gombos@nokia.com> 2 19 -
trunk/WebKitTools/DumpRenderTree/qt/DumpRenderTreeQt.cpp
r57328 r57416 87 87 extern void qt_drt_resetOriginAccessWhiteLists(); 88 88 extern bool qt_drt_hasDocumentElement(QWebFrame* qFrame); 89 extern void qt_dump_resource_load_callbacks(bool b); 89 90 90 91 namespace WebCore { … … 729 730 void DumpRenderTree::dump() 730 731 { 731 // Prevent any further frame load callbacks from appearing after we dump the result.732 // Prevent any further frame load or resource load callbacks from appearing after we dump the result. 732 733 qt_dump_frame_loader(false); 734 qt_dump_resource_load_callbacks(false); 733 735 734 736 QWebFrame *mainFrame = m_page->mainFrame(); -
trunk/WebKitTools/DumpRenderTree/qt/LayoutTestControllerQt.cpp
r57408 r57416 41 41 extern void qt_dump_frame_loader(bool b); 42 42 extern void qt_dump_resource_load_callbacks(bool b); 43 extern void qt_set_will_send_request_returns_null_on_redirect(bool b); 43 44 extern void qt_drt_setMediaType(QWebFrame* qframe, const QString& type); 44 45 extern void qt_drt_setFrameFlatteningEnabled(QWebPage*, bool); … … 242 243 } 243 244 245 void LayoutTestController::setWillSendRequestReturnsNullOnRedirect(bool enabled) 246 { 247 qt_set_will_send_request_returns_null_on_redirect(enabled); 248 } 249 244 250 void LayoutTestController::queueBackNavigation(int howFarBackward) 245 251 { -
trunk/WebKitTools/DumpRenderTree/qt/LayoutTestControllerQt.h
r57408 r57416 102 102 void dumpFrameLoadCallbacks(); 103 103 void dumpResourceLoadCallbacks(); 104 void setWillSendRequestReturnsNullOnRedirect(bool enabled); 104 105 void queueBackNavigation(int howFarBackward); 105 106 void queueForwardNavigation(int howFarForward);
Note: See TracChangeset
for help on using the changeset viewer.