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

Issue 1847383003: CREDENTIAL: Rework the integration with Fetch (2/2)

Created:
4 years, 8 months ago by Mike West
Modified:
4 years, 8 months ago
CC:
blink-reviews, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, jam, kinuko+watch, loading-reviews_chromium.org, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@pass-serialized
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

CREDENTIAL: Hide POSTed credentials from service workers. Using the attached credential concept added in the patch at https://codereview.chromium.org/1844053003, this patch teaches the machinery in //content about the two request bodies exposed by WebURLRequest, and passes an empty body into the Service Worker handler when a credential is present. BUG=599597

Patch Set 1 #

Patch Set 2 : unittest #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+182 lines, -41 lines) Patch
M content/browser/loader/resource_dispatcher_host_impl.cc View 2 chunks +12 lines, -10 lines 0 comments Download
M content/child/request_info.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/child/request_info.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/child/resource_dispatcher.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M content/child/web_url_loader_impl.cc View 2 chunks +18 lines, -4 lines 0 comments Download
M content/child/web_url_loader_impl_unittest.cc View 1 3 chunks +33 lines, -0 lines 1 comment Download
M content/child/web_url_request_util.h View 2 chunks +5 lines, -2 lines 0 comments Download
M content/child/web_url_request_util.cc View 2 chunks +18 lines, -16 lines 0 comments Download
M content/common/resource_messages.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/credentialmanager/passwordcredential-fetch.html View 1 chunk +0 lines, -1 line 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/credentialmanager/passwordcredential-fetch-serviceworker.html View 1 chunk +34 lines, -0 lines 3 comments Download
A third_party/WebKit/LayoutTests/http/tests/credentialmanager/resources/fetch-serviceworker.html View 1 chunk +36 lines, -0 lines 2 comments Download
A third_party/WebKit/LayoutTests/http/tests/credentialmanager/resources/respond-with-body.js View 1 chunk +15 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/exported/WebURLRequest.cpp View 1 chunk +0 lines, -6 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 6 (1 generated)
Mike West
Hello, lovely folks who are reviewing https://codereview.chromium.org/1844053003, and should certainly be given an opportunity to ...
4 years, 8 months ago (2016-04-01 12:27:06 UTC) #2
horo
https://codereview.chromium.org/1847383003/diff/20001/third_party/WebKit/LayoutTests/http/tests/credentialmanager/passwordcredential-fetch-serviceworker.html File third_party/WebKit/LayoutTests/http/tests/credentialmanager/passwordcredential-fetch-serviceworker.html (right): https://codereview.chromium.org/1847383003/diff/20001/third_party/WebKit/LayoutTests/http/tests/credentialmanager/passwordcredential-fetch-serviceworker.html#newcode25 third_party/WebKit/LayoutTests/http/tests/credentialmanager/passwordcredential-fetch-serviceworker.html:25: .then(_ => service_worker_unregister_and_done(t, scope)); Nit: Remove trailing whitespace. https://codereview.chromium.org/1847383003/diff/20001/third_party/WebKit/LayoutTests/http/tests/credentialmanager/passwordcredential-fetch-serviceworker.html#newcode30 ...
4 years, 8 months ago (2016-04-04 05:32:17 UTC) #3
philipj_slow
Took a look at the tests, all nice and tidy, I'll leave the rest to ...
4 years, 8 months ago (2016-04-06 13:33:00 UTC) #4
tyoshino (SeeGerritForStatus)
.cpp .h lgtm https://codereview.chromium.org/1847383003/diff/20001/content/child/web_url_loader_impl_unittest.cc File content/child/web_url_loader_impl_unittest.cc (right): https://codereview.chromium.org/1847383003/diff/20001/content/child/web_url_loader_impl_unittest.cc#newcode623 content/child/web_url_loader_impl_unittest.cc:623: request.setURL(GURL(kTestURL)); order these two lines the ...
4 years, 8 months ago (2016-04-12 16:30:25 UTC) #5
jochen (gone - plz use gerrit)
4 years, 8 months ago (2016-04-12 18:56:18 UTC) #6
lgtm

Powered by Google App Engine
This is Rietveld 408576698