Bug 25076 - Safari doesn't show a login-promt with a synchron XMLHttpRequest
Summary: Safari doesn't show a login-promt with a synchron XMLHttpRequest
Status: RESOLVED DUPLICATE of bug 8342
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows XP
: P4 Minor
Assignee: Nobody
URL: http://paroga.com/webkit/auth.html
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-07 06:51 PDT by Patrick R. Gansterer
Modified: 2009-04-09 10:28 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick R. Gansterer 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);
}
Comment 1 Mark Rowe (bdash) 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.
Comment 2 Alexey Proskuryakov 2009-04-09 10:28:22 PDT

*** This bug has been marked as a duplicate of 8342 ***