WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 26969
Bug 28242
[Qt] Crash when performing XHR preflight request
https://bugs.webkit.org/show_bug.cgi?id=28242
Summary
[Qt] Crash when performing XHR preflight request
Yael
Reported
2009-08-12 18:13:16 PDT
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
Comment 1
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>
Yael
Comment 2
2009-08-12 19:59:40 PDT
This crash was actually fixed already. Marking this bug as duplicate. *** This bug has been marked as a duplicate of
bug 26969
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug