Closed
Bug 918714
Opened 11 years ago
Closed 9 years ago
[XHR2] Handle non-GET data: URL loading as network error
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 1063526
People
(Reporter: hsteen, Unassigned)
References
()
Details
If a method other than GET is used for data: URLs, spec says we must treat it as a network error.
Test cases (POST - related failures only):
http://w3c-test.org/web-platform-tests/master/XMLHttpRequest/data-uri-basic.htm
http://w3c-test.org/web-platform-tests/master/XMLHttpRequest/data-uri.htm
Note: these tests make assumptions that are not really covered in the spec, like setting .status to 501. It's equivalent to the "faked" 200 status that is implemented for GET requests, but I'm not absolutely sure this part of the test is valid..
Comment 1•11 years ago
|
||
I think that part of the test is wrong. For network error it should be 0. I think at some point the specification required 501, but we changed that to use network error as we do elsewhere.
Reporter | ||
Comment 2•10 years ago
|
||
The test is fixed and now lives here: http://w3c-test.org/XMLHttpRequest/data-uri.htm (the other test is dropped/merged into this one)
Reporter | ||
Updated•9 years ago
|
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•