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

Issue 1489253002: Plumb document's strict mixed content checking for RemoteFrames (Closed)

Created:
5 years ago by estark
Modified:
5 years ago
Reviewers:
Mike West, alexmos, dcheng, nasko
CC:
blink-reviews, blink-reviews-api_chromium.org, blink-reviews-dom_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dglazkov+blink, eae+blinkwatch, gavinp+loader_chromium.org, jam, Nate Chapin, loading-reviews_chromium.org, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-blink_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, rwlbuis, sof, site-isolation-reviews_chromium.org, tyoshino+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Plumb document's strict mixed content checking for RemoteFrames When a document's enforcement of strict mixed content checking changes, propagate the new value to corresponding RemoteFrames. This will allow MixedContentChecker to work with OOPIFs. BUG=486936 Committed: https://crrev.com/a886b8d6c10c4b218621fb762026fab7b426f608 Cr-Commit-Position: refs/heads/master@{#366177}

Patch Set 1 #

Patch Set 2 : fix #

Total comments: 18

Patch Set 3 : alexmos comments #

Total comments: 2

Patch Set 4 : rebase #

Patch Set 5 : add back in the check to avoid always sending updates #

Patch Set 6 : rebase fixup #

Patch Set 7 : rebase #

Patch Set 8 : set flag from DidCommitProvisionalLoad_Params #

Patch Set 9 : add unit tests #

Patch Set 10 : fix transition type for test crashes #

Total comments: 14

Patch Set 11 : alexmos test comments #

Total comments: 10

Patch Set 12 : alexmos nits #

Total comments: 20

Patch Set 13 : nasko comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+256 lines, -25 lines) Patch
M content/browser/frame_host/frame_tree_node.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/frame_host/frame_tree_node.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +15 lines, -1 line 0 comments Download
M content/browser/frame_host/navigator_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +6 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +11 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +102 lines, -0 lines 0 comments Download
M content/common/frame_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +17 lines, -0 lines 0 comments Download
M content/common/frame_replication_state.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +7 lines, -1 line 0 comments Download
M content/common/frame_replication_state.cc View 1 chunk +10 lines, -5 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +11 lines, -4 lines 0 comments Download
M content/renderer/render_frame_proxy.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_frame_proxy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +10 lines, -0 lines 0 comments Download
M content/test/test_render_frame_host.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M content/test/test_render_frame_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ExecutionContext.h View 2 chunks +0 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ExecutionContext.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/SecurityContext.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/SecurityContext.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.cpp View 1 2 3 1 chunk +1 line, -7 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoaderClient.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/MixedContentChecker.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/FrameLoaderClientImpl.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebFrame.cpp View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebRemoteFrameImpl.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebFrame.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebFrameClient.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebRemoteFrame.h View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (10 generated)
estark
alexmos: could you take a look at this from a site-isolation-y point of view? I'm ...
5 years ago (2015-12-02 18:14:29 UTC) #3
alexmos
+site-isolation-reviews Thanks for taking this on, Emily! I think this makes sense overall -- a ...
5 years ago (2015-12-03 20:43:26 UTC) #4
estark
Thanks Alex. By the way, do you know of any examples that I should look ...
5 years ago (2015-12-04 00:19:32 UTC) #5
alexmos
> Thanks Alex. By the way, do you know of any examples that I should ...
5 years ago (2015-12-04 23:41:11 UTC) #6
estark
Thanks for the pointers about testing; I'll take a look. In the meantime see please ...
5 years ago (2015-12-07 20:39:33 UTC) #7
alexmos
https://codereview.chromium.org/1489253002/diff/20001/content/browser/frame_host/frame_tree_node.cc File content/browser/frame_host/frame_tree_node.cc (right): https://codereview.chromium.org/1489253002/diff/20001/content/browser/frame_host/frame_tree_node.cc#newcode218 content/browser/frame_host/frame_tree_node.cc:218: replication_state_.should_enforce_strict_mixed_content_checking = On 2015/12/07 20:39:33, estark wrote: > On ...
5 years ago (2015-12-08 01:06:36 UTC) #8
estark
On 2015/12/08 01:06:36, alexmos wrote: > https://codereview.chromium.org/1489253002/diff/20001/content/browser/frame_host/frame_tree_node.cc > File content/browser/frame_host/frame_tree_node.cc (right): > > https://codereview.chromium.org/1489253002/diff/20001/content/browser/frame_host/frame_tree_node.cc#newcode218 > ...
5 years ago (2015-12-10 02:04:01 UTC) #9
alexmos
Great. Just a few nits in the test and a couple of other questions. https://codereview.chromium.org/1489253002/diff/180001/content/browser/frame_host/render_frame_host_manager.cc ...
5 years ago (2015-12-11 02:52:27 UTC) #10
estark
https://codereview.chromium.org/1489253002/diff/180001/content/browser/frame_host/render_frame_host_manager.cc File content/browser/frame_host/render_frame_host_manager.cc (right): https://codereview.chromium.org/1489253002/diff/180001/content/browser/frame_host/render_frame_host_manager.cc#newcode1189 content/browser/frame_host/render_frame_host_manager.cc:1189: for (const auto& pair : *proxy_hosts_) { On 2015/12/11 ...
5 years ago (2015-12-12 01:35:43 UTC) #11
alexmos
Thanks, LGTM with nits. https://codereview.chromium.org/1489253002/diff/200001/content/browser/frame_host/render_frame_host_impl.h File content/browser/frame_host/render_frame_host_impl.h (right): https://codereview.chromium.org/1489253002/diff/200001/content/browser/frame_host/render_frame_host_impl.h#newcode538 content/browser/frame_host/render_frame_host_impl.h:538: ProxiesReceiveShouldEnforceStrictMixedContentChecking); nit: it's probably a ...
5 years ago (2015-12-15 17:49:17 UTC) #12
estark
alexmos: thank you very much for the review! I'll address your nits shortly (my workstation ...
5 years ago (2015-12-15 18:25:30 UTC) #14
estark
https://codereview.chromium.org/1489253002/diff/200001/content/browser/frame_host/render_frame_host_impl.h File content/browser/frame_host/render_frame_host_impl.h (right): https://codereview.chromium.org/1489253002/diff/200001/content/browser/frame_host/render_frame_host_impl.h#newcode538 content/browser/frame_host/render_frame_host_impl.h:538: ProxiesReceiveShouldEnforceStrictMixedContentChecking); On 2015/12/15 17:49:16, alexmos wrote: > nit: it's ...
5 years ago (2015-12-15 21:28:50 UTC) #15
Mike West
Blink LGTM, thanks!
5 years ago (2015-12-16 08:22:27 UTC) #16
dcheng
https://codereview.chromium.org/1489253002/diff/220001/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/1489253002/diff/220001/third_party/WebKit/Source/core/dom/Document.cpp#newcode5773 third_party/WebKit/Source/core/dom/Document.cpp:5773: if (frame()) So I have a dumb question. It ...
5 years ago (2015-12-16 10:18:19 UTC) #18
estark
https://codereview.chromium.org/1489253002/diff/220001/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/1489253002/diff/220001/third_party/WebKit/Source/core/dom/Document.cpp#newcode5773 third_party/WebKit/Source/core/dom/Document.cpp:5773: if (frame()) On 2015/12/16 10:18:19, dcheng wrote: > So ...
5 years ago (2015-12-16 21:01:18 UTC) #19
estark
nasko: friendly ping :)
5 years ago (2015-12-17 16:17:46 UTC) #20
nasko
Thanks a lot for tackling this one Emily! Looks good, with mostly nits and naming. ...
5 years ago (2015-12-17 17:16:33 UTC) #21
alexmos
https://codereview.chromium.org/1489253002/diff/220001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/1489253002/diff/220001/content/renderer/render_frame_impl.cc#newcode4190 content/renderer/render_frame_impl.cc:4190: frame->shouldEnforceStrictMixedContentChecking(); On 2015/12/17 17:16:33, nasko wrote: > nit: Why ...
5 years ago (2015-12-17 17:43:02 UTC) #22
estark
Thanks, nasko. https://codereview.chromium.org/1489253002/diff/220001/content/browser/frame_host/frame_tree_node.cc File content/browser/frame_host/frame_tree_node.cc (right): https://codereview.chromium.org/1489253002/diff/220001/content/browser/frame_host/frame_tree_node.cc#newcode219 content/browser/frame_host/frame_tree_node.cc:219: replication_state_.should_enforce_strict_mixed_content_checking = On 2015/12/17 17:16:32, nasko wrote: ...
5 years ago (2015-12-17 22:19:11 UTC) #23
Mike West
On 2015/12/16 at 21:01:18, estark wrote: > https://codereview.chromium.org/1489253002/diff/220001/third_party/WebKit/Source/core/dom/Document.cpp > File third_party/WebKit/Source/core/dom/Document.cpp (right): > > https://codereview.chromium.org/1489253002/diff/220001/third_party/WebKit/Source/core/dom/Document.cpp#newcode5773 ...
5 years ago (2015-12-18 07:37:01 UTC) #24
dcheng
On 2015/12/18 at 07:37:01, mkwst wrote: > On 2015/12/16 at 21:01:18, estark wrote: > > ...
5 years ago (2015-12-18 08:27:14 UTC) #25
nasko
LGTM https://codereview.chromium.org/1489253002/diff/220001/content/browser/frame_host/frame_tree_node.cc File content/browser/frame_host/frame_tree_node.cc (right): https://codereview.chromium.org/1489253002/diff/220001/content/browser/frame_host/frame_tree_node.cc#newcode219 content/browser/frame_host/frame_tree_node.cc:219: replication_state_.should_enforce_strict_mixed_content_checking = On 2015/12/17 22:19:10, estark wrote: > ...
5 years ago (2015-12-18 18:27:12 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1489253002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1489253002/240001
5 years ago (2015-12-18 18:34:46 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/1265)
5 years ago (2015-12-18 20:10:30 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1489253002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1489253002/240001
5 years ago (2015-12-18 20:48:53 UTC) #33
commit-bot: I haz the power
Committed patchset #13 (id:240001)
5 years ago (2015-12-18 21:53:16 UTC) #35
commit-bot: I haz the power
5 years ago (2015-12-18 21:54:08 UTC) #37
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/a886b8d6c10c4b218621fb762026fab7b426f608
Cr-Commit-Position: refs/heads/master@{#366177}

Powered by Google App Engine
This is Rietveld 408576698