WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WORKSFORME
14833
XMLHttpRequest with incorrect credentials raises an exception on Windows
https://bugs.webkit.org/show_bug.cgi?id=14833
Summary
XMLHttpRequest with incorrect credentials raises an exception on Windows
Jesse Costello-Good
Reported
2007-07-31 11:48:14 PDT
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);
Attachments
Add attachment
proposed patch, testcase, etc.
Matt Lilek
Comment 1
2007-07-31 13:02:41 PDT
(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?
Matt Lilek
Comment 2
2007-07-31 13:03:23 PDT
s/Platform/OS
Jesse Costello-Good
Comment 3
2007-07-31 13:10:03 PDT
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.
David Kilzer (:ddkilzer)
Comment 4
2007-07-31 23:32:25 PDT
(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?
David Kilzer (:ddkilzer)
Comment 5
2007-07-31 23:36:38 PDT
Implicitly confirmed by ap. :)
Mark Rowe (bdash)
Comment 6
2007-08-01 05:42:05 PDT
<
rdar://problem/5376650
>
Alexey Proskuryakov
Comment 7
2007-08-01 06:31:01 PDT
Explicitly confirming with Safari beta 3.0.3 and
r24749
(also under Parallels, but that shouldn't matter).
Jesse Costello-Good
Comment 8
2007-08-01 09:07:27 PDT
Yes,
r24749
in both cases.
Brady Eidson
Comment 9
2007-09-24 17:32:36 PDT
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
Alexey Proskuryakov
Comment 10
2010-07-12 14:40:30 PDT
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.
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