[Webkit-unassigned] [Bug 28242] [Qt] Crash when performing XHR preflight request

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 12 18:17:54 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=28242





--- Comment #1 from Yael <yael.aharon at nokia.com>  2009-08-12 18:17:54 PDT ---
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>

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list