Bug 25076

Summary: Safari doesn't show a login-promt with a synchron XMLHttpRequest
Product: WebKit Reporter: Patrick R. Gansterer <paroga>
Component: PlatformAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Minor    
Priority: P4    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Windows XP   
URL: http://paroga.com/webkit/auth.html

Patrick R. Gansterer
Reported 2009-04-07 06:51:35 PDT
Safari doesn't show a login-promt when a synchron request returns http-code 401 With an asynchronous request it works fine. It also works with Firefox, Opera, IE, Chrome and the Qt demo browser. It's a safari and not a webkit bug! PHP-Code: <?php header('HTTP/1.0 401 Unauthorized'); header('WWW-Authenticate: Basic realm="REALM"'); ?> JavaScript-Code: function test(async) { var xmlHttp = new XMLHttpRequest(); xmlHttp.open("POST", "401.php", async); xmlHttp.send(null); }
Attachments
Mark Rowe (bdash)
Comment 1 2009-04-07 11:42:24 PDT
Safari bug reports should be directed at Apple via <http://bugreport.apple.com/>. However, in this case I don't think anything that you've said indicates that this is a Safari problem rather than a problem specific to the Mac-specific portions of WebKit.
Alexey Proskuryakov
Comment 2 2009-04-09 10:28:22 PDT
*** This bug has been marked as a duplicate of 8342 ***
Note You need to log in before you can comment on or make changes to this bug.