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

Issue 2616323002: CrossOriginAccessControl: separate access checks and error message generation (Closed)

Created:
3 years, 11 months ago by sof
Modified:
3 years, 11 months ago
CC:
blink-reviews, chromium-reviews, gavinp+loader_chromium.org, Nate Chapin, loading-reviews_chromium.org, loading-reviews+fetch_chromium.org, tyoshino+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

CrossOriginAccessControl: separate access checks and error message generation The checking and construction of legible error messages can with benefit be separated, having the security access checks return an error status which then can be used to generate a suitable error message. Along with separating the two, switch to using StringBuilders. R= BUG= Review-Url: https://codereview.chromium.org/2616323002 Cr-Commit-Position: refs/heads/master@{#442236} Committed: https://chromium.googlesource.com/chromium/src/+/302263bedf6549ed0225fa3f8e32895faf815a81

Patch Set 1 #

Patch Set 2 : initialize allowRedirect correctly #

Total comments: 12

Patch Set 3 : refresh error messages #

Patch Set 4 : sync expectation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+420 lines, -217 lines) Patch
M third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/access-control-and-redirects-async-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/fetch/CrossOriginAccessControl.h View 1 2 1 chunk +81 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/CrossOriginAccessControl.cpp View 1 2 6 chunks +245 lines, -143 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/Resource.h View 1 chunk +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/Resource.cpp View 1 chunk +9 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceLoader.cpp View 2 chunks +18 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp View 1 3 chunks +66 lines, -38 lines 0 comments Download

Messages

Total messages: 18 (13 generated)
sof
please take a look.
3 years, 11 months ago (2017-01-08 15:22:51 UTC) #8
Mike West
LGTM % some nits. Thanks for this refactoring! It's much nicer this way! https://codereview.chromium.org/2616323002/diff/20001/third_party/WebKit/Source/core/fetch/CrossOriginAccessControl.cpp File ...
3 years, 11 months ago (2017-01-09 09:02:22 UTC) #9
sof
Thanks for the review; hopefully this "builder" based construction won't be too verbose to work ...
3 years, 11 months ago (2017-01-09 09:36:49 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2616323002/60001
3 years, 11 months ago (2017-01-09 10:48:33 UTC) #15
commit-bot: I haz the power
3 years, 11 months ago (2017-01-09 12:15:07 UTC) #18
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/302263bedf6549ed0225fa3f8e32...

Powered by Google App Engine
This is Rietveld 408576698