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

Issue 2040133003: Replace SecurityContext::InsecureRequestsPolicy with WebInsecureRequestPolicy. (Closed)

Created:
4 years, 6 months ago by Mike West
Modified:
4 years, 6 months ago
Reviewers:
Yoav Weiss
CC:
blink-reviews, blink-reviews-dom_chromium.org, blink-reviews-html_chromium.org, chromium-reviews, dcheng, dglazkov+blink, eae+blinkwatch, gavinp+loader_chromium.org, haraken, Nate Chapin, kinuko+watch, loading-reviews_chromium.org, mkwst+watchlist-csp_chromium.org, mlamouri+watch-blink_chromium.org, rwlbuis, sof, tyoshino+watch_chromium.org, yhirano+watch_chromium.org, Yoav Weiss
Base URL:
https://chromium.googlesource.com/chromium/src.git@combine-uir-block
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace SecurityContext::InsecureRequestsPolicy with WebInsecureRequestPolicy. Introduced in https://codereview.chromium.org/2046523005, WebInsecureRequestPolicy aims to represent the complete policy set by a context for insecure requests. This patch expands its usage from //core/frame/csp to encompass all of blink, replacing 'SecurityContext::InsecureRequestsPolicy' and the strict mixed content checking boolean in various bits of our loading infrastructure. The next step will be to replicate this bitfield to remote frames instead of replicating the strict mixed content checking boolean. [Step 1]: https://codereview.chromium.org/2046523005 [Step 2]: This patch. [Step 3]: https://codereview.chromium.org/2046733003 BUG=617947 R=yoav@yoav.ws Committed: https://crrev.com/12f4d38a6a405aa5c07b235048cab2d478b0b92c Cr-Commit-Position: refs/heads/master@{#398879}

Patch Set 1 #

Total comments: 1

Patch Set 2 : ugh. #

Patch Set 3 : cast #

Patch Set 4 : Ugh. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -92 lines) Patch
M third_party/WebKit/Source/core/dom/Document.h View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 3 2 chunks +10 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/dom/DocumentInit.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/DocumentInit.cpp View 1 chunk +2 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/dom/SecurityContext.h View 1 4 chunks +4 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/core/dom/SecurityContext.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.cpp View 1 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicyTest.cpp View 1 2 3 3 chunks +9 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLFormElement.cpp View 2 chunks +8 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FormSubmission.cpp View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContext.cpp View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp View 4 chunks +7 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.h View 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.cpp View 1 2 3 1 chunk +3 lines, -18 lines 0 comments Download
M third_party/WebKit/Source/core/loader/MixedContentChecker.cpp View 3 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/websockets/DOMWebSocket.cpp View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/websockets/DOMWebSocketTest.cpp View 3 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebFrame.cpp View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp View 1 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 36 (18 generated)
Mike West
This is patch #2 of (probably) #3. WDYT? :)
4 years, 6 months ago (2016-06-07 10:32:05 UTC) #2
Yoav Weiss
https://codereview.chromium.org/2040133003/diff/1/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp File third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp (right): https://codereview.chromium.org/2040133003/diff/1/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp#newcode665 third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp:665: WebInsecureRequestPolicy newPolicy = shouldEnforce ? oldPolicy & ~kBlockAllMixedContent : ...
4 years, 6 months ago (2016-06-07 11:18:54 UTC) #3
Mike West
On 2016/06/07 at 11:18:54, yoav wrote: > https://codereview.chromium.org/2040133003/diff/1/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp > File third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp (right): > > https://codereview.chromium.org/2040133003/diff/1/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp#newcode665 ...
4 years, 6 months ago (2016-06-07 12:14:14 UTC) #4
Yoav Weiss
On 2016/06/07 12:14:14, Mike West (OOO until 30th) wrote: > On 2016/06/07 at 11:18:54, yoav ...
4 years, 6 months ago (2016-06-07 12:51:21 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2040133003/20001
4 years, 6 months ago (2016-06-08 07:20:15 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/202798)
4 years, 6 months ago (2016-06-08 08:21:35 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2040133003/40001
4 years, 6 months ago (2016-06-08 09:53:55 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/78211)
4 years, 6 months ago (2016-06-08 10:15:25 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2040133003/60001
4 years, 6 months ago (2016-06-08 12:18:33 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/235357)
4 years, 6 months ago (2016-06-08 17:32:09 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2040133003/60001
4 years, 6 months ago (2016-06-08 18:10:17 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/235590)
4 years, 6 months ago (2016-06-08 22:10:32 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2040133003/60001
4 years, 6 months ago (2016-06-09 05:32:23 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/236196)
4 years, 6 months ago (2016-06-09 09:39:34 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2040133003/60001
4 years, 6 months ago (2016-06-09 12:02:55 UTC) #32
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 6 months ago (2016-06-09 14:58:55 UTC) #33
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-09 14:59:09 UTC) #34
commit-bot: I haz the power
4 years, 6 months ago (2016-06-09 15:00:07 UTC) #36
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/12f4d38a6a405aa5c07b235048cab2d478b0b92c
Cr-Commit-Position: refs/heads/master@{#398879}

Powered by Google App Engine
This is Rietveld 408576698