Skip to content

Commit f7f7ecc

Browse files
Topics API feature (#2636)
* Topics API feature * Update features/topics.yml Co-authored-by: Daniel D. Beck <[email protected]> * re-gen dist --------- Co-authored-by: Daniel D. Beck <[email protected]>
1 parent 6efcabc commit f7f7ecc

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed

features/topics.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Topics
2+
description: The Topics API reports a user's likely subject-matter interests (as determined by the browser, known as topics) to iframes. This allows for interest-based advertising that does not rely on user's exact browsing history, third-party cookies, or fingerprinting.
3+
spec: https://patcg-individual-drafts.github.io/topics/
4+
compat_features:
5+
- api.Document.browsingTopics
6+
- html.elements.iframe.browsingtopics
7+
- html.elements.iframe.allow.browsing-topics
8+
- api.HTMLIFrameElement.browsingTopics
9+
- api.Request.Request.init_browsingTopics_parameter
10+
- api.fetch.init_browsingTopics_parameter
11+
- http.headers.Observe-Browsing-Topics
12+
- http.headers.Permissions-Policy.browsing-topics
13+
- http.headers.Sec-Browsing-Topics

features/topics.yml.dist

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Generated from: topics.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
status:
5+
baseline: false
6+
support:
7+
chrome: "126"
8+
chrome_android: "126"
9+
edge: "126"
10+
compat_features:
11+
# baseline: false
12+
# support:
13+
# chrome: "115"
14+
# chrome_android: "115"
15+
# edge: "115"
16+
- html.elements.iframe.allow.browsing-topics
17+
- http.headers.Observe-Browsing-Topics
18+
- http.headers.Permissions-Policy.browsing-topics
19+
- http.headers.Sec-Browsing-Topics
20+
21+
# ⬇️ Same status as overall feature ⬇️
22+
# baseline: false
23+
# support:
24+
# chrome: "126"
25+
# chrome_android: "126"
26+
# edge: "126"
27+
- api.Document.browsingTopics
28+
- api.HTMLIFrameElement.browsingTopics
29+
- api.Request.Request.init_browsingTopics_parameter
30+
- api.fetch.init_browsingTopics_parameter
31+
- html.elements.iframe.browsingtopics

scripts/specs.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,10 @@ const defaultAllowlist: allowlistItem[] = [
141141
[
142142
"https://www.w3.org/TR/2022/WD-selectors-4-20220507/#the-target-within-pseudo",
143143
"Allowed because this is where the feature last appeared in the spec before removal."
144+
],
145+
[
146+
"https://patcg-individual-drafts.github.io/topics/",
147+
"Allowed because the Topics API isn't on a standards track yet. Remove this exception when it is."
144148
]
145149
];
146150

0 commit comments

Comments
 (0)