Bug 14704 - REGRESSION: sync XMLHttpRequest.send() raises an exception for failed authentication
Summary: REGRESSION: sync XMLHttpRequest.send() raises an exception for failed authent...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: XML (show other bugs)
Version: 523.x (Safari 3)
Hardware: Mac OS X 10.4
: P1 Normal
Assignee: Alexey Proskuryakov
URL:
Keywords: InRadar, Regression
Depends on:
Blocks: 13075
  Show dependency treegraph
 
Reported: 2007-07-21 11:50 PDT by Alexey Proskuryakov
Modified: 2007-07-30 11:32 PDT (History)
0 users

See Also:


Attachments
proposed fix (10.02 KB, patch)
2007-07-21 12:00 PDT, Alexey Proskuryakov
ap: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Proskuryakov 2007-07-21 11:50:01 PDT
This is a part of bug 13075 that is a regression from shipping WebKit (and coincidentally is easy to fix).

NETWORK_ERR should only be raised for network errors, and 4xx HTTP codes aren't such. This matches other browsers, and the draft spec.

Patch forthcoming.
Comment 1 Alexey Proskuryakov 2007-07-21 12:00:33 PDT
Created attachment 15613 [details]
proposed fix
Comment 2 Alexey Proskuryakov 2007-07-21 12:03:51 PDT
Forgot to mention: this problem didn't occur on Windows.
Comment 3 David Kilzer (:ddkilzer) 2007-07-21 16:30:42 PDT
<rdar://problem/5352526>
Comment 4 Alexey Proskuryakov 2007-07-30 11:32:45 PDT
Comment on attachment 15613 [details]
proposed fix

This was reviewed and landed by Anders in r24779 (with some changes in test for Apache 2 compatibility).