diff --git a/spec.bs b/spec.bs index 53620f3..2b9279a 100644 --- a/spec.bs +++ b/spec.bs @@ -562,16 +562,17 @@ spec: html; urlPrefix: https://www.rfc-editor.org/rfc/
The topics a request is allowed to see can change within its redirect chain. For example, different caller domains may receive different topics, as the callers can only get the topics about the sites they were on. The timestamp can also affect the candidate epochs where the topics are derived from, thus resulting in different topics across redirects.
- 1. Let |initiatorWindow| be |request|'s [=request/window=]. 1. Let |requestOrigin| be |request|'s [=request/URL=]'s [=url/origin=]. 1. If |requestOrigin| is not a [=potentially trustworthy origin=], then return. - 1. If |initiatorWindow| is not an [=environment settings object=], then return. - 1. If |initiatorWindow| is not a [=secure context=], then return. + 1. Let |client| be |request|'s [=request/client=]. + 1. If |client| is not an [=environment settings object=], then return. + 1. If |client|'s [=environment settings object/global object=] is not a {{Window}} object, then return. + 1. If |client| is not a [=secure context=], then return. 1. For each feature |f| in « "browsing-topic", "interest-cohort" »:
1. Run the Should request be allowed to use feature? algorithm with feature set to |f| and request set to |request|. If the algorithm returns false, then return.
Note: the above algorithm should include the pending update, i.e. the |request| should be considered to contain the equivalent opt-in flags for both "browsing-topic" and the "interest-cohort" feature.
- 1. Let |topLevelDocument| be |initiatorWindow|'s [=environment settings object/global object=]'s [=Window/navigable=]'s [=navigable/top-level traversable=]'s [=navigable/active document=].
+ 1. Let |topLevelDocument| be |client|'s [=environment settings object/global object=]'s [=Window/navigable=]'s [=navigable/top-level traversable=]'s [=navigable/active document=].
1. Let |topicsCallerContext| be a [=topics caller context=] with default initial field values.
1. Set |topicsCallerContext|'s [=topics caller context/caller domain=] to |requestOrigin|'s [=origin/host=]'s [=host/registrable domain=].
1. Set |topicsCallerContext|'s [=topics caller context/top level context domain=] to |topLevelDocument|'s [=Document/origin=]'s [=origin/host=]'s [=host/registrable domain=].
@@ -664,7 +665,7 @@ spec: html; urlPrefix: https://www.rfc-editor.org/rfc/