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

Issue 1300083002: Add suggestion to use "no-cors" with Fetch fails CORS check. (Closed)

Created:
5 years, 4 months ago by jeremyarcher
Modified:
5 years, 3 months ago
CC:
blink-reviews, tyoshino+watch_chromium.org, Nate Chapin, gavinp+loader_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Add suggestion to use "no-cors" with Fetch fails CORS check. See https://code.google.com/p/chromium/issues/detail?id=452745#c17 for details. BUG=452745 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201949

Patch Set 1 #

Patch Set 2 : Patch CORS error expectation files to include message about Fetch CORS. #

Total comments: 1

Patch Set 3 : Limit error message change to Fetch API. #

Total comments: 2

Patch Set 4 : Update case where header is present but not for the correct origin. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -8 lines) Patch
M LayoutTests/http/tests/fetch/chromium/error-messages-expected.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/fetch/CrossOriginAccessControl.h View 1 2 1 chunk +1 line, -1 line 1 comment Download
M Source/core/fetch/CrossOriginAccessControl.cpp View 1 2 3 4 chunks +7 lines, -2 lines 0 comments Download
M Source/core/fetch/Resource.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/loader/DocumentThreadableLoader.cpp View 1 2 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 28 (8 generated)
jeremyarcher
I believe this fixes #452745. I changed "fix" to "change," because it sounded a bit ...
5 years, 4 months ago (2015-08-19 08:08:42 UTC) #2
falken
this looks good to me, a fetch OWNER is needed though
5 years, 4 months ago (2015-08-19 08:20:55 UTC) #4
falken
On 2015/08/19 08:20:55, falken wrote: > this looks good to me, a fetch OWNER is ...
5 years, 4 months ago (2015-08-19 08:21:55 UTC) #5
hiroshige
> a fetch OWNER is needed though a core/fetch OWNER is needed (I'm a modules/fetch ...
5 years, 4 months ago (2015-08-19 11:38:18 UTC) #7
jeremyarcher
On 2015/08/19 11:38:18, hiroshige (ooo zombie) wrote: > > a fetch OWNER is needed though ...
5 years, 4 months ago (2015-08-20 02:23:41 UTC) #8
jeremyarcher
Ping! (-kenji -matt)
5 years, 3 months ago (2015-08-28 06:39:21 UTC) #10
hiroshige
I briefly discussed this with tyoshino@ and yhirano@, and changed my mind (sorry for inconvenience). ...
5 years, 3 months ago (2015-08-28 08:24:23 UTC) #12
tyoshino (SeeGerritForStatus)
I wrote my thoughts on the bug: https://code.google.com/p/chromium/issues/detail?id=452745#c20 As hiroshige@ already commented, showing this message ...
5 years, 3 months ago (2015-08-31 05:52:15 UTC) #13
jeremyarcher
On 2015/08/31 05:52:15, tyoshino wrote: > I wrote my thoughts on the bug: > https://code.google.com/p/chromium/issues/detail?id=452745#c20 ...
5 years, 3 months ago (2015-09-01 03:46:01 UTC) #14
hiroshige
On 2015/09/01 03:46:01, jeremyarcher wrote: > I've changed the code so that it only displays ...
5 years, 3 months ago (2015-09-01 15:44:17 UTC) #15
jeremyarcher
+japhet for OWNERS
5 years, 3 months ago (2015-09-02 03:47:20 UTC) #16
jeremyarcher
Oops- +japhet, for real this time.
5 years, 3 months ago (2015-09-07 04:01:56 UTC) #17
tyoshino (SeeGerritForStatus)
Thanks! lgtm https://codereview.chromium.org/1300083002/diff/40001/Source/core/fetch/CrossOriginAccessControl.cpp File Source/core/fetch/CrossOriginAccessControl.cpp (right): https://codereview.chromium.org/1300083002/diff/40001/Source/core/fetch/CrossOriginAccessControl.cpp#newcode179 Source/core/fetch/CrossOriginAccessControl.cpp:179: errorDescription.append(" Either change the header or use ...
5 years, 3 months ago (2015-09-07 08:41:07 UTC) #18
jeremyarcher
https://codereview.chromium.org/1300083002/diff/40001/Source/core/fetch/CrossOriginAccessControl.cpp File Source/core/fetch/CrossOriginAccessControl.cpp (right): https://codereview.chromium.org/1300083002/diff/40001/Source/core/fetch/CrossOriginAccessControl.cpp#newcode179 Source/core/fetch/CrossOriginAccessControl.cpp:179: errorDescription.append(" Either change the header or use the 'no-cors' ...
5 years, 3 months ago (2015-09-07 08:47:28 UTC) #19
tyoshino (SeeGerritForStatus)
lgtm!
5 years, 3 months ago (2015-09-08 06:26:20 UTC) #20
Nate Chapin
lgtm
5 years, 3 months ago (2015-09-08 18:07:44 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1300083002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1300083002/60001
5 years, 3 months ago (2015-09-08 23:57:06 UTC) #24
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://src.chromium.org/viewvc/blink?view=rev&revision=201949
5 years, 3 months ago (2015-09-09 04:20:19 UTC) #25
sof
https://codereview.chromium.org/1300083002/diff/60001/Source/core/fetch/CrossOriginAccessControl.h File Source/core/fetch/CrossOriginAccessControl.h (right): https://codereview.chromium.org/1300083002/diff/60001/Source/core/fetch/CrossOriginAccessControl.h#newcode62 Source/core/fetch/CrossOriginAccessControl.h:62: bool passesAccessControlCheck(const ResourceResponse&, StoredCredentials, SecurityOrigin*, String& errorDescription, WebURLRequest::RequestContext requestType); ...
5 years, 3 months ago (2015-09-09 05:22:04 UTC) #27
jeremyarcher
5 years, 3 months ago (2015-09-09 05:25:39 UTC) #28
Message was sent while issue was closed.
On 2015/09/09 05:22:04, sof wrote:
>
https://codereview.chromium.org/1300083002/diff/60001/Source/core/fetch/Cross...
> File Source/core/fetch/CrossOriginAccessControl.h (right):
> 
>
https://codereview.chromium.org/1300083002/diff/60001/Source/core/fetch/Cross...
> Source/core/fetch/CrossOriginAccessControl.h:62: bool
> passesAccessControlCheck(const ResourceResponse&, StoredCredentials,
> SecurityOrigin*, String& errorDescription, WebURLRequest::RequestContext
> requestType);
> Can we try to follow
>
http://google-styleguide.googlecode.com/svn/trunk/cppguide.html#Function_Para...
> and move the added argument as the 2nd?

Absolutely! I'll open it as a new CL.

Powered by Google App Engine
This is Rietveld 408576698