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

Issue 2378643002: Propagating csp attribute changes on frameOwnerPropertiesChanged() (Closed)

Created:
4 years, 2 months ago by amalika
Modified:
4 years, 2 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, blink-reviews-html_chromium.org, chromium-reviews, dcheng, dglazkov+blink, kinuko+watch, mlamouri+watch-blink_chromium.org, site-isolation-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adding csp to frameOwnerPropertiesChanged If the iframe is remote and the csp attribute gets updated, we need to have access to the newest value when sending Embedding-CSP header and setting browsing context's requiredCSP value. BUG=647588 Committed: https://crrev.com/e4100ce09bf324e0fb2612ae83c7892f0870c3fe Cr-Commit-Position: refs/heads/master@{#423468}

Patch Set 1 #

Patch Set 2 : Adding csp() getter on frame elements #

Patch Set 3 : Adding test in SitePerProcessBrowserTest #

Patch Set 4 : Enable Experimental switch #

Total comments: 10

Patch Set 5 : Separating CSP test, addressing co commnets #

Total comments: 8

Patch Set 6 : Changing the test class to move the switch #

Total comments: 12

Patch Set 7 : Separating the test, string16 to string, adding comments #

Total comments: 2

Patch Set 8 : Removing margins from the test html file #

Total comments: 2

Patch Set 9 : Renaming to required_csp #

Patch Set 10 : rebasing on master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -3 lines) Patch
M content/browser/site_per_process_browsertest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +74 lines, -0 lines 0 comments Download
M content/common/frame_messages.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/common/frame_owner_properties.h View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -0 lines 0 comments Download
M content/common/frame_owner_properties.cc View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -0 lines 0 comments Download
A content/test/data/frame_owner_properties_csp.html View 1 2 3 4 5 6 7 1 chunk +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameOwner.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLIFrameElement.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/RemoteFrameOwner.h View 1 2 3 4 5 6 7 3 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/RemoteFrameOwner.cpp View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebFrame.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/public/web/WebFrameOwnerProperties.h View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 39 (20 generated)
amalika
4 years, 2 months ago (2016-09-28 08:41:17 UTC) #2
dcheng
Drive-by, but please make sure the CL description is more... descriptive. Not just 'what the ...
4 years, 2 months ago (2016-09-28 08:52:37 UTC) #5
Mike West
On 2016/09/28 at 08:52:37, dcheng wrote: > Drive-by, but please make sure the CL description ...
4 years, 2 months ago (2016-09-28 11:24:03 UTC) #6
Mike West
This is looking good, Malika! I've left a few comments. And let's loop in alexmos@, ...
4 years, 2 months ago (2016-09-29 08:58:53 UTC) #10
amalika
Separating CSP test, adding EmbedderCSPEnforcement command line switch for the test, addressing comments
4 years, 2 months ago (2016-09-29 09:56:35 UTC) #11
Mike West
Thanks for taking another pass! If alexmos@, et al. are happy with the structure, I ...
4 years, 2 months ago (2016-09-29 11:50:14 UTC) #12
amalika
https://codereview.chromium.org/2378643002/diff/80001/content/common/frame_owner_properties.cc File content/common/frame_owner_properties.cc (right): https://codereview.chromium.org/2378643002/diff/80001/content/common/frame_owner_properties.cc#newcode51 content/common/frame_owner_properties.cc:51: std::equal(delegated_permissions.begin(), delegated_permissions.end(), On 2016/09/29 at 11:50:14, Mike West wrote: ...
4 years, 2 months ago (2016-09-29 12:56:46 UTC) #13
alexmos
A few comments and nits, but overall I think this makes sense, given that we're ...
4 years, 2 months ago (2016-09-30 06:20:42 UTC) #14
amalika
Thank you for the suggestions! Updated adding comments, string16->string, separating the test https://codereview.chromium.org/2378643002/diff/100001/content/browser/site_per_process_browsertest.cc File content/browser/site_per_process_browsertest.cc ...
4 years, 2 months ago (2016-09-30 07:48:51 UTC) #16
amalika
Update after addressing comments
4 years, 2 months ago (2016-10-04 13:27:02 UTC) #17
Mike West
Thanks for taking another pass at this: //third_party/WebKit LGTM, as does the addition of the ...
4 years, 2 months ago (2016-10-04 14:55:55 UTC) #19
alexmos
Thanks! LGTM once Mike's nit to rename 'csp' to 'required_csp' is addressed, plus two other ...
4 years, 2 months ago (2016-10-04 23:50:21 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/2378643002/200001
4 years, 2 months ago (2016-10-05 08:26:36 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/274017)
4 years, 2 months ago (2016-10-05 08:35:50 UTC) #26
amalika
Missing owners for content/browser and content/common Adding Jochen!
4 years, 2 months ago (2016-10-05 12:24:11 UTC) #28
jochen (gone - plz use gerrit)
lgtm
4 years, 2 months ago (2016-10-05 12:26:04 UTC) #31
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/2378643002/220001
4 years, 2 months ago (2016-10-06 07:22:04 UTC) #36
commit-bot: I haz the power
Committed patchset #10 (id:220001)
4 years, 2 months ago (2016-10-06 07:28:20 UTC) #37
commit-bot: I haz the power
4 years, 2 months ago (2016-10-06 07:29:39 UTC) #39
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/e4100ce09bf324e0fb2612ae83c7892f0870c3fe
Cr-Commit-Position: refs/heads/master@{#423468}

Powered by Google App Engine
This is Rietveld 408576698