From b3e9c04693136bf9c81ef1b5fe2b8de0d67e0401 Mon Sep 17 00:00:00 2001 From: Don Marti Date: Thu, 5 May 2022 16:41:09 -0700 Subject: [PATCH 1/2] Alert on attempt to use Topics API As multiple third-party scripts might be added to a site during development, it can be difficult to see when a script is attempting to use new browser features that might have privacy consequences. Consider adding a simple alert so that scripts can be checked and/or the site Permissions-Policy set before deploying to production. The "alert" is for development purposes, and could be replaced with an analytics event if a site wants to monitor attempted use of Topics API by third parties in production. Related: https://github.com/h5bp/html5-boilerplate/pull/2459 --- docs/html.md | 14 ++++++++++++++ src/index.html | 1 + 2 files changed, 15 insertions(+) diff --git a/docs/html.md b/docs/html.md index 80c05ea140..4a89bbdadc 100644 --- a/docs/html.md +++ b/docs/html.md @@ -39,6 +39,20 @@ potential [encoding-related security issue](https://code.google.com/archive/p/doctype-mirror/wikis/ArticleUtf7.wiki) in Internet Explorer. +### document.browsingTopics alert + +In some cases, a third-party script can collect browsing interest information about users +using new experimental functionality called Topics API. The first script in the page header +will alert you if a script is attempting to do this. The line can be removed if your site +is turning off Topics API with a Permissions-Policy, running without third-party scripts, +or if you are using Topics API. + +The line can be changed to send an analytics event to check if third-party scripts begin trying +to use Topics API in production. + +For more information, see [Google's Topics API: Rebranding FLoC Without Addressing Key +Privacy Issues](https://brave.com/web-standards-at-brave/7-googles-topics-api/) + ### Meta Description The `description` meta tag provides a short description of the page. In some diff --git a/src/index.html b/src/index.html index 7627235f33..0cb2f6ba20 100644 --- a/src/index.html +++ b/src/index.html @@ -3,6 +3,7 @@ + From 6f31072dfb39dad1a34692460e4650a349e6df27 Mon Sep 17 00:00:00 2001 From: Don Marti Date: Thu, 5 May 2022 18:22:33 -0700 Subject: [PATCH 2/2] fix syntax error --- src/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.html b/src/index.html index 0cb2f6ba20..e8b54e2c4f 100644 --- a/src/index.html +++ b/src/index.html @@ -3,7 +3,7 @@ - +