OOR-CORS: Sync XHR does not call onerror and does not raise exception on failures |
||
Issue descriptionConsole message can say it's blocked due to CORS, but no error is reported to js. LoaderBrowserTest.SyncXMLHttpRequest_Disallowed is the case.
,
Nov 29
Checked relevant specs with yhirano. https://xhr.spec.whatwg.org/#the-send()-method In the step 12, we should do "handle response end-of-body". In the step 2 of "handle response end-of-body"; https://xhr.spec.whatwg.org/#handle-response-end-of-body, we should do "Handle errors". And in the step 3 of it; https://xhr.spec.whatwg.org/#handle-errors, we should handle it as a NetworkError DOMException. So, let's make it raise an Exception, and fix tests. |
||
►
Sign in to add a comment |
||
Comment 1 by toyoshim@chromium.org
, Nov 28