|
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
Total comments: 4
Total comments: 4
|
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:
Total messages: 31 (16 generated)
|