Sign in to add a comment
|
Redirect in XmlHttpRequest destination url causes XHR to be canceled | |||||||||||||||||||||||||
| Reported by jsilve...@gmail.com, Apr 3 2012 | ||||||||||||||||||||||||||
Chrome Version : 19.0.1084.1
OS Version: 5.1 (Windows XP)
URLs (if applicable) :
Other browsers tested:
Add OK or FAIL after other browsers where you have tested this issue:
Safari 5:
Firefox 4.x: OK
IE 7/8/9: OK
What steps will reproduce the problem?
1. Create a page that makes an internal ajax request to another url. E.g.:
(test.htm)
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.js" type="text/javascript"></script>
<script type="text/javascript">
$.ajax({url: "test.php", success: function(data) {alert("OK: "+data)},error: function(jqXHR, textStatus, errorThrown){alert("ERROR:"+textStatus);}});
</script>
2. Make the destination url redirect to another internal page. E.g.:
(test.php)
<?php
Header( "HTTP/1.1 303 Moved Permanently" );
Header( "Location: test2.php" );
?>
(test2.php)
<?php echo "Alright"; ?>
3. Test the page (e.g. test.htm)
What is the expected result?
The ajax request should be made with no problems and the data returned should the one from the redirection destination. This is working correctly in previous versions of Chrome, such as the release channel.
What happens instead?
The ajax request fails. In the "Network" inspector of Chrome it can be seen that the redirection request has been cancelled.
Please provide any additional information below. Attach a screenshot if
possible.
UserAgentString: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.1 Safari/536.5
,
Apr 4 2012
Changing some keywords to make it more findable.
,
Apr 4 2012
Issue 121275 has been merged into this issue.
,
Apr 4 2012
Issue 121328 has been merged into this issue.
,
Apr 4 2012
Issue 121614 has been merged into this issue.
,
Apr 4 2012
The culprit is WebKit r112217. Upstream is http://bugs.webkit.org/show_bug.cgi?id=82964
,
Apr 4 2012
,
Apr 4 2012
,
Oct 13 2012
This issue has been closed for some time. No one will pay attention to new comments. If you are seeing this bug or have new data, please click New Issue to start a new bug.
,
Mar 10 2013
,
Mar 13 2013
,
Apr 6 2013
|
||||||||||||||||||||||||||
| ► Sign in to add a comment | ||||||||||||||||||||||||||
Status: Available