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

Issue 2520223002: Replicate a parsed feature policy representation so it doesn't need to be parsed in the browser pro… (Closed)

Created:
4 years, 1 month ago by raymes
Modified:
4 years ago
CC:
blink-reviews, blink-reviews-api_chromium.org, blink-reviews-dom_chromium.org, chrome-apps-syd-reviews_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dcheng, dglazkov+blink, eae+blinkwatch, gavinp+loader_chromium.org, jam, Nate Chapin, kinuko+watch, loading-reviews_chromium.org, lunalu1, mlamouri+watch-blink_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, rwlbuis, sof, tyoshino+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replicate a parsed feature policy representation so it doesn't need to be parsed in the browser process Currently we just replicated the feature policy header as a raw string. However we need to reconstruct the header in the browser process and we can't do that from a string. So instead we propagate a parsed representation of it in the replication state. BUG=661273 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/d405a05b1f58f9cd844a21a8923f27eacfe2c131 Cr-Commit-Position: refs/heads/master@{#436454}

Patch Set 1 #

Patch Set 2 #

Total comments: 4

Patch Set 3 : Fp2 #

Patch Set 4 : Fp2 #

Patch Set 5 : Fp2 #

Patch Set 6 : Fp2 #

Patch Set 7 : Fp2 #

Total comments: 17

Patch Set 8 : Replicate a parsed feature policy representation so it doesn't need to be parsed in the browser pro… #

Patch Set 9 : Replicate a parsed feature policy representation so it doesn't need to be parsed in the browser pro… #

Patch Set 10 : Replicate a parsed feature policy representation so it doesn't need to be parsed in the browser pro… #

Patch Set 11 : Replicate a parsed feature policy representation so it doesn't need to be parsed in the browser pro… #

Total comments: 18

Patch Set 12 : Replicate a parsed feature policy representation so it doesn't need to be parsed in the browser pro… #

Patch Set 13 : Replicate a parsed feature policy representation so it doesn't need to be parsed in the browser pro… #

Unified diffs Side-by-side diffs Delta from patch set Stats (+395 lines, -167 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 +1 line, -1 line 0 comments Download
M content/browser/frame_host/frame_tree_node.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -2 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, -1 line 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 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/site_per_process_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +41 lines, -12 lines 0 comments Download
M content/common/frame_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +10 lines, -2 lines 0 comments Download
M content/common/frame_replication_state.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +17 lines, -2 lines 0 comments Download
M content/common/frame_replication_state.cc View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -1 line 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +18 lines, -3 lines 0 comments Download
M content/renderer/render_frame_proxy.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +18 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/SecurityContext.h View 1 2 3 4 5 6 7 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/dom/SecurityContext.cpp View 1 2 3 4 5 6 7 1 chunk +3 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FeaturePolicyInFrameTest.cpp View 1 2 3 2 chunks +5 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +8 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoaderClient.h View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.h View 1 2 3 4 5 6 7 8 3 chunks +16 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp View 1 2 3 4 5 6 7 8 9 10 3 chunks +80 lines, -71 lines 0 comments Download
M third_party/WebKit/Source/platform/feature_policy/FeaturePolicyFuzzer.cpp View 1 2 3 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/feature_policy/FeaturePolicyTest.cpp View 1 2 3 4 5 6 7 8 22 chunks +112 lines, -40 lines 0 comments Download
M third_party/WebKit/Source/web/FrameLoaderClientImpl.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebRemoteFrameImpl.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
A third_party/WebKit/public/platform/WebFeaturePolicy.h View 1 2 3 4 5 6 7 1 chunk +27 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebFrameClient.h View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/public/web/WebRemoteFrame.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 50 (28 generated)
raymes
Hey Ian, There's a bunch of rough edges which I will clean up, but can ...
4 years, 1 month ago (2016-11-22 05:16:33 UTC) #2
raymes
Hey Ian, There's a bunch of rough edges which I will clean up, but can ...
4 years, 1 month ago (2016-11-22 05:17:13 UTC) #4
iclelland
On 2016/11/22 05:17:13, raymes wrote: > Hey Ian, > > There's a bunch of rough ...
4 years, 1 month ago (2016-11-22 21:01:51 UTC) #5
iclelland
https://codereview.chromium.org/2520223002/diff/20001/third_party/WebKit/public/platform/WebFeaturePolicy.h File third_party/WebKit/public/platform/WebFeaturePolicy.h (right): https://codereview.chromium.org/2520223002/diff/20001/third_party/WebKit/public/platform/WebFeaturePolicy.h#newcode13 third_party/WebKit/public/platform/WebFeaturePolicy.h:13: struct WebFeaturePolicy { On 2016/11/22 05:17:12, raymes wrote: > ...
4 years, 1 month ago (2016-11-22 21:02:05 UTC) #6
raymes
iclelland - could you PTAL? +alexmos too
4 years, 1 month ago (2016-11-23 04:55:06 UTC) #9
iclelland
https://codereview.chromium.org/2520223002/diff/20001/third_party/WebKit/public/platform/WebFeaturePolicy.h File third_party/WebKit/public/platform/WebFeaturePolicy.h (right): https://codereview.chromium.org/2520223002/diff/20001/third_party/WebKit/public/platform/WebFeaturePolicy.h#newcode13 third_party/WebKit/public/platform/WebFeaturePolicy.h:13: struct WebFeaturePolicy { On 2016/11/22 21:02:05, iclelland wrote: > ...
4 years ago (2016-11-23 20:20:28 UTC) #18
alexmos
The replication bits look good. I was waiting for Ian to be happy with the ...
4 years ago (2016-11-29 01:44:47 UTC) #19
raymes
Thanks Ian and Alex. Alex, feel free to wait for Ian. Cheers! https://codereview.chromium.org/2520223002/diff/120001/content/browser/site_per_process_browsertest.cc File content/browser/site_per_process_browsertest.cc ...
4 years ago (2016-11-29 08:20:34 UTC) #20
raymes
https://codereview.chromium.org/2520223002/diff/120001/third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp File third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp (right): https://codereview.chromium.org/2520223002/diff/120001/third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp#newcode136 third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp:136: WebVector<WebFeaturePolicy::ParsedWhitelist> FeaturePolicy::parseFeaturePolicy( On 2016/11/23 20:20:28, iclelland wrote: > As ...
4 years ago (2016-11-30 06:25:17 UTC) #24
iclelland
This lgtm, thanks! https://codereview.chromium.org/2520223002/diff/200001/third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp File third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp (right): https://codereview.chromium.org/2520223002/diff/200001/third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp#newcode190 third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp:190: if (!origin->isUnique()) This isn't strictly necessary ...
4 years ago (2016-11-30 22:13:10 UTC) #28
Marijn Kruisselbrink
https://codereview.chromium.org/2520223002/diff/200001/third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp File third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp (right): https://codereview.chromium.org/2520223002/diff/200001/third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp#newcode190 third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp:190: if (!origin->isUnique()) On 2016/11/30 at 22:13:10, iclelland wrote: > ...
4 years ago (2016-11-30 22:21:00 UTC) #29
raymes
alexmos: could you ptal? Thanks! Also +pfeldman for content/ and WebKit/ +meacer for frame_messages.h https://codereview.chromium.org/2520223002/diff/200001/third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp ...
4 years ago (2016-11-30 23:18:23 UTC) #31
alexmos
Looks good, just a few minor things below. https://codereview.chromium.org/2520223002/diff/200001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/2520223002/diff/200001/content/browser/frame_host/render_frame_host_impl.cc#newcode1772 content/browser/frame_host/render_frame_host_impl.cc:1772: const ...
4 years ago (2016-12-01 02:04:19 UTC) #32
raymes
Thanks Alex! https://codereview.chromium.org/2520223002/diff/200001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/2520223002/diff/200001/content/browser/frame_host/render_frame_host_impl.cc#newcode1772 content/browser/frame_host/render_frame_host_impl.cc:1772: const std::vector<FeaturePolicyParsedWhitelist>& parsed_header) { In blink I ...
4 years ago (2016-12-01 03:03:09 UTC) #33
iclelland
https://codereview.chromium.org/2520223002/diff/200001/third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp File third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp (right): https://codereview.chromium.org/2520223002/diff/200001/third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp#newcode190 third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp:190: if (!origin->isUnique()) On 2016/11/30 22:21:00, Marijn Kruisselbrink wrote: > ...
4 years ago (2016-12-01 03:31:25 UTC) #34
alexmos
Thanks! LGTM https://codereview.chromium.org/2520223002/diff/200001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/2520223002/diff/200001/content/browser/frame_host/render_frame_host_impl.cc#newcode1772 content/browser/frame_host/render_frame_host_impl.cc:1772: const std::vector<FeaturePolicyParsedWhitelist>& parsed_header) { On 2016/12/01 03:03:09, ...
4 years ago (2016-12-01 22:27:54 UTC) #35
raymes
ping pfeldman, meacer, PTAL :)
4 years ago (2016-12-05 02:09:16 UTC) #36
pfeldman
lgtm
4 years ago (2016-12-05 18:53:50 UTC) #41
meacer
lgtm
4 years ago (2016-12-05 19:30:49 UTC) #42
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/2520223002/240001
4 years ago (2016-12-05 23:35:47 UTC) #45
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years ago (2016-12-05 23:42:04 UTC) #48
commit-bot: I haz the power
4 years ago (2016-12-05 23:44:22 UTC) #50
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/d405a05b1f58f9cd844a21a8923f27eacfe2c131
Cr-Commit-Position: refs/heads/master@{#436454}

Powered by Google App Engine
This is Rietveld 408576698