Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Topics API - feature overrides based on etld+1 ? #326

Closed
relevance-api-topics opened this issue Jul 25, 2024 · 1 comment
Closed

Topics API - feature overrides based on etld+1 ? #326

relevance-api-topics opened this issue Jul 25, 2024 · 1 comment

Comments

@relevance-api-topics
Copy link

Hi experts, we are having trouble to fetching topics for the below case:

  • observe topic via fetch call to server1.region.test.com, chrome://topics-internals/ has test.com recognized the observer.
  • however, when document.browsingTopics() on server1.region.test.com, nothing obtained.
  • only when adding server1.region.test.com to chrome://flags/#privacy-sandbox-enrollment-overrides, topic can be fetched.
  • Question: we already added test.com into chrome://flags/#privacy-sandbox-enrollment-overrides, isn't it be used for server1.region.test.com, server2.region.test.com... serverN.region.test.com, directly? Otherwise every server need to override for testing.

Is anything missed from our side, or this is an issue to update? Thanks!

@xyaoinum
Copy link
Collaborator

Both the observation and the enrollment rely on etld+1.

Adding test.com to chrome://flags/#privacy-sandbox-enrollment-overrides should be sufficient for your case. Also, calling fetch('https://server1.region.test.com', {browsingTopics: true}) should produce the same results as calling document.browsingTopics() within a frame on https://server1.region.test.com.

Are you seeing differences between these two methods, or are neither working as expected? It would be helpful if you could provide detailed reproduction steps. If possible, please consider filing a bug report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants