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 #2636

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions features/topics.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Topics
description: The `browsingtopics` attribute for `<iframe>` elements and the `browsingTopics` option for the `fetch()` method enable interest-based advertising based on topics collected by the browser as the user navigates, without exposing the user's exact browsing history. Also known as the Topics API.
spec: https://patcg-individual-drafts.github.io/topics/
compat_features:
- api.Document.browsingTopics
- html.elements.iframe.browsingtopics
- html.elements.iframe.allow.browsing-topics
- api.HTMLIFrameElement.browsingTopics
- api.Request.Request.init_browsingTopics_parameter
- api.fetch.init_browsingTopics_parameter
- http.headers.Observe-Browsing-Topics
- http.headers.Permissions-Policy.browsing-topics
- http.headers.Sec-Browsing-Topics
19 changes: 19 additions & 0 deletions features/topics.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Generated from: topics.yml
# Do not edit this file by hand. Edit the source file instead!

status:
baseline: false
support:
chrome: "115"
chrome_android: "115"
edge: "115"
compat_features:
- api.Document.browsingTopics
- api.HTMLIFrameElement.browsingTopics
- api.Request.Request.init_browsingTopics_parameter
- api.fetch.init_browsingTopics_parameter
- html.elements.iframe.allow.browsing-topics
- html.elements.iframe.browsingtopics
- http.headers.Observe-Browsing-Topics
- http.headers.Permissions-Policy.browsing-topics
- http.headers.Sec-Browsing-Topics
4 changes: 4 additions & 0 deletions scripts/specs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ const defaultAllowlist: allowlistItem[] = [
[
"https://www.w3.org/TR/DOM-Level-2-Style/",
"Allowed because the css-object-model-discouraged feature points to it."
],
[
"https://patcg-individual-drafts.github.io/topics/",
"Allowed because the Topics API isn't on a standards track yet. Remove this exception when it is."
]
];

Expand Down