From 7e6497ade1f9c0034a55ff47a6e6e9a197cf2dac Mon Sep 17 00:00:00 2001 From: Garrett Tanzer Date: Wed, 23 Aug 2023 09:48:33 -0400 Subject: [PATCH 1/4] Topics enrollment check --- spec.bs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec.bs b/spec.bs index c6c43f6..7eb04f5 100644 --- a/spec.bs +++ b/spec.bs @@ -456,6 +456,8 @@ spec: html; urlPrefix: https://www.rfc-editor.org/rfc/ - |document| is not [=allowed to use=] the browsing-topics feature. - |document| is not [=allowed to use=] the interest-cohort feature. - The user preference setting disallows the access to topics from |topLevelDocument| given |document|'s [=Document/origin=]. + - Access to topics from |topLevelDocument| given |document|'s [=Document/origin=] is disabled due to some other user agent-defined mechanism, + like lack of enrollment. Note: In Chrome's experimentation phase, it will additionally require a valid Origin Trial token to exist in |document|. From 34eb4bd5a9b7dec6c3dc359084839492a9b25c2d Mon Sep 17 00:00:00 2001 From: Garrett Tanzer Date: Wed, 23 Aug 2023 10:32:56 -0400 Subject: [PATCH 2/4] Fix indentation From d8c516976a3c582591ed37c078621a8da9e2b4d8 Mon Sep 17 00:00:00 2001 From: Garrett Tanzer Date: Wed, 23 Aug 2023 10:34:56 -0400 Subject: [PATCH 3/4] Match line breaks in rest of file --- spec.bs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spec.bs b/spec.bs index 7eb04f5..915d277 100644 --- a/spec.bs +++ b/spec.bs @@ -456,8 +456,7 @@ spec: html; urlPrefix: https://www.rfc-editor.org/rfc/ - |document| is not [=allowed to use=] the browsing-topics feature. - |document| is not [=allowed to use=] the interest-cohort feature. - The user preference setting disallows the access to topics from |topLevelDocument| given |document|'s [=Document/origin=]. - - Access to topics from |topLevelDocument| given |document|'s [=Document/origin=] is disabled due to some other user agent-defined mechanism, - like lack of enrollment. + - Access to topics from |topLevelDocument| given |document|'s [=Document/origin=] is disabled due to some other user agent-defined mechanism, like lack of enrollment. Note: In Chrome's experimentation phase, it will additionally require a valid Origin Trial token to exist in |document|. From ef4d81556c0d659ffe17c1686c3d7aac468259b9 Mon Sep 17 00:00:00 2001 From: Garrett Tanzer Date: Fri, 8 Sep 2023 11:17:01 -0400 Subject: [PATCH 4/4] Add enrollment check for headers --- spec.bs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec.bs b/spec.bs index 915d277..7fb9e4a 100644 --- a/spec.bs +++ b/spec.bs @@ -557,7 +557,7 @@ spec: html; urlPrefix: https://www.rfc-editor.org/rfc/ 1. Let |moment| be the result of running [=coarsen time=] algorithm given |unsafeMoment| and [=wall clock=] as input. 1. Let |fromUnixEpochTime| be the [=duration from=] the [=Unix epoch=] to |moment|. 1. Set |topicsCallerContext|'s [=topics caller context/timestamp=] to |fromUnixEpochTime|. - 1. If the user preference setting disallows the access to topics from |topLevelDocument| given |requestOrigin|, then return. + 1. If the user preference setting disallows the access to topics from |topLevelDocument| given |requestOrigin|, or access to topics from |topLevelDocument| given |requestOrigin| is disabled due to some other user agent-defined mechanism, like lack of enrollment, then return. 1. Let |topics| be the result of running the [=calculate the topics for caller=] algorithm, with |topicsCallerContext| as input. 1. Let |numVersionsInEpochs| be the result of running the [=get the number of distinct versions in epochs=] algorithm, with |topicsCallerContext| as input. 1. Let |versionsToTopics| be an [=ordered map=].