From 153e432344527f089e3fd85c477fcb3906f86026 Mon Sep 17 00:00:00 2001
From: Josh Karlin Copyright © 2023 the Contributors to “Topics API”.
+ Copyright © 2024 the Contributors to “Topics API”.
This document is licensed under the W3C Software License.
@@ -1311,7 +1356,7 @@ document is not allowed to use the The user preference setting disallows access to topics from topLevelDocument given document’s origin. Access to topics from topLevelDocument given document’s 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. then: Let topics be the result of running the calculate the topics for caller algorithm, with topicsCallerContext as input. Let topics be an empty list. If options[" If the user preference setting and other user agent-defined mechanisms like enrollment allow access to topics from topLevelDocument given document’s origin: Run the collect page topics calculation input data algorithm with topLevelDocument as input. Set topics to the result of running the calculate the topics for caller algorithm, with topicsCallerContext as input. Run the collect topics caller domain algorithm with topLevelDocument and topicsCallerContext’s caller domain as input. If options[" Run the collect page topics calculation input data algorithm with topLevelDocument as input. Run the collect topics caller domain algorithm with topLevelDocument and topicsCallerContext’s caller domain as input. Queue a global task on the browsing topics task source given document’s relevant global object to perform the following steps: Set topicsCallerContext’s top level context domain to topLevelDocument’s origin's host's registrable domain. Set topicsCallerContext’s top level context domain to topLevelDocument’s origin's host's registrable domain. Let unsafeMoment be the wall clock's unsafe current time. If the user preference setting disallows 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. Let topics be an empty list. Let topics be the result of running the calculate the topics for caller algorithm, with topicsCallerContext as input. Let numVersionsInEpochs be 0. Let numVersionsInEpochs be the result of running the get the number of distinct versions in epochs algorithm, with topicsCallerContext as input. If the user preference setting and other user agent-defined mechanisms like enrollment allow access to topics from topLevelDocument given requestOrigin: Set topics to the result of running the calculate the topics for caller algorithm, with topicsCallerContext as input. Set numVersionsInEpochs to the result of running the get the number of distinct versions in epochs algorithm, with topicsCallerContext as input. Let versionsToTopics be an ordered map. The various lengths being returned (that depends on the number of distinct versions) could leak which epochs the user had disabled topics or didn’t use the browser, if it coincided with the version change. But this leak is minor. The most common cases (i.e. returning same version topics, or no topics) will have the same length. The `Topics API
-
+
More details about this document
Topics API
partial
= {});
+ [
= {});
};
document is not allowed to use the
browsing-topics
feature.
interest-cohort
feature.
Run the following steps in parallel:
skipObservation
"] is false:
skipObservation
"] is false:
+
caller domain to requestOrigin’s host's registrable domain.
timestamp to fromUnixEpochTime.
+
topic ids are < 10, < 100, etc.)
15.9. The `
Observe-Browsing-Topics
` HTTP response headerObserve-Browsing-Topics
` HTTP response header can be used to record a caller’s topics observation.window's global object's navigable's top-level traversable's active document.
Let callerDomain be request’s current URL's origin's host's registrable domain.
+Let callerOrigin be request’s current URL's origin.
+If the user preference setting or other user agent-defined mechanisms like enrollment disallows access to topics from topLevelDocument given callerOrigin, then return.
+Let callerDomain be callerOrigin’s host's registrable domain.
Let list be response’s header list.