Bug 28242
| Summary: | [Qt] Crash when performing XHR preflight request | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Yael <yael> |
| Component: | WebKit Qt | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | ||
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | PC | ||
| OS: | All | ||
Yael
QtNetwork does not yet support the HTTP method Options, thus a crash occurs when an Options request is made during XHR preflight request.
A patch with a temporary fix will be attached soon, to prevent the crash, until QtNetwork does start supporting Options method.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Yael
Sample test page to reproduce the crash. (should be loaded from the web)
<html>
<head>
<script type="text/ecmascript">
var xmlhttp;
function sendNum ()
{
try
{
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
}
catch (e)
{
try
{
xmlhttp=new ActiveXObject("Msxml2.XMLHTTP")
}
catch (E)
{
xmlhttp=false
}
}
if (!xmlhttp && typeof XMLHttpRequest!='undefined')
{
try
{
xmlhttp = new XMLHttpRequest();
}
catch (e)
{
xmlhttp=false
}
}
xmlhttp = new XMLHttpRequest();
var url = "http://www.mydomain.com";
xmlhttp.open("post",url,true);
xmlhttp.onreadystatechange = end;
xmlhttp.send("postbody");
}
function end ()
{
if (xmlhttp.readyState == 4)
{
alert("xhr respobse: " + xmlhttp.responseText);
}
}
</script>
</head>
<body >
<p><a href="#" onclick="sendNum();return false;">send XHR</a></p>
</body>
</html>
Yael
This crash was actually fixed already. Marking this bug as duplicate.
*** This bug has been marked as a duplicate of bug 26969 ***