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

Issue 2625633002: Supporting changes in preparation of browser side mixed content checking. (Closed)

Created:
3 years, 11 months ago by carlosk
Modified:
3 years, 11 months ago
CC:
apavlov+blink_chromium.org, blink-reviews, blink-reviews-api_chromium.org, caseq+blink_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, devtools-reviews_chromium.org, dglazkov+blink, gavinp+loader_chromium.org, Nate Chapin, kinuko+watch, kozyatinskiy+blink_chromium.org, loading-reviews_chromium.org, lushnikov+blink_chromium.org, mlamouri+watch-content_chromium.org, mmenke, nasko+codewatch_chromium.org, pfeldman+blink_chromium.org, Randy Smith (Not in Mondays), tyoshino+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Supporting changes in preparation of browser side mixed content checking. This CL adds some support ahead of time for the upcoming one that will partially move mixed content checks to the browser (https://crrev.com/1905033002). These changes are: - Split mixed content Blink public code into two different files to separate constants (WebMixedContentContextType) from functions (WebMixedContent). - The renderer now sends back to the browser information about the WebMixedContentContextType for navigation requests so that the browser won't need to execute Blink code (what is not acceptable). There's quite some piping involved in making this happen and some tests needed updates to avoid DCHECKs to be hit. For browser side requests it is set to match the RequestContextType used (blink::WebMixedContentContextType::Blockable to content::REQUEST_CONTEXT_TYPE_LOCATION). - Moved mixed content code that was previously made public back into MixedContentChecker where it used to be as it doesn't need to be public anymore. BUG=576270 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2625633002 Cr-Commit-Position: refs/heads/master@{#442963} Committed: https://chromium.googlesource.com/chromium/src/+/709f33fc760a622f45e96214c9cd90b3b2021485

Patch Set 1 #

Total comments: 4

Patch Set 2 : Merged a lot of missed changes from the original CL. #

Total comments: 4

Patch Set 3 : Address code review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+256 lines, -176 lines) Patch
M content/browser/DEPS View 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/frame_host/navigation_handle_impl.h View 1 4 chunks +10 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigation_handle_impl.cc View 5 chunks +5 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigation_handle_impl_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/frame_host/navigation_request.cc View 4 chunks +6 lines, -2 lines 0 comments Download
M content/browser/loader/navigation_resource_throttle.h View 1 3 chunks +4 lines, -1 line 0 comments Download
M content/browser/loader/navigation_resource_throttle.cc View 1 4 chunks +8 lines, -3 lines 0 comments Download
M content/browser/loader/navigation_url_loader_unittest.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 4 chunks +5 lines, -1 line 0 comments Download
M content/browser/loader/resource_dispatcher_host_unittest.cc View 2 chunks +9 lines, -6 lines 0 comments Download
M content/child/request_extra_data.h View 2 chunks +10 lines, -0 lines 0 comments Download
M content/child/request_extra_data.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/child/web_url_loader_impl.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M content/child/web_url_loader_impl_unittest.cc View 3 chunks +3 lines, -0 lines 0 comments Download
M content/child/web_url_request_util.h View 1 2 chunks +3 lines, -0 lines 0 comments Download
M content/child/web_url_request_util.cc View 1 2 chunks +14 lines, -0 lines 0 comments Download
M content/common/DEPS View 2 chunks +2 lines, -1 line 0 comments Download
M content/common/frame_messages.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/common/navigation_params.h View 1 3 chunks +12 lines, -6 lines 0 comments Download
M content/common/navigation_params.cc View 1 2 chunks +5 lines, -1 line 0 comments Download
M content/common/resource_messages.h View 1 2 3 chunks +5 lines, -0 lines 0 comments Download
M content/common/resource_request.h View 2 chunks +5 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 chunk +3 lines, -1 line 0 comments Download
M content/renderer/render_view_browsertest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/test/test_render_frame_host.cc View 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp View 2 chunks +6 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/loader/MixedContentChecker.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/loader/MixedContentChecker.cpp View 1 10 chunks +91 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/core/loader/MixedContentCheckerTest.cpp View 4 chunks +7 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/exported/WebMixedContent.cpp View 3 chunks +7 lines, -84 lines 0 comments Download
M third_party/WebKit/public/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/public/platform/WebMixedContent.h View 1 chunk +5 lines, -14 lines 0 comments Download
A + third_party/WebKit/public/platform/WebMixedContentContextType.h View 1 2 1 chunk +9 lines, -20 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 31 (16 generated)
carlosk
jam@: PTAL. https://codereview.chromium.org/2625633002/diff/1/third_party/WebKit/public/platform/WebMixedContentContextType.h File third_party/WebKit/public/platform/WebMixedContentContextType.h (right): https://codereview.chromium.org/2625633002/diff/1/third_party/WebKit/public/platform/WebMixedContentContextType.h#newcode37 third_party/WebKit/public/platform/WebMixedContentContextType.h:37: enum class WebMixedContentContextType { Anyone with an ...
3 years, 11 months ago (2017-01-10 06:37:29 UTC) #5
jam
lgtm I'm not an owner in webkit so please pick another reviewer for that https://codereview.chromium.org/2625633002/diff/1/content/browser/frame_host/navigation_handle_impl.h ...
3 years, 11 months ago (2017-01-10 07:08:04 UTC) #8
jam
On 2017/01/10 07:08:04, jam wrote: > lgtm > > I'm not an owner in webkit ...
3 years, 11 months ago (2017-01-10 07:09:18 UTC) #9
carlosk
On 2017/01/10 07:09:18, jam wrote: > On 2017/01/10 07:08:04, jam wrote: > > lgtm > ...
3 years, 11 months ago (2017-01-10 07:16:14 UTC) #10
carlosk
jochen@: PTAL at third_party/WebKit/*. Please also mind my comment on patch set #1. nasko@: PTAL ...
3 years, 11 months ago (2017-01-10 07:21:13 UTC) #12
jochen (gone - plz use gerrit)
deferring to Mike for WebKit
3 years, 11 months ago (2017-01-10 09:47:03 UTC) #16
jochen (gone - plz use gerrit)
lgtm
3 years, 11 months ago (2017-01-10 15:32:12 UTC) #17
nasko
https://codereview.chromium.org/2625633002/diff/20001/content/common/DEPS File content/common/DEPS (right): https://codereview.chromium.org/2625633002/diff/20001/content/common/DEPS#newcode41 content/common/DEPS:41: "+third_party/WebKit/public/platform/modules/permissions/WebPermissionType.h", Why did the ordering of these change? https://codereview.chromium.org/2625633002/diff/20001/content/common/resource_messages.h ...
3 years, 11 months ago (2017-01-10 17:11:36 UTC) #18
carlosk
Thanks. https://codereview.chromium.org/2625633002/diff/20001/content/common/DEPS File content/common/DEPS (right): https://codereview.chromium.org/2625633002/diff/20001/content/common/DEPS#newcode41 content/common/DEPS:41: "+third_party/WebKit/public/platform/modules/permissions/WebPermissionType.h", On 2017/01/10 17:11:36, nasko wrote: > Why ...
3 years, 11 months ago (2017-01-10 21:46:18 UTC) #19
nasko
IPC LGTM
3 years, 11 months ago (2017-01-10 23:28:43 UTC) #20
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/2625633002/40001
3 years, 11 months ago (2017-01-10 23:34:35 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/368375)
3 years, 11 months ago (2017-01-11 02:59:42 UTC) #25
Mike West
//third_party/WebKit LGTM. :)
3 years, 11 months ago (2017-01-11 12:58:15 UTC) #26
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/2625633002/40001
3 years, 11 months ago (2017-01-11 18:27:11 UTC) #28
commit-bot: I haz the power
3 years, 11 months ago (2017-01-11 18:44:55 UTC) #31
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/709f33fc760a622f45e96214c9cd...

Powered by Google App Engine
This is Rietveld 408576698