patcg-individual-drafts / topics

The Topics API
https://patcg-individual-drafts.github.io/topics/
Other
605 stars 199 forks source link

Dumb question... where in the spec does it restrict topic input data collection or topic calculation to pages that have called the API? #197

Closed chrisvls closed 1 year ago

chrisvls commented 1 year ago

@jkarlin explains here that

When calculating the next set of Topics for the user, the API only considers hostnames from those pages in which the API is called and the permission policy grants the call and the IP address is not reserved and the user is not in incognito mode and the user hasn't disabled permission etc.

I can see where the caller has to have observed the topic to receive the topic. But I don't see where in the spec it would exclude a Document from a user's topics history storage.

chrisvls commented 1 year ago

Ah, I see... entries only get added to the topics history storage when the page or header calls for the topic with observable set to true or skip observation set to false.