Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(524)

Issue 1060113004: [XMLHttpRequest] Stop throwing for network error in async mode (Closed)

Created:
5 years, 8 months ago by tyoshino (SeeGerritForStatus)
Modified:
5 years, 5 months ago
Reviewers:
sof, Mike West
CC:
blink-reviews, tyoshino+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

[XMLHttpRequest] Stop throwing for network error in async mode See the history and decision at http://crbug.com/479484 This CL updates fast/files/apply-blob-url-to-xhr.html layout test to stop expecting an exception but expect an error event being dispatched. Using this opportunity, merged the worker version of the test into one test script. security/cannot-read-self-from-file and http/tests/xmlhttprequest/cross-origin-unsupported-url (and its worker version) are simply updated to expect error event dispatching. BUG=479484 R=sof,mkwst Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=199098 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=199282

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 2

Patch Set 3 : Update blob scheme test #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : Addressed #12 #

Total comments: 2

Patch Set 7 : Addressed #16. Updated cannot-read-self-from-file.html #

Total comments: 1

Patch Set 8 : Rebease #

Unified diffs Side-by-side diffs Delta from patch set Stats (+170 lines, -118 lines) Patch
M LayoutTests/fast/files/apply-blob-url-to-xhr.html View 1 2 1 chunk +2 lines, -32 lines 0 comments Download
M LayoutTests/fast/files/apply-blob-url-to-xhr-expected.txt View 1 2 3 1 chunk +12 lines, -4 lines 0 comments Download
A LayoutTests/fast/files/resources/apply-blob-url-to-xhr.js View 1 2 3 4 1 chunk +97 lines, -0 lines 0 comments Download
M LayoutTests/fast/files/workers/resources/worker-apply-blob-url-to-xhr.js View 1 2 3 1 chunk +0 lines, -36 lines 0 comments Download
M LayoutTests/fast/files/workers/worker-apply-blob-url-to-xhr.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/files/workers/worker-apply-blob-url-to-xhr-expected.txt View 1 2 3 1 chunk +12 lines, -4 lines 0 comments Download
M LayoutTests/http/tests/xmlhttprequest/cross-origin-unsupported-url-expected.txt View 1 1 chunk +8 lines, -8 lines 0 comments Download
M LayoutTests/http/tests/xmlhttprequest/resources/cross-origin-unsupported-url.js View 1 chunk +1 line, -18 lines 0 comments Download
M LayoutTests/security/cannot-read-self-from-file.html View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/security/resources/cannot-read-self-from-file.html View 1 2 3 4 5 6 1 chunk +3 lines, -5 lines 0 comments Download
M Source/core/xmlhttprequest/XMLHttpRequest.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/xmlhttprequest/XMLHttpRequest.cpp View 1 2 3 4 5 6 7 2 chunks +31 lines, -9 lines 0 comments Download

Messages

Total messages: 29 (5 generated)
tyoshino (SeeGerritForStatus)
5 years, 6 months ago (2015-06-24 13:31:31 UTC) #2
tyoshino (SeeGerritForStatus)
On 2015/06/24 13:31:31, tyoshino wrote: -sigbjorn +sof
5 years, 6 months ago (2015-06-24 13:32:10 UTC) #4
Mike West
Do we have tests which verify that the `error` event is triggered? And that `readystatechange` ...
5 years, 6 months ago (2015-06-24 13:45:17 UTC) #5
tyoshino (SeeGerritForStatus)
On 2015/06/24 13:45:17, Mike West wrote: > Do we have tests which verify that the ...
5 years, 6 months ago (2015-06-24 13:52:52 UTC) #6
tyoshino (SeeGerritForStatus)
On 2015/06/24 13:52:52, tyoshino wrote: > On 2015/06/24 13:45:17, Mike West wrote: > > Do ...
5 years, 6 months ago (2015-06-24 14:01:01 UTC) #7
tyoshino (SeeGerritForStatus)
Re: error event dispatching: - shouldTreatURLSchemeAsCORSEnabled() in makeCrossOriginAccessRequest() - Tested by cross-origin-unsupported-url.html - redirectReceived() - ...
5 years, 5 months ago (2015-07-03 12:03:47 UTC) #8
Mike West
On 2015/07/03 at 12:03:47, tyoshino wrote: > Re: error event dispatching: > - shouldTreatURLSchemeAsCORSEnabled() in ...
5 years, 5 months ago (2015-07-08 07:43:46 UTC) #9
tyoshino (SeeGerritForStatus)
On 2015/07/08 07:43:46, Mike West wrote: > On 2015/07/03 at 12:03:47, tyoshino wrote: > > ...
5 years, 5 months ago (2015-07-08 10:10:50 UTC) #10
Mike West
On 2015/07/08 at 10:10:50, tyoshino wrote: > On 2015/07/08 07:43:46, Mike West wrote: > > ...
5 years, 5 months ago (2015-07-09 12:48:19 UTC) #11
sof
https://codereview.chromium.org/1060113004/diff/20001/Source/core/xmlhttprequest/XMLHttpRequest.cpp File Source/core/xmlhttprequest/XMLHttpRequest.cpp (right): https://codereview.chromium.org/1060113004/diff/20001/Source/core/xmlhttprequest/XMLHttpRequest.cpp#newcode1070 Source/core/xmlhttprequest/XMLHttpRequest.cpp:1070: m_loader = ThreadableLoader::create(executionContext, this, request, options, resourceLoaderOptions); Given that ...
5 years, 5 months ago (2015-07-12 13:34:48 UTC) #12
tyoshino (SeeGerritForStatus)
On 2015/07/09 12:48:19, Mike West (OOO through 16th) wrote: > On 2015/07/08 at 10:10:50, tyoshino ...
5 years, 5 months ago (2015-07-14 06:54:43 UTC) #13
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/1060113004/diff/20001/Source/core/xmlhttprequest/XMLHttpRequest.cpp File Source/core/xmlhttprequest/XMLHttpRequest.cpp (right): https://codereview.chromium.org/1060113004/diff/20001/Source/core/xmlhttprequest/XMLHttpRequest.cpp#newcode1070 Source/core/xmlhttprequest/XMLHttpRequest.cpp:1070: m_loader = ThreadableLoader::create(executionContext, this, request, options, resourceLoaderOptions); On 2015/07/12 ...
5 years, 5 months ago (2015-07-14 07:00:05 UTC) #14
tyoshino (SeeGerritForStatus)
Now checking layout test results...
5 years, 5 months ago (2015-07-14 07:00:18 UTC) #15
sof
https://codereview.chromium.org/1060113004/diff/100001/Source/core/xmlhttprequest/XMLHttpRequest.cpp File Source/core/xmlhttprequest/XMLHttpRequest.cpp (right): https://codereview.chromium.org/1060113004/diff/100001/Source/core/xmlhttprequest/XMLHttpRequest.cpp#newcode838 Source/core/xmlhttprequest/XMLHttpRequest.cpp:838: m_exceptionCode = NetworkError; Add an early return if !m_exceptionCode ...
5 years, 5 months ago (2015-07-14 07:07:01 UTC) #16
tyoshino (SeeGerritForStatus)
Also added change on security/cannot-read-self-from-file.html Now all the layout tests pass. https://codereview.chromium.org/1060113004/diff/100001/Source/core/xmlhttprequest/XMLHttpRequest.cpp File Source/core/xmlhttprequest/XMLHttpRequest.cpp (right): ...
5 years, 5 months ago (2015-07-14 08:48:55 UTC) #17
sof
lgtm, i think this now takes care of mkwst's initial concerns wrt coverage also. https://codereview.chromium.org/1060113004/diff/120001/LayoutTests/http/tests/xmlhttprequest/cross-origin-unsupported-url-expected.txt ...
5 years, 5 months ago (2015-07-14 09:30:58 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1060113004/140001
5 years, 5 months ago (2015-07-17 10:14:34 UTC) #21
commit-bot: I haz the power
Committed patchset #8 (id:140001) as https://src.chromium.org/viewvc/blink?view=rev&revision=199098
5 years, 5 months ago (2015-07-17 11:46:32 UTC) #22
Julien - ping for review
A revert of this CL (patchset #8 id:140001) has been created in https://codereview.chromium.org/1229013004/ by jchaffraix@chromium.org. ...
5 years, 5 months ago (2015-07-17 17:34:17 UTC) #23
Julien - ping for review
A revert of this CL (patchset #8 id:140001) has been created in https://codereview.chromium.org/1240503004/ by jchaffraix@chromium.org. ...
5 years, 5 months ago (2015-07-17 17:34:18 UTC) #24
tyoshino (SeeGerritForStatus)
Sorry for the breakage and thanks for reverting.
5 years, 5 months ago (2015-07-21 04:15:36 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1060113004/140001
5 years, 5 months ago (2015-07-22 04:55:15 UTC) #27
tyoshino (SeeGerritForStatus)
The browser test has been fixed, and checked that linux_chromium_rel_ng passes. Relanding.
5 years, 5 months ago (2015-07-22 04:55:35 UTC) #28
commit-bot: I haz the power
5 years, 5 months ago (2015-07-22 06:15:46 UTC) #29
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=199282

Powered by Google App Engine
This is Rietveld 408576698