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

Issue 196043002: HTML Imports: Send credentials for same origin requests (Closed)

Created:
6 years, 9 months ago by Hajime Morrita
Modified:
6 years, 9 months ago
CC:
blink-reviews, adamk+blink_chromium.org, gavinp+prerender_chromium.org, ed+blinkwatch_opera.com, dglazkov+blink, apavlov+blink_chromium.org, gavinp+loader_chromium.org, darktears, rune+blink, rwlbuis
Visibility:
Public.

Description

HTML Imports: Send credentials for same origin requests This captures following spec chagne: https://www.w3.org/Bugs/Public/show_bug.cgi?id=24905 The essential part of the change is in HTMLImportsController.cpp. Anything else is to make it work with redirect. The problem here is that allowCredentials flag is held both by ResourceLoaderOptions and ResourceRequest and these two can go out-of-sync. This change tries to make them in sync. Such a state duplication should be resolved eventually, but that is another story. BUG=348671 TEST=import-cors-credentials.html R=dglazkov@chromium.org, japhet@chromium.org, abarth Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=169496 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=169578 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=169700

Patch Set 1 #

Total comments: 4

Patch Set 2 : Updated #

Total comments: 4

Patch Set 3 : Re-landing with a fix #

Patch Set 4 : Re-landing with a fix #

Patch Set 5 : Uploading with a fix #

Patch Set 6 : Landing again with another fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -14 lines) Patch
A LayoutTests/http/tests/htmlimports/import-cors-credentials.html View 1 chunk +18 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/htmlimports/import-cors-credentials-expected.txt View 1 chunk +8 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/htmlimports/resources/cookie-match.cgi View 1 chunk +18 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/htmlimports/resources/having-cookie-match-8080.html View 1 chunk +3 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/htmlimports/resources/having-cookie-match-same.cgi View 1 chunk +12 lines, -0 lines 0 comments Download
M Source/core/css/CSSImageSetValue.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/CSSImageValue.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/resolver/StyleResourceLoader.cpp View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/fetch/CrossOriginAccessControl.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/fetch/FetchRequest.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/fetch/FetchRequest.cpp View 1 2 1 chunk +8 lines, -1 line 0 comments Download
M Source/core/fetch/Resource.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/fetch/Resource.cpp View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M Source/core/fetch/ResourceLoader.h View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/fetch/ResourceLoader.cpp View 7 chunks +10 lines, -5 lines 0 comments Download
M Source/core/html/HTMLLinkElement.cpp View 1 2 1 chunk +2 lines, -4 lines 0 comments Download
M Source/core/html/imports/HTMLImportsController.cpp View 1 2 3 4 5 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 36 (0 generated)
Hajime Morrita
PTAL?
6 years, 9 months ago (2014-03-11 22:49:28 UTC) #1
abarth-chromium
typo: HTMLIportsController.cpp
6 years, 9 months ago (2014-03-12 18:46:43 UTC) #2
abarth-chromium
This CL looks like one for japhet. https://codereview.chromium.org/196043002/diff/1/Source/core/fetch/FetchRequest.cpp File Source/core/fetch/FetchRequest.cpp (right): https://codereview.chromium.org/196043002/diff/1/Source/core/fetch/FetchRequest.cpp#newcode77 Source/core/fetch/FetchRequest.cpp:77: m_options.credentialsRequested = ...
6 years, 9 months ago (2014-03-12 18:49:31 UTC) #3
Hajime Morrita
Thanks for taking look Adam! Nate, could you take a look? https://codereview.chromium.org/196043002/diff/1/Source/core/fetch/FetchRequest.cpp File Source/core/fetch/FetchRequest.cpp (right): ...
6 years, 9 months ago (2014-03-12 18:56:10 UTC) #4
Hajime Morrita
Nate: Could you take a look for non-import part? Then Dimitri can take care of ...
6 years, 9 months ago (2014-03-13 18:42:40 UTC) #5
dglazkov
lgtm on importsey parts.
6 years, 9 months ago (2014-03-13 18:45:20 UTC) #6
Hajime Morrita
Let me explain this change a bit more: The goal of this CL is that ...
6 years, 9 months ago (2014-03-14 20:44:35 UTC) #7
Hajime Morrita
Nate: ping?
6 years, 9 months ago (2014-03-18 21:40:37 UTC) #8
Nate Chapin
https://codereview.chromium.org/196043002/diff/20001/Source/core/fetch/CrossOriginAccessControl.cpp File Source/core/fetch/CrossOriginAccessControl.cpp (right): https://codereview.chromium.org/196043002/diff/20001/Source/core/fetch/CrossOriginAccessControl.cpp#newcode243 Source/core/fetch/CrossOriginAccessControl.cpp:243: StoredCredentials withCredentials = resource->lastResourceRequest().allowStoredCredentials() ? AllowStoredCredentials : DoNotAllowStoredCredentials; I ...
6 years, 9 months ago (2014-03-18 21:50:19 UTC) #9
Hajime Morrita
https://codereview.chromium.org/196043002/diff/20001/Source/core/fetch/CrossOriginAccessControl.cpp File Source/core/fetch/CrossOriginAccessControl.cpp (right): https://codereview.chromium.org/196043002/diff/20001/Source/core/fetch/CrossOriginAccessControl.cpp#newcode243 Source/core/fetch/CrossOriginAccessControl.cpp:243: StoredCredentials withCredentials = resource->lastResourceRequest().allowStoredCredentials() ? AllowStoredCredentials : DoNotAllowStoredCredentials; On ...
6 years, 9 months ago (2014-03-18 22:10:39 UTC) #10
Nate Chapin
LGTM https://codereview.chromium.org/196043002/diff/20001/Source/core/fetch/CrossOriginAccessControl.cpp File Source/core/fetch/CrossOriginAccessControl.cpp (right): https://codereview.chromium.org/196043002/diff/20001/Source/core/fetch/CrossOriginAccessControl.cpp#newcode243 Source/core/fetch/CrossOriginAccessControl.cpp:243: StoredCredentials withCredentials = resource->lastResourceRequest().allowStoredCredentials() ? AllowStoredCredentials : DoNotAllowStoredCredentials; ...
6 years, 9 months ago (2014-03-18 22:15:44 UTC) #11
Hajime Morrita
Thanks for the review! https://codereview.chromium.org/196043002/diff/20001/Source/core/fetch/CrossOriginAccessControl.cpp File Source/core/fetch/CrossOriginAccessControl.cpp (right): https://codereview.chromium.org/196043002/diff/20001/Source/core/fetch/CrossOriginAccessControl.cpp#newcode243 Source/core/fetch/CrossOriginAccessControl.cpp:243: StoredCredentials withCredentials = resource->lastResourceRequest().allowStoredCredentials() ? ...
6 years, 9 months ago (2014-03-18 22:34:57 UTC) #12
Hajime Morrita
The CQ bit was checked by morrita@chromium.org
6 years, 9 months ago (2014-03-18 22:35:34 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/morrita@chromium.org/196043002/20001
6 years, 9 months ago (2014-03-18 22:35:42 UTC) #14
Nate Chapin
On 2014/03/18 22:34:57, morrita1 wrote: > Thanks for the review! > > https://codereview.chromium.org/196043002/diff/20001/Source/core/fetch/CrossOriginAccessControl.cpp > File ...
6 years, 9 months ago (2014-03-18 22:36:46 UTC) #15
commit-bot: I haz the power
Change committed as 169496
6 years, 9 months ago (2014-03-18 23:15:07 UTC) #16
Hajime Morrita
The CQ bit was checked by morrita@chromium.org
6 years, 9 months ago (2014-03-19 18:13:13 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/morrita@chromium.org/196043002/80001
6 years, 9 months ago (2014-03-19 18:13:24 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-19 18:14:34 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on mac_blink_rel
6 years, 9 months ago (2014-03-19 18:14:34 UTC) #20
Hajime Morrita
The CQ bit was checked by morrita@chromium.org
6 years, 9 months ago (2014-03-19 18:28:51 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/morrita@chromium.org/196043002/80001
6 years, 9 months ago (2014-03-19 18:28:54 UTC) #22
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-19 19:29:46 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_dbg
6 years, 9 months ago (2014-03-19 19:29:47 UTC) #24
Hajime Morrita
Committed patchset #5 manually as r169578 (presubmit successful).
6 years, 9 months ago (2014-03-19 20:07:13 UTC) #25
tkent
A revert of this CL has been created in https://codereview.chromium.org/199733008/ by tkent@chromium.org. The reason for ...
6 years, 9 months ago (2014-03-20 05:27:25 UTC) #26
tkent
http://test-results.appspot.com/dashboards/flakiness_dashboard.html#group=%40ToT%20Blink&showLargeExpectations=true&tests=fast%2Fshapes%2Fshape-inside%2Fshape-inside-image-set.html%2Cfast%2Fshapes%2Fshape-outside-floats%2Fshape-outside-image-set.html
6 years, 9 months ago (2014-03-20 05:28:22 UTC) #27
Hajime Morrita
On 2014/03/20 05:28:22, tkent wrote: > http://test-results.appspot.com/dashboards/flakiness_dashboard.html#group=%2540ToT%2520Blink&showLargeExpectations=true&tests=fast%252Fshapes%252Fshape-inside%252Fshape-inside-image-set.html%252Cfast%252Fshapes%252Fshape-outside-floats%252Fshape-outside-image-set.html Thanks for taking care of it. I thought ...
6 years, 9 months ago (2014-03-20 16:46:58 UTC) #28
Hajime Morrita
The CQ bit was checked by morrita@chromium.org
6 years, 9 months ago (2014-03-20 20:56:28 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/morrita@chromium.org/196043002/100001
6 years, 9 months ago (2014-03-20 20:56:32 UTC) #30
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-20 21:42:20 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on mac_blink_rel
6 years, 9 months ago (2014-03-20 21:42:20 UTC) #32
Hajime Morrita
The CQ bit was checked by morrita@chromium.org
6 years, 9 months ago (2014-03-20 21:44:59 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/morrita@chromium.org/196043002/100001
6 years, 9 months ago (2014-03-20 21:45:16 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/morrita@chromium.org/196043002/100001
6 years, 9 months ago (2014-03-20 21:57:40 UTC) #35
commit-bot: I haz the power
6 years, 9 months ago (2014-03-20 22:28:20 UTC) #36
Message was sent while issue was closed.
Change committed as 169700

Powered by Google App Engine
This is Rietveld 408576698