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

Issue 2331223002: Added allowvr attribute to iframes and vrEnabled to Document (Closed)

Created:
4 years, 3 months ago by bajones
Modified:
3 years, 10 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, blink-reviews-html_chromium.org, chromium-reviews, darin-cc_chromium.org, dcheng, dglazkov+blink, haraken, jam, kinuko+watch, mlamouri+watch-blink_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added allowvr attribute to iframes Given that the API is capable of taking over the screen on mobile, similar to fullscreen, it's prudent to ensure that iframes aren't given access to the feature unless explicitly granted permission by the embedding page. Spec: https://w3c.github.io/webvr/#allowvr-attribute BUG=389343

Patch Set 1 #

Patch Set 2 : Added navigator.vrEnabled #

Patch Set 3 : Rebase and moved vrEnabled from navigator to document #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+200 lines, -20 lines) Patch
M content/browser/site_per_process_browsertest.cc View 1 2 2 chunks +108 lines, -0 lines 0 comments Download
M content/common/frame_owner_properties.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/common/frame_owner_properties.cc View 4 chunks +5 lines, -1 line 0 comments Download
A + content/test/data/page_with_allowvr_frame.html View 1 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/core_idl_files.gni View 1 2 2 chunks +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/FrameOwner.h View 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLAttributeNames.in View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLIFrameElement.h View 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp View 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLIFrameElement.idl View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/modules_idl_files.gni View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A + third_party/WebKit/Source/modules/vr/DocumentVR.h View 1 2 1 chunk +7 lines, -9 lines 0 comments Download
A + third_party/WebKit/Source/modules/vr/DocumentVR.cpp View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
A third_party/WebKit/Source/modules/vr/DocumentVR.idl View 1 2 1 chunk +10 lines, -0 lines 1 comment Download
M third_party/WebKit/Source/modules/vr/NavigatorVR.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/NavigatorVR.cpp View 1 2 3 chunks +33 lines, -0 lines 1 comment Download
M third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/RemoteFrameOwner.h View 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/RemoteFrameOwner.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebFrame.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/public/web/WebFrameOwnerProperties.h View 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 12 (4 generated)
bajones
I need some feedback on the high-level design of this, not sure who the right ...
4 years, 3 months ago (2016-09-15 18:48:16 UTC) #3
dcheng
Have you seen the CLs around iframe permission delegation? https://codereview.chromium.org/2011763006/ That seems like something that'd ...
4 years, 3 months ago (2016-09-15 18:59:38 UTC) #5
bajones
On 2016/09/15 18:59:38, dcheng wrote: > Have you seen the CLs around iframe permission delegation? ...
4 years, 3 months ago (2016-09-15 19:05:06 UTC) #6
Mike West
Yeah, talk to ojan@ / raymes@ / igrigorik@ about this in the context of feature ...
4 years, 3 months ago (2016-09-16 05:07:17 UTC) #7
raymes
Sorry for the long delay. The high level approach looks good to me (follows the ...
4 years, 3 months ago (2016-09-22 06:04:41 UTC) #9
alexmos
The allowvr plumbing and replication bits look good. It's mirroring how allowfullscreen works almost exactly. ...
4 years, 3 months ago (2016-09-23 00:53:31 UTC) #10
bajones
Thanks for everyone's feedback so far! At this point I've proposed using permission delegation to ...
4 years, 3 months ago (2016-09-23 17:33:19 UTC) #11
raymes
4 years, 2 months ago (2016-09-26 00:04:34 UTC) #12
On 2016/09/23 17:33:19, bajones wrote:
> Thanks for everyone's feedback so far! At this point I've proposed using
> permission delegation to the other implementing browser (Firefox, Microsoft)
but
> they've expressed some concerns over the spec. They intend to get back to me
> after consulting with the appropriate people within their orgs, and I'll relay
> their thoughts when I hear back from them.

A few notes which hopefully answer some questions:
-The current feature policy spec is very out of date. We have an explainer doc
that is more up to date:
https://docs.google.com/document/d/1k0Ua-ZWlM_PsFCFdLMa8kaVTo32PeNZ4G7FFHqpFx...
-We'd love to discuss this more with other browser vendors. Please keep
igrigorik@, ojan@ and myself in the loop.
-On the implementation side, the permission delegation work I've done will have
to change as Feature Policy has evolved. I'm looking at diving into that more
soon. But if we do end up adding a separate allowvr attribute I think it may be
better to follow the fullscreen approach for now.

Powered by Google App Engine
This is Rietveld 408576698