WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 8342
Bug 37992
no userid/pw prompt when using sync XHR
https://bugs.webkit.org/show_bug.cgi?id=37992
Summary
no userid/pw prompt when using sync XHR
Patrick Mueller
Reported
2010-04-22 10:23:30 PDT
The problem is that when using XHR to a same-origin URL which uses basic auth, where the current page did not, and if the XHR is sync instead of async, then the user is never prompted for a password. Instead, the content for the request (in one case, boilerplate from the server talking about the basic auth issue) are returned in the XHR response. This bug was initially reported against Chrome in this bug:
http://code.google.com/p/chromium/issues/detail?id=36268
However, newer versions of Chrome do not exhibit the problem. The latest version of WebKit nightly -
r58082
on Mac - does still exhibit the problem. The problem can be tested with the URL provided in the URL field above, specifically:
http://www.mnot.net/javascript/xmlhttprequest/
Scroll down to the "Authentication" section near the bottom, and WITHOUT following the link it says to follow first, just press the "run test" button for the "Sync" case. No prompt, and listed as fail. Clicking on the "run test" Async flavor does prompt.
Attachments
Add attachment
proposed patch, testcase, etc.
Alexey Proskuryakov
Comment 1
2010-04-23 11:09:15 PDT
*** This bug has been marked as a duplicate of
bug 8342
***
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