diff --git a/index.bs b/index.bs
index a322dbda..09f14f81 100644
--- a/index.bs
+++ b/index.bs
@@ -137,9 +137,6 @@ spec:fetch; type:dfn; text:value
indicated, the term "feature" refers to policy-controlled features.
Other specifications, defining such features, should use the longer term to
avoid any ambiguity.
-
This spec currently only deals with features defined in
- Documents. We should figure out how to word this to include the possibility
- of features and feature policies in Workers and Worklets as well.
Each document in a frame tree inherits a set of policies from its parent
frame, or in the case of the top-level document, from the defined defaults
- for each policy-controlled feature. This inherited policy determines
- the initial state ('Enabled' or 'Disabled') of each feature, and whether it
- can be controlled by a declared policy in the document.
+ for each policy-controlled feature. For workers, the policies are
+ inherited from the context that created the worker. This inherited policy
+ determines the initial state ('Enabled' or 'Disabled') of each feature, and
+ whether it can be controlled by a declared policy in the document.
In a {{Document}} in a [=top-level browsing context=], the inherited
policy is based on defined defaults for each feature.
In a {{Document}} in a [=nested browsing context=], the inherited policy
is based on the parent document's feature policy, as well as the [=nested
browsing context=]'s container policy.
+
In a {{Worker}} created by a {{Document}}, the inherited policy is based
+ on the document's feature policy.
@@ -530,6 +530,37 @@ partial interface HTMLIFrameElement {
Monkey-patching! As soon as we know that this is the direction we wish to
pursue, upstream all of this.
+
Using the responsible browsing context parent context from
+ the worker's [[script settings]], retrieve the
+ parent context's Feature Policyfeature
+ policy.
+ The integration with Workers only specifies inherited policies for now.
+ Eventually we would want to allow worker scripts to be delivered with a
+ Feature-Policy header and for the owner of the worker to set the container
+ policy for the worker.
+
Given a feature (feature), a Document object
- (document), and an [=origin=] (origin), this algorithm
+ document or worker for origin?
+
Given a feature (feature), a Document or Worker object
+ (context), and an [=origin=] (origin), this algorithm
returns "Disabled" if feature should be considered
disabled, and "Enabled" otherwise.
If feature's default allowlist is
'self', and origin is [=same origin-domain=]
- with document's origin, return "Enabled".
+ with context's origin, return "Enabled".