forked from adobe/webkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2009-03-03 Brady Eidson <[email protected]> Reviewed by Darin Adler <rdar://problem/6616664> - Quick looks of various file types is broken In http://trac.webkit.org/changeset/40553 there was an attempt to prevent NSURLRequest churn for non-HTTP loads when the underlying ResourceRequest changed. Unfortunately it was a little overzealous as the mainDocumentURL is relevant for all loads, not only HTTP/HTTPS loads. Partially reverted behavior to always set the mainDocumentURL in situations when we would've before that patch. * loader/FrameLoader.cpp: (WebCore::FrameLoader::addExtraFieldsToRequest): * platform/network/ResourceRequestBase.cpp: (WebCore::ResourceRequestBase::setMainDocumentURL): WebKitTools: 2009-03-03 Brady Eidson <[email protected]> Reviewed by Darin Adler Support layout test covering <rdar://problem/6616664> Change NSURLRequest/IWebURLRequest dumping to include the mainDocumentURL * DumpRenderTree/mac/ResourceLoadDelegate.mm: (-[NSURLRequest _drt_descriptionSuitableForTestResult]): Return both the request URL and the mainDocumentURL. * DumpRenderTree/win/ResourceLoadDelegate.cpp: (descriptionSuitableForTestResult): Return both the request URL and the mainDocumentURL. LayoutTests: 2009-03-03 Brady Eidson <[email protected]> Reviewed by Darin Adler Layout test covering <rdar://problem/6616664> - Quick looks of various file types is broken Added to test the changes: * fast/loader/main-document-url-for-non-http-loads-expected.txt: Added. * fast/loader/main-document-url-for-non-http-loads.html: Added. * fast/loader/resources/subframe-notify-done.html: Added. Updated the following for the new info from dumpResourceLoadCallbacks(): * http/tests/misc/window-dot-stop-expected.txt: * http/tests/xmlhttprequest/abort-should-cancel-load-expected.txt: * platform/mac-leopard/security/block-test-expected.txt: * platform/mac-tiger/http/tests/misc/willCacheResponse-delegate-callback-expected.txt: * platform/mac/http/tests/misc/willCacheResponse-delegate-callback-expected.txt: * platform/mac/webarchive/loading/cache-expired-subresource-expected.txt: * security/block-test-expected.txt: * webarchive/loading/test-loading-archive-expected.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@41398 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
bbb9b0b
commit 341a3d8
Showing
18 changed files
with
243 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,24 @@ | ||
2009-03-03 Brady Eidson <[email protected]> | ||
|
||
Reviewed by Darin Adler | ||
|
||
Layout test covering <rdar://problem/6616664> - Quick looks of various file types is broken | ||
|
||
Added to test the changes: | ||
* fast/loader/main-document-url-for-non-http-loads-expected.txt: Added. | ||
* fast/loader/main-document-url-for-non-http-loads.html: Added. | ||
* fast/loader/resources/subframe-notify-done.html: Added. | ||
|
||
Updated the following for the new info from dumpResourceLoadCallbacks(): | ||
* http/tests/misc/window-dot-stop-expected.txt: | ||
* http/tests/xmlhttprequest/abort-should-cancel-load-expected.txt: | ||
* platform/mac-leopard/security/block-test-expected.txt: | ||
* platform/mac-tiger/http/tests/misc/willCacheResponse-delegate-callback-expected.txt: | ||
* platform/mac/http/tests/misc/willCacheResponse-delegate-callback-expected.txt: | ||
* platform/mac/webarchive/loading/cache-expired-subresource-expected.txt: | ||
* security/block-test-expected.txt: | ||
* webarchive/loading/test-loading-archive-expected.txt: | ||
|
||
2009-03-02 Chris Marrin <[email protected]> | ||
|
||
Reviewed by Sam Weinig. | ||
|
6 changes: 6 additions & 0 deletions
6
LayoutTests/fast/loader/main-document-url-for-non-http-loads-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
resources/subframe-notify-done.html - willSendRequest <NSURLRequest URL resources/subframe-notify-done.html, main document URL main-document-url-for-non-http-loads.html> redirectResponse (null) | ||
<unknown> - didFinishLoading | ||
resources/subframe-notify-done.html - didReceiveResponse <NSURLResponse resources/subframe-notify-done.html> | ||
Radar 6616664 - Non-HTTP/HTTPS loads need to have their main document URL set. | ||
When run in DumpRenderTree, this test will dump the resource load callback for the following subframe to make sure it had its main document URL set in its NSURLRequest. | ||
|
17 changes: 17 additions & 0 deletions
17
LayoutTests/fast/loader/main-document-url-for-non-http-loads.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<html> | ||
<head> | ||
<script> | ||
|
||
if (window.layoutTestController) { | ||
layoutTestController.dumpResourceLoadCallbacks(); | ||
layoutTestController.dumpAsText(); | ||
layoutTestController.waitUntilDone(); | ||
} | ||
|
||
</script> | ||
<body> | ||
Radar 6616664 - Non-HTTP/HTTPS loads need to have their main document URL set.<br> | ||
When run in DumpRenderTree, this test will dump the resource load callback for the following subframe to make sure it had its main document URL set in its NSURLRequest.<br> | ||
<iframe src="resources/subframe-notify-done.html"></iframe> | ||
</body> | ||
</html> |
14 changes: 14 additions & 0 deletions
14
LayoutTests/fast/loader/resources/subframe-notify-done.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<html> | ||
<head> | ||
<script> | ||
function loaded() { | ||
if (window.layoutTestController) { | ||
layoutTestController.notifyDone(); | ||
} | ||
} | ||
</script> | ||
</head> | ||
<body onload="loaded();"> | ||
I am a simple document that calls notifyDone() when loaded | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
LayoutTests/http/tests/xmlhttprequest/abort-should-cancel-load-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
http://127.0.0.1:8000/xmlhttprequest/resources/endlessxml.php - willSendRequest <NSURLRequest http://127.0.0.1:8000/xmlhttprequest/resources/endlessxml.php> redirectResponse (null) | ||
http://127.0.0.1:8000/xmlhttprequest/resources/endlessxml.php - willSendRequest <NSURLRequest URL http://127.0.0.1:8000/xmlhttprequest/resources/endlessxml.php, main document URL http://127.0.0.1:8000/xmlhttprequest/abort-should-cancel-load.html> redirectResponse (null) | ||
http://127.0.0.1:8000/xmlhttprequest/resources/endlessxml.php - didFailLoadingWithError: <NSError domain NSURLErrorDomain, code -999, failing URL "http://127.0.0.1:8000/xmlhttprequest/resources/endlessxml.php"> | ||
This tests that calling abort() on an XHR object stops the load, causing the relevant resource load delegates to be sent. | ||
|
124 changes: 62 additions & 62 deletions
124
LayoutTests/platform/mac-leopard/security/block-test-expected.txt
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...Tests/platform/mac-tiger/http/tests/misc/willCacheResponse-delegate-callback-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
LayoutTests/platform/mac/http/tests/misc/willCacheResponse-delegate-callback-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
LayoutTests/platform/mac/webarchive/loading/cache-expired-subresource-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.