<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>28242</bug_id>
          
          <creation_ts>2009-08-12 18:13:16 -0700</creation_ts>
          <short_desc>[Qt] Crash when performing XHR preflight request</short_desc>
          <delta_ts>2009-08-12 19:59:40 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit Qt</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>26969</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yael">yael</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>139695</commentid>
    <comment_count>0</comment_count>
    <who name="Yael">yael</who>
    <bug_when>2009-08-12 18:13:16 -0700</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>139696</commentid>
    <comment_count>1</comment_count>
    <who name="Yael">yael</who>
    <bug_when>2009-08-12 18:17:54 -0700</bug_when>
    <thetext>Sample test page to reproduce the crash. (should be loaded from the web)

&lt;html&gt;
&lt;head&gt;
&lt;script type=&quot;text/ecmascript&quot;&gt;
var xmlhttp;
function sendNum ()
{
	try
	{
		xmlhttp=new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;)
	}
	catch (e)
	{
		try
		{
			xmlhttp=new ActiveXObject(&quot;Msxml2.XMLHTTP&quot;)
		}
		catch (E)
		{
			xmlhttp=false
		}
	}

	if (!xmlhttp &amp;&amp; typeof XMLHttpRequest!=&apos;undefined&apos;)
	{
		try
		{
			xmlhttp = new XMLHttpRequest();
		}
		catch (e)
		{
			xmlhttp=false
		}
	}
	xmlhttp = new XMLHttpRequest();
	var url = &quot;http://www.mydomain.com&quot;;
	xmlhttp.open(&quot;post&quot;,url,true);
	xmlhttp.onreadystatechange = end;
	xmlhttp.send(&quot;postbody&quot;);
}

function end ()
{
	if (xmlhttp.readyState == 4)
	{
		alert(&quot;xhr respobse: &quot; + xmlhttp.responseText);
	}
}    
&lt;/script&gt;
&lt;/head&gt;
&lt;body &gt;
&lt;p&gt;&lt;a href=&quot;#&quot; onclick=&quot;sendNum();return false;&quot;&gt;send XHR&lt;/a&gt;&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>139708</commentid>
    <comment_count>2</comment_count>
    <who name="Yael">yael</who>
    <bug_when>2009-08-12 19:59:40 -0700</bug_when>
    <thetext>This crash was actually fixed already. Marking this bug as duplicate.

*** This bug has been marked as a duplicate of bug 26969 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>