Bug 25076
Summary: | Safari doesn't show a login-promt with a synchron XMLHttpRequest | ||
---|---|---|---|
Product: | WebKit | Reporter: | Patrick R. Gansterer <paroga> |
Component: | Platform | Assignee: | 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
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Mark Rowe (bdash)
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
*** This bug has been marked as a duplicate of 8342 ***