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

Issue 838903002: Replicate sandbox flags for OOPIF (Blink part 2) (Closed)

Created:
5 years, 11 months ago by alexmos
Modified:
5 years, 11 months ago
Reviewers:
Nate Chapin, dcheng
CC:
blink-reviews, blink-reviews-html_chromium.org, dglazkov+blink, gavinp+loader_chromium.org, site-isolation-reviews_chromium.org, tyoshino+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@iframe-sandbox-flags-part1
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Replicate sandbox flags for OOPIF (Blink part 2). * Add plumbing to pass sandbox flags from HTMLFrameOwnerElement to browser process via WebFrameClient::createChildFrame(). * Enable RemoteBridgeFrameOwner::sandboxFlags() to check the remote parent's (replicated) sandbox flags, similarly to what HTMLFrameOwnerElement::sandboxFlags() does. * Remove the old version of WebRemoteFrame::createLocalChild. Blink part 1 is here: https://codereview.chromium.org/793493003/ Corresponding Chromium CL: https://codereview.chromium.org/837283003/ BUG=426512 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=188835

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Rebase #

Patch Set 4 : Remove old createLocalChild #

Total comments: 11

Patch Set 5 : Address dcheng's comments #

Patch Set 6 : Simplify the plumbing by making HTMLFrameOwnerElement::sandboxFlags() public #

Total comments: 9

Patch Set 7 : Address Daniel's comments. Move sandbox flags inheritance to FrameLoader::effectiveSandboxFlags(). #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -30 lines) Patch
M Source/core/html/HTMLFrameOwnerElement.h View 1 2 3 4 5 6 2 chunks +5 lines, -5 lines 0 comments Download
M Source/core/html/HTMLFrameOwnerElement.cpp View 1 2 3 4 5 6 1 chunk +0 lines, -5 lines 0 comments Download
M Source/core/loader/FrameLoader.cpp View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 2 comments Download
M Source/web/WebLocalFrameImpl.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebRemoteFrameImpl.h View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M Source/web/WebRemoteFrameImpl.cpp View 1 2 3 4 5 6 1 chunk +0 lines, -6 lines 0 comments Download
M Source/web/tests/FrameTestHelpers.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/web/tests/FrameTestHelpers.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M Source/web/tests/WebFrameTest.cpp View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M Source/web/tests/WebViewTest.cpp View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M public/web/WebFrameClient.h View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M public/web/WebRemoteFrame.h View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (3 generated)
alexmos
Daniel, could you please take a look? https://codereview.chromium.org/838903002/diff/60001/Source/web/FrameLoaderClientImpl.cpp File Source/web/FrameLoaderClientImpl.cpp (right): https://codereview.chromium.org/838903002/diff/60001/Source/web/FrameLoaderClientImpl.cpp#newcode680 Source/web/FrameLoaderClientImpl.cpp:680: FrameLoadRequest frameRequest(m_webFrame->frame()->document(), ...
5 years, 11 months ago (2015-01-16 18:31:41 UTC) #2
dcheng
https://codereview.chromium.org/838903002/diff/60001/Source/core/loader/FrameLoadRequest.h File Source/core/loader/FrameLoadRequest.h (right): https://codereview.chromium.org/838903002/diff/60001/Source/core/loader/FrameLoadRequest.h#newcode83 Source/core/loader/FrameLoadRequest.h:83: , m_sandboxFlags(SandboxNone) We should probably consider delegated constructors =) ...
5 years, 11 months ago (2015-01-16 19:11:20 UTC) #4
alexmos
https://codereview.chromium.org/838903002/diff/60001/Source/core/loader/FrameLoadRequest.h File Source/core/loader/FrameLoadRequest.h (right): https://codereview.chromium.org/838903002/diff/60001/Source/core/loader/FrameLoadRequest.h#newcode83 Source/core/loader/FrameLoadRequest.h:83: , m_sandboxFlags(SandboxNone) On 2015/01/16 19:11:19, dcheng wrote: > We ...
5 years, 11 months ago (2015-01-17 02:54:42 UTC) #5
alexmos
Hi Nate - friendly ping about the question in FrameLoaderClientImpl.cpp, and while at it, could ...
5 years, 11 months ago (2015-01-21 17:44:02 UTC) #6
Nate Chapin
Source/web/ changes look reasonable in general. https://codereview.chromium.org/838903002/diff/60001/Source/web/FrameLoaderClientImpl.cpp File Source/web/FrameLoaderClientImpl.cpp (right): https://codereview.chromium.org/838903002/diff/60001/Source/web/FrameLoaderClientImpl.cpp#newcode680 Source/web/FrameLoaderClientImpl.cpp:680: FrameLoadRequest frameRequest(m_webFrame->frame()->document(), url, ...
5 years, 11 months ago (2015-01-21 18:27:31 UTC) #7
alexmos
On 2015/01/21 18:27:31, Nate Chapin wrote: > Source/web/ changes look reasonable in general. > > ...
5 years, 11 months ago (2015-01-21 22:18:59 UTC) #8
dcheng
https://codereview.chromium.org/838903002/diff/100001/Source/core/html/HTMLFrameOwnerElement.h File Source/core/html/HTMLFrameOwnerElement.h (right): https://codereview.chromium.org/838903002/diff/100001/Source/core/html/HTMLFrameOwnerElement.h#newcode96 Source/core/html/HTMLFrameOwnerElement.h:96: virtual void dispatchLoad() override; I think we should move ...
5 years, 11 months ago (2015-01-21 23:19:06 UTC) #9
alexmos
https://codereview.chromium.org/838903002/diff/100001/Source/core/html/HTMLFrameOwnerElement.h File Source/core/html/HTMLFrameOwnerElement.h (right): https://codereview.chromium.org/838903002/diff/100001/Source/core/html/HTMLFrameOwnerElement.h#newcode96 Source/core/html/HTMLFrameOwnerElement.h:96: virtual void dispatchLoad() override; On 2015/01/21 23:19:06, dcheng wrote: ...
5 years, 11 months ago (2015-01-22 00:37:58 UTC) #10
Nate Chapin
https://codereview.chromium.org/838903002/diff/100001/Source/core/html/HTMLFrameOwnerElement.h File Source/core/html/HTMLFrameOwnerElement.h (right): https://codereview.chromium.org/838903002/diff/100001/Source/core/html/HTMLFrameOwnerElement.h#newcode96 Source/core/html/HTMLFrameOwnerElement.h:96: virtual void dispatchLoad() override; On 2015/01/22 00:37:58, alexmos wrote: ...
5 years, 11 months ago (2015-01-22 19:00:28 UTC) #11
dcheng
LGTM, as long as japhet@ has no objections. https://codereview.chromium.org/838903002/diff/120001/Source/core/loader/FrameLoader.cpp File Source/core/loader/FrameLoader.cpp (right): https://codereview.chromium.org/838903002/diff/120001/Source/core/loader/FrameLoader.cpp#newcode1384 Source/core/loader/FrameLoader.cpp:1384: flags ...
5 years, 11 months ago (2015-01-22 19:05:53 UTC) #12
Nate Chapin
On 2015/01/22 19:05:53, dcheng wrote: > LGTM, as long as japhet@ has no objections. > ...
5 years, 11 months ago (2015-01-22 19:12:14 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/838903002/120001
5 years, 11 months ago (2015-01-22 21:40:52 UTC) #15
commit-bot: I haz the power
5 years, 11 months ago (2015-01-22 21:50:29 UTC) #16
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=188835

Powered by Google App Engine
This is Rietveld 408576698