avarun42 / arora-wiki

Automatically exported from code.google.com/p/arora
0 stars 0 forks source link

Arora providing API for CORS (Cross-Origin Resource Sharing) but fails in actual use #904

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Visit http://saltybeagle.com/cors/ with Javascript enabled
2. Click "Get content from another server" or "Submit Query"

What is the expected output? What do you see instead?

Given that, for Arora's XMLHttpRequest object, request.withCredentials !== 
undefined (the test given at 
http://hacks.mozilla.org/2009/07/cross-site-xmlhttprequest-with-cors/ ), one 
would expect it to display a reply dialog as Midori, Chrome, Safari, Firefox, 
and Internet Explorer 8 do.

However, in my tests, Arora is the only browser which reports compatibility but 
doesn't actually work. (Opera 10.61 and Camino 2.0.5 just fail the 
request.withCredentials !== undefined test right off the bat)

What version of the product are you using? On what operating system?

I tested with Arora 0.10.2 built against WebKit 532.4 and Qt 4.6.2.

Original issue reported on code.google.com by stephan....@gmail.com on 5 Sep 2010 at 2:15

GoogleCodeExporter commented 9 years ago
That test seems to be broken now, so try this one instead:

http://arunranga.com/examples/access-control/preflightInvocation.html

As of Arora 0.11.0 built against WebKit 532.4 on Qt 4.6.3, the status of the 
tests is as follows:

Simple: Passes
Preflighted: Fails with an alert() popup saying "Invocation Errors Occured 4 
and the status is 0"
Credentialed: Passes

Original comment by stephan....@gmail.com on 7 Dec 2010 at 7:37