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

Issue 2923563003: Move container policy logic to frame owner classes. (Closed)

Created:
3 years, 6 months ago by iclelland
Modified:
3 years, 6 months ago
Reviewers:
raymes, foolip
CC:
chromium-reviews, lunalu1, blink-reviews-html_chromium.org, dglazkov+blink, iclelland, blink-reviews, kinuko+watch
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Move container policy logic to frame owner classes. This specifically allows <frame> tags to have an exemption from supporting the Fullscreen API, even in same-origin contexts, and even when the declared policy would otherwise enable Fullscreen. BUG=729658 Review-Url: https://codereview.chromium.org/2923563003 Cr-Commit-Position: refs/heads/master@{#479165} Committed: https://chromium.googlesource.com/chromium/src/+/53ecf9341f32b7f3746e6f721da9d4dc6839fb98

Patch Set 1 #

Patch Set 2 : Add Frame element unit test #

Total comments: 7

Patch Set 3 : Refactor: Move container policy logic to the elements that should define it #

Total comments: 4

Patch Set 4 : Removing dead code; adding comment to pluginelement #

Patch Set 5 : Remove FS API from <object> and <embed> #

Total comments: 4

Patch Set 6 : Addressing nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+264 lines, -137 lines) Patch
M third_party/WebKit/Source/core/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLFrameElement.h View 1 2 chunks +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/HTMLFrameElement.cpp View 1 2 3 4 5 1 chunk +15 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLFrameElementBase.h View 1 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/Source/core/html/HTMLFrameElementTest.cpp View 1 1 chunk +37 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.h View 1 2 1 chunk +7 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.cpp View 1 2 2 chunks +2 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLIFrameElement.h View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp View 1 2 3 4 5 1 chunk +53 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLIFrameElementTest.cpp View 1 1 chunk +121 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLPlugInElement.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp View 1 2 3 4 1 chunk +16 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.h View 1 2 3 1 chunk +0 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp View 1 2 3 2 chunks +0 lines, -44 lines 0 comments Download
M third_party/WebKit/Source/platform/feature_policy/FeaturePolicyTest.cpp View 1 chunk +0 lines, -76 lines 0 comments Download

Messages

Total messages: 33 (24 generated)
iclelland
+r raymes, could you take a look?
3 years, 6 months ago (2017-06-07 17:21:47 UTC) #10
raymes
Thanks Ian. Just to clarify: does the allow= attribute work for frame tags? https://codereview.chromium.org/2923563003/diff/20001/third_party/WebKit/Source/core/html/HTMLFrameElementTest.cpp File ...
3 years, 6 months ago (2017-06-07 23:54:38 UTC) #11
iclelland
https://codereview.chromium.org/2923563003/diff/20001/third_party/WebKit/Source/core/html/HTMLFrameElementTest.cpp File third_party/WebKit/Source/core/html/HTMLFrameElementTest.cpp (right): https://codereview.chromium.org/2923563003/diff/20001/third_party/WebKit/Source/core/html/HTMLFrameElementTest.cpp#newcode25 third_party/WebKit/Source/core/html/HTMLFrameElementTest.cpp:25: frame_element->setAttribute(HTMLNames::srcAttr, "http://example.net/"); On 2017/06/07 23:54:37, raymes wrote: > Just ...
3 years, 6 months ago (2017-06-12 17:32:17 UTC) #14
raymes
lgtm with 3 nits :) https://codereview.chromium.org/2923563003/diff/20001/third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.cpp File third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.cpp (right): https://codereview.chromium.org/2923563003/diff/20001/third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.cpp#newcode211 third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.cpp:211: container_policy_ = GetContainerPolicyFromAllowedFeatures( On ...
3 years, 6 months ago (2017-06-12 22:54:27 UTC) #17
iclelland
+r foolip -- can you PTAL? https://codereview.chromium.org/2923563003/diff/40001/third_party/WebKit/Source/core/html/HTMLFrameElement.cpp File third_party/WebKit/Source/core/html/HTMLFrameElement.cpp (right): https://codereview.chromium.org/2923563003/diff/40001/third_party/WebKit/Source/core/html/HTMLFrameElement.cpp#newcode81 third_party/WebKit/Source/core/html/HTMLFrameElement.cpp:81: // Frame elements ...
3 years, 6 months ago (2017-06-13 14:38:34 UTC) #23
foolip
lgtm % nit. It'd be great to also have web-platform-tests for this, checking that document.fullscreenEnabled ...
3 years, 6 months ago (2017-06-13 14:59:30 UTC) #24
iclelland
https://codereview.chromium.org/2923563003/diff/80001/third_party/WebKit/Source/core/html/HTMLFrameElementTest.cpp File third_party/WebKit/Source/core/html/HTMLFrameElementTest.cpp (right): https://codereview.chromium.org/2923563003/diff/80001/third_party/WebKit/Source/core/html/HTMLFrameElementTest.cpp#newcode32 third_party/WebKit/Source/core/html/HTMLFrameElementTest.cpp:32: EXPECT_EQ(WebFeaturePolicyFeature::kFullscreen, container_policy[0].feature); On 2017/06/13 14:59:30, foolip wrote: > In ...
3 years, 6 months ago (2017-06-13 18:36:47 UTC) #27
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/2923563003/100001
3 years, 6 months ago (2017-06-13 18:42:19 UTC) #30
commit-bot: I haz the power
3 years, 6 months ago (2017-06-13 21:45:17 UTC) #33
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/53ecf9341f32b7f3746e6f721da9...

Powered by Google App Engine
This is Rietveld 408576698