The following works on the MacOS X nightly but not on Intel. On Intel, r.status is 401 (access denied). var r = new XMLHttpRequest(); r.open("GET", "http://gi.tibco.com/tests/auth/data1.xml", false, "gi", "gi"); r.send(); assertEquals(200, r.status);
(In reply to comment #0) > The following works on the MacOS X nightly but not on Intel. On Intel, r.status > is 401 (access denied). Just to clarify - by Intel do you mean Windows (assuming this is the case from the Platform field) or is there a difference between a PPC nightly and an Intel nightly on Mac OS X?
s/Platform/OS
Sorry, my post is confusing. I'm on a MacBook Pro running 10.4 and Parallels with Windows XP. On Windows XP the status code is 401, on MacOS X it is 200.
(In reply to comment #3) > Sorry, my post is confusing. I'm on a MacBook Pro running 10.4 and Parallels > with Windows XP. On Windows XP the status code is 401, on MacOS X it is 200. Are you running (roughly) the same WebKit Nightly build on both?
Implicitly confirmed by ap. :)
<rdar://problem/5376650>
Explicitly confirming with Safari beta 3.0.3 and r24749 (also under Parallels, but that shouldn't matter).
Yes, r24749 in both cases.
The success case now works on both Mac and Windows. I just tried both with ToT builds from today. Using the code - <html> <head> <script> var r = new XMLHttpRequest(); r.open("GET", "http://gi.tibco.com/tests/auth/data1.xml", false, "gi", "gi"); r.send(); alert(r.status); </script> </head> </html> Both Mac and Windows alert "200" However there still seems to be some form of bug, as if I change the un/pw to something incorrect, like "sdufghwueg", "wheuhw", Mac alerts "401", and Windows alerts nothing. The Javascript console on Windows shows "Error: NETWORK_ERR: XMLHttpRequest Exception 101" So Windows now can successfully login using HTTP auth, but it's failed credential case is broken
I cannot reproduce this with xmlhttprequest/failed-auth.html regression test now. Note that requests from file:// are treated as cross-origin on Windows now, so the original test case doesn't work.