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

Issue 2697713003: Initial Implementation of Iframe Attribute for Feature Policy (Part 2) (Closed)

Created:
3 years, 10 months ago by lunalu1
Modified:
3 years, 10 months ago
Reviewers:
kenrb, iclelland, pfeldman, nasko
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, blink-reviews-html_chromium.org, creis+watch_chromium.org, mlamouri+watch-blink_chromium.org, nasko+codewatch_chromium.org, jam, dcheng, dglazkov+blink, darin-cc_chromium.org, blink-reviews, kinuko+watch, blink-reviews-api_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Initial Implementation of Iframe Attribute for Feature Policy (Part 2) Enable iframe feature policy by attributes: allow="feature1 feature2", allowfullscreen, and allowpaymentrequest. See design doc: https://docs.google.com/a/chromium.org/document/d/1sskoBi7Ba7hLuuiJQ6VMQ1KYIGBP8Lr87hLbkF76c2I/edit?usp=sharing Part 1: Introduce iframe allowAttr in HTMLIFrameElement::parseAttribute and store featureNames in HTMLIFrameElement (CL: https://codereview.chromium.org/2680083002/) Part 2: Propagate featureNames from HTMLIFrameElement to frame owner and remote frame owner. Part 3: Set iframe feature policy in FrameLoader::didBeginDocument Part 4.a: Replace implementation of allowpaymentrequest by feature policy Part 4.b: Replace implementation of allowfullscreen by feature policy Part 5: WebVR BUG=682256 Review-Url: https://codereview.chromium.org/2697713003 Cr-Commit-Position: refs/heads/master@{#452087} Committed: https://chromium.googlesource.com/chromium/src/+/fec23406245485fa37f09c3611d014b22cdd234c

Patch Set 1 : Initial Impl #

Total comments: 12

Patch Set 2 : Codereview: renamed allowedFeatureNames to allowedFeatures + added more cases for propogating allow… #

Total comments: 2

Patch Set 3 : Codereview: nit #

Patch Set 4 : Update rebase #

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

Messages

Total messages: 60 (40 generated)
lunalu1
Hi Ian, could you please take a look at this. Thanks
3 years, 10 months ago (2017-02-14 22:37:01 UTC) #7
iclelland
This is looking really good, thanks! A couple of questions below. https://codereview.chromium.org/2697713003/diff/40001/content/common/frame_messages.h File content/common/frame_messages.h (right): ...
3 years, 10 months ago (2017-02-16 15:26:34 UTC) #18
lunalu1
Hi Ian, Thanks for reviewing my CL. I made some changes based on your comments. ...
3 years, 10 months ago (2017-02-16 20:16:16 UTC) #23
iclelland
https://codereview.chromium.org/2697713003/diff/40001/third_party/WebKit/Source/core/frame/FrameOwner.h File third_party/WebKit/Source/core/frame/FrameOwner.h (right): https://codereview.chromium.org/2697713003/diff/40001/third_party/WebKit/Source/core/frame/FrameOwner.h#newcode56 third_party/WebKit/Source/core/frame/FrameOwner.h:56: const = 0; On 2017/02/16 20:16:15, loonybear wrote: > ...
3 years, 10 months ago (2017-02-16 20:33:40 UTC) #24
iclelland
This LGTM, thanks! https://codereview.chromium.org/2697713003/diff/40001/third_party/WebKit/Source/core/frame/FrameOwner.h File third_party/WebKit/Source/core/frame/FrameOwner.h (right): https://codereview.chromium.org/2697713003/diff/40001/third_party/WebKit/Source/core/frame/FrameOwner.h#newcode56 third_party/WebKit/Source/core/frame/FrameOwner.h:56: const = 0; On 2017/02/16 20:33:40, ...
3 years, 10 months ago (2017-02-16 20:49:28 UTC) #25
lunalu1
Hi nasko@, could you please take look at the frame messages? Hi pfeldman@, could you ...
3 years, 10 months ago (2017-02-16 21:33:47 UTC) #27
lunalu1
Hi kenrb@, could you please take a look at the frame messages? Thanks
3 years, 10 months ago (2017-02-16 21:44:37 UTC) #29
nasko
content/ LGTM https://codereview.chromium.org/2697713003/diff/60001/content/common/frame_messages.h File content/common/frame_messages.h (right): https://codereview.chromium.org/2697713003/diff/60001/content/common/frame_messages.h#newcode115 content/common/frame_messages.h:115: blink::WebFeaturePolicyFeature::NotFound, Since the enum starts at 0, ...
3 years, 10 months ago (2017-02-16 21:50:18 UTC) #31
kenrb
ipc lgtm, % nits https://codereview.chromium.org/2697713003/diff/60001/content/browser/site_per_process_browsertest.cc File content/browser/site_per_process_browsertest.cc (right): https://codereview.chromium.org/2697713003/diff/60001/content/browser/site_per_process_browsertest.cc#newcode9195 content/browser/site_per_process_browsertest.cc:9195: // Test iframe "allow" attribute ...
3 years, 10 months ago (2017-02-17 17:41:15 UTC) #34
pfeldman
lgtm
3 years, 10 months ago (2017-02-21 18:27:16 UTC) #37
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/2697713003/80001
3 years, 10 months ago (2017-02-21 19:00:56 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
3 years, 10 months ago (2017-02-21 21:06:47 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/2697713003/80001
3 years, 10 months ago (2017-02-21 21:32:47 UTC) #44
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/369424)
3 years, 10 months ago (2017-02-21 22:07:29 UTC) #46
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/2697713003/100001
3 years, 10 months ago (2017-02-21 22:23:23 UTC) #49
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) chromium_presubmit on ...
3 years, 10 months ago (2017-02-22 00:27:51 UTC) #51
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/2697713003/100001
3 years, 10 months ago (2017-02-22 02:37:23 UTC) #53
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
3 years, 10 months ago (2017-02-22 04:40:50 UTC) #55
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/2697713003/100001
3 years, 10 months ago (2017-02-22 15:13:59 UTC) #57
commit-bot: I haz the power
3 years, 10 months ago (2017-02-22 16:50:22 UTC) #60
Message was sent while issue was closed.
Committed patchset #4 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/fec23406245485fa37f09c3611d0...

Powered by Google App Engine
This is Rietveld 408576698