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

Issue 1506803002: [XHR] Replace isSetCookieHeader() with isForbiddenResponseHeaderName() (Closed)

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

Description

[XHR] Replace isSetCookieHeader() with isForbiddenResponseHeaderName() BUG=none R=yhirano Committed: https://crrev.com/9e1dad644c48db574407ccee4e95b8b10f5174ee Cr-Commit-Position: refs/heads/master@{#364665}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressed #3 #

Patch Set 3 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -13 lines) Patch
M third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp View 1 3 chunks +7 lines, -13 lines 0 comments Download

Messages

Total messages: 14 (6 generated)
tyoshino (SeeGerritForStatus)
5 years ago (2015-12-07 12:10:04 UTC) #2
yhirano
https://codereview.chromium.org/1506803002/diff/1/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp File third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp (right): https://codereview.chromium.org/1506803002/diff/1/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp#newcode1233 third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp:1233: // 3) Firefox has implemented this policy. Can you ...
5 years ago (2015-12-08 07:23:51 UTC) #3
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/1506803002/diff/1/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp File third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp (right): https://codereview.chromium.org/1506803002/diff/1/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp#newcode1233 third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp:1233: // 3) Firefox has implemented this policy. On 2015/12/08 ...
5 years ago (2015-12-08 13:21:38 UTC) #4
yhirano
On 2015/12/08 13:21:38, tyoshino wrote: > https://codereview.chromium.org/1506803002/diff/1/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp > File third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp (right): > > https://codereview.chromium.org/1506803002/diff/1/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp#newcode1233 > ...
5 years ago (2015-12-09 06:18:18 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1506803002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1506803002/40001
5 years ago (2015-12-11 08:22:57 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years ago (2015-12-11 10:35:54 UTC) #11
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/9e1dad644c48db574407ccee4e95b8b10f5174ee Cr-Commit-Position: refs/heads/master@{#364665}
5 years ago (2015-12-11 10:36:53 UTC) #13
tyoshino (SeeGerritForStatus)
5 years ago (2015-12-15 08:57:32 UTC) #14
Message was sent while issue was closed.
On 2015/12/09 06:18:18, yhirano wrote:
> On 2015/12/08 13:21:38, tyoshino wrote:
> >
>
https://codereview.chromium.org/1506803002/diff/1/third_party/WebKit/Source/c...
> > File third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp
(right):
> > 
> >
>
https://codereview.chromium.org/1506803002/diff/1/third_party/WebKit/Source/c...
> > third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp:1233: //   

> 3)
> > Firefox has implemented this policy.
> > On 2015/12/08 07:23:51, yhirano wrote:
> > > Can you update the comments?
> > 
> > Done.
> > 
> >
>
https://codereview.chromium.org/1506803002/diff/1/third_party/WebKit/Source/c...
> > third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp:1234: if
> > (FetchUtils::isForbiddenResponseHeaderName(it->key) &&
> > !securityOrigin()->canLoadLocalResources())
> > On 2015/12/08 07:23:51, yhirano wrote:
> > > [optional] It would be good to use this function in
> > > modules/fetch/FetchResponseData.cpp as well.
> > 
> > Seems the check in FetchResponseData is unnecessary. Check for forbidden
> > response-header name is done when creating a Response object.
> > 
> > If it's really needed, createCORSFilteredResponse() should also have it.
> 
> Hmm, OK.
> I think it's really needed, but it seems fixing separately is a good way.
> LGTM

Created: https://codereview.chromium.org/1526903002/

Powered by Google App Engine
This is Rietveld 408576698