diff --git a/index.bs b/index.bs index 0da4172a..5e0700b8 100644 --- a/index.bs +++ b/index.bs @@ -159,6 +159,20 @@ spec:fetch; type:dfn; text:value
The feature policy for a {{Document}} or {{WorkerGlobalScope}} + determines whether a feature is allowed or disallowed in that + context.
+A feature which is disallowed should be disabled, or be made + unavailable for use in the Document or web worker. Each feature may have a + different mechanism for being disabled when disallowed, which should + be defined in that feature's specification.
+A feature is allowed if it is not disallowed.
+A feature may be allowed by default in a {{Document}} or + {{WorkerGlobalScope}}. If a feature is allowed by default, then it + is allowed if no other policy disallows it.
+A feature may be disallowed by default in a {{Document}} or + {{WorkerGlobalScope}}. If a feature is disallowed by default, then it + is disallowed unless explicitly allowed by policy.
*'self'To determine the effective feature policy for a given document, several + pieces of information are required:
+If the document is in a frame, then this is also required:
+Then, for each supported feature, we go through these steps:
+This document defines a set of algorithms which other specifications will diff --git a/index.html b/index.html index b8498fc5..131f7100 100644 --- a/index.html +++ b/index.html @@ -1423,7 +1423,7 @@
The feature policy for a Document or WorkerGlobalScope determines whether a feature is allowed or disallowed in that
+ context.
A feature which is disallowed should be disabled, or be made + unavailable for use in the Document or web worker. Each feature may have a + different mechanism for being disabled when disallowed, which should + be defined in that feature’s specification.
+A feature is allowed if it is not disallowed.
+A feature may be allowed by default in a Document or WorkerGlobalScope. If a feature is allowed by default, then it
+ is allowed if no other policy disallows it.
A feature may be disallowed by default in a Document or WorkerGlobalScope. If a feature is disallowed by default, then it
+ is disallowed unless explicitly allowed by policy.
A header policy is a list of policy directives delivered via an HTTP header with the document. This forms the document’s feature policy’s declared policy.
+A header policy is a list of policy directives delivered via an HTTP header with the document. This forms the document’s feature policy’s declared policy.
The container policy for a frame influences the inherited - policy of any document loaded into that frame. (See §8.8 Define an inherited policy for + policy of any document loaded into that frame. (See §9.8 Define an inherited policy for feature)
iframe "allowfullscreen",
@@ -1743,16 +1755,16 @@ *
- 'self'
- The Feature-Policy HTTP header - field can be used in the response (server to client) to communicate the feature policy that should be enforced by the client.
+ field can be used in the response (server to client) to communicate the feature policy that should be enforced by the client.The header’s value is the §5.1 ASCII serialization of one or more policy directives:.
FeaturePolicy = serialized-feature-policy *("," serialized-feature-policy)
When the user agent receives a Feature-Policy header field,
- it MUST process and enforce the serialized policy as described in §7.1 Integration with HTML.
allow attribute of the iframe elementTo determine the effective feature policy for a given document, several + pieces of information are required:
+If the document is in a frame, then this is also required:
+Then, for each supported feature, we go through these steps:
+This document defines a set of algorithms which other specifications will use in order to implement the restrictions which Feature Policy defines. The integrations are outlined here for clarity, but those external documents are the normative references which ought to be consulted for detailed information.
Document and WorkerGlobalScope objects have a Feature Policy, which is populated via the §8.7 Initialize global’s Feature
+ Document and WorkerGlobalScope objects have a Feature Policy, which is populated via the §9.7 Initialize global’s Feature
Policy from response algorithm that is called during the
"Initialising a new Document object" and "Run a Worker"
algorithms.
@@ -1865,16 +1903,16 @@ Document
- Document or WorkerGlobalScope by setting it as the Document or WorkerGlobalScope's Feature Policy.
+ Document or WorkerGlobalScope by setting it as the Document or WorkerGlobalScope's Feature Policy.
The "allowed to use" algorithm calls into §8.9 Is feature enabled in
+ The "allowed to use" algorithm calls into §9.9 Is feature enabled in
global for origin?, as follows:
-
@@ -1885,9 +1923,9 @@ Document’s feature policy enables the
+ Document’s feature policy enables the
feature indicated by allowattribute for the origin
of Document, then return true.
Given a response (response) and global object (global), this algorithm returns a declared feature policy.
Given a string (value) and an origin (origin) @@ -1918,16 +1956,16 @@
Given a JSON object (value) and an origin (origin) this algorithm will return a policy
@@ -1963,7 +2001,7 @@
Given a policy direcive (directive) and a declared policy (policy), this algorithm will modify policy to @@ -1977,7 +2015,7 @@
Given an element element, this algorithm returns a declared feature policy, which may be empty.
Given a list, this algorithm returns a list of feature name keywords, which may be empty.
Given a response (response) and a global object - (global), this algorithm populates global’s Feature Policy
+ (global), this algorithm populates global’s Feature PolicyGiven a string (feature) and a browsing context - (context), this algorithm returns the inherited policy for that feature.
+ (context), this algorithm returns the inherited policy for that feature.Given a string (feature) and a global object
(global), and an origin (origin), this algorithm
returns "Disabled" if feature should be considered
disabled, and "Enabled" otherwise.
Disabled".
+ Disabled".
The permanent message header field registry should be updated with the following registration [RFC3864]: