Re: [whatwg/fullscreen] Refer to feature policy spec (#107)

foolip commented on this pull request.



> @@ -629,6 +629,23 @@ iframe:fullscreen {
 
 
 
+<h2 id=feature-policy-integration>Feature Policy Integration</h2>
+
+<p>The Fullscreen API is a policy-controlled feature, as defined by [[!FEATURE-POLICY]].
+
+<ul>
+  <li>The feature name for the Fullscreen API is "fullscreen".
+  <li>The <a>default allowlist</a> for the Fullscreen API is '<code>self</code>'.
+</ul>
+
+<p>A <a>document</a>'s <a>feature policy</a> determines whether any content in that document is allowed to
+go fullscreen. If disabled in any document, no content in the document will be <a>allowed to use</a>
+fullscreen. If enabled, content in the document will be <a>allowed to use</a> fullscreen.

I wonder about the layering here. I don't think it's quite true that "If enabled, content in the document will be allowed to use fullscreen", as there are other conditions in https://html.spec.whatwg.org/multipage/iframe-embed-object.html#allowed-to-use which can return false.

Should https://html.spec.whatwg.org/multipage/iframe-embed-object.html#allowed-to-use eventually be modified to directly incorporate feature policy?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fullscreen/pull/107#pullrequestreview-129761448

Received on Monday, 18 June 2018 22:26:47 UTC