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

Issue 312653002: ResourceLoaderOptions also must be updated by updateRequestForAccessControl() (Closed)

Created:
6 years, 6 months ago by tyoshino (SeeGerritForStatus)
Modified:
6 years, 6 months ago
Reviewers:
Nate Chapin
CC:
blink-reviews, Nate Chapin, gavinp+loader_chromium.org
Visibility:
Public.

Description

ResourceLoaderOptions also must be updated by updateRequestForAccessControl() updateRequestForAccessControl() updates ResourceRequest for access control, but ResourceLoaderOptions passed to FetchRequest also contains configuration items that must be updated for access control. This CL removes cookie handling code and iframe from the following layout tests since they're testing user:pass but not cookie. - access-control-preflight-credential-async.html - access-control-preflight-credential-sync.html A new test is added to check that no cookie is set in a preflight request. This new test uses third-party-cookie-relaxing-iframe.html which was loaded by the two tests but was not actually used. Missing testRunner.setAlwaysAcceptCookies() calls are added to third-party-cookie-relaxing-iframe.html. BUG=377541 R=japhet Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175527

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Total comments: 4

Patch Set 12 : #

Total comments: 2

Patch Set 13 : Addressed #5 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+155 lines, -77 lines) Patch
M LayoutTests/http/tests/cookies/resources/third-party-cookie-relaxing-iframe.html View 1 2 3 4 5 6 7 8 9 10 2 chunks +9 lines, -0 lines 0 comments Download
M LayoutTests/http/tests/xmlhttprequest/access-control-preflight-credential-async.html View 1 2 3 4 5 6 2 chunks +1 line, -27 lines 0 comments Download
M LayoutTests/http/tests/xmlhttprequest/access-control-preflight-credential-async-expected.txt View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download
M LayoutTests/http/tests/xmlhttprequest/access-control-preflight-credential-sync.html View 1 2 3 4 5 6 2 chunks +1 line, -27 lines 0 comments Download
M LayoutTests/http/tests/xmlhttprequest/access-control-preflight-credential-sync-expected.txt View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download
A LayoutTests/http/tests/xmlhttprequest/access-control-preflight-request-must-not-contain-cookie.html View 1 2 3 4 5 6 8 9 10 1 chunk +77 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/xmlhttprequest/access-control-preflight-request-must-not-contain-cookie-expected.txt View 1 2 3 4 5 6 7 8 9 10 1 chunk +7 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/xmlhttprequest/resources/access-control-preflight-request-must-not-contain-cookie.php View 1 2 3 4 5 1 chunk +13 lines, -0 lines 0 comments Download
M Source/core/fetch/FetchRequest.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/loader/DocumentThreadableLoader.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +15 lines, -3 lines 0 comments Download
M Source/core/loader/DocumentThreadableLoader.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 11 chunks +31 lines, -16 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
tyoshino (SeeGerritForStatus)
6 years, 6 months ago (2014-06-03 12:27:45 UTC) #1
Nate Chapin
LGTM https://codereview.chromium.org/312653002/diff/170001/Source/core/loader/DocumentThreadableLoader.cpp File Source/core/loader/DocumentThreadableLoader.cpp (right): https://codereview.chromium.org/312653002/diff/170001/Source/core/loader/DocumentThreadableLoader.cpp#newcode139 Source/core/loader/DocumentThreadableLoader.cpp:139: ResourceLoaderOptions preflightOptions = *m_actualOptions; m_acutalOptions.get() is how we ...
6 years, 6 months ago (2014-06-03 16:24:55 UTC) #2
tyoshino (SeeGerritForStatus)
PTAL https://codereview.chromium.org/312653002/diff/170001/Source/core/loader/DocumentThreadableLoader.cpp File Source/core/loader/DocumentThreadableLoader.cpp (right): https://codereview.chromium.org/312653002/diff/170001/Source/core/loader/DocumentThreadableLoader.cpp#newcode139 Source/core/loader/DocumentThreadableLoader.cpp:139: ResourceLoaderOptions preflightOptions = *m_actualOptions; On 2014/06/03 16:24:56, Nate ...
6 years, 6 months ago (2014-06-04 05:50:35 UTC) #3
Nate Chapin
LGTM with an apology https://codereview.chromium.org/312653002/diff/190001/Source/core/loader/DocumentThreadableLoader.cpp File Source/core/loader/DocumentThreadableLoader.cpp (right): https://codereview.chromium.org/312653002/diff/190001/Source/core/loader/DocumentThreadableLoader.cpp#newcode392 Source/core/loader/DocumentThreadableLoader.cpp:392: loadRequest(*actualRequest.get(), *actualOptions.get()); I think I ...
6 years, 6 months ago (2014-06-04 16:08:20 UTC) #4
Nate Chapin
LGTM with an apology
6 years, 6 months ago (2014-06-04 16:08:21 UTC) #5
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/312653002/diff/190001/Source/core/loader/DocumentThreadableLoader.cpp File Source/core/loader/DocumentThreadableLoader.cpp (right): https://codereview.chromium.org/312653002/diff/190001/Source/core/loader/DocumentThreadableLoader.cpp#newcode392 Source/core/loader/DocumentThreadableLoader.cpp:392: loadRequest(*actualRequest.get(), *actualOptions.get()); On 2014/06/04 16:08:21, Nate Chapin wrote: > ...
6 years, 6 months ago (2014-06-05 02:10:49 UTC) #6
tyoshino (SeeGerritForStatus)
The CQ bit was checked by tyoshino@chromium.org
6 years, 6 months ago (2014-06-05 02:12:13 UTC) #7
tyoshino (SeeGerritForStatus)
The CQ bit was unchecked by tyoshino@chromium.org
6 years, 6 months ago (2014-06-05 02:12:41 UTC) #8
tyoshino (SeeGerritForStatus)
The CQ bit was checked by tyoshino@chromium.org
6 years, 6 months ago (2014-06-05 02:13:02 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tyoshino@chromium.org/312653002/210001
6 years, 6 months ago (2014-06-05 02:13:59 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_blink_rel on tryserver.blink ...
6 years, 6 months ago (2014-06-05 03:17:41 UTC) #11
commit-bot: I haz the power
6 years, 6 months ago (2014-06-05 04:46:16 UTC) #12
Message was sent while issue was closed.
Change committed as 175527

Powered by Google App Engine
This is Rietveld 408576698