Closed Bug 1991135 Opened 2 months ago Closed 1 month ago

Add support for <meta name="rating"> behind a pref

Categories

(Core :: DOM: Core & HTML, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
146 Branch
Tracking Status
firefox146 --- fixed

People

(Reporter: bvandersloot, Assigned: bvandersloot)

Details

(Keywords: dev-doc-complete)

Attachments

(2 files)

This is a way to allow the browser to recognize self-labeled adult content. It should consume OS signals (and maybe a user-controlled pref) to drop the user into an about: page, rather than displaying the content of the page.

This provides a better alternative to support a "safe-for-kids" configuration of the web, without requiring cryptographic ID presentment to a third party contracted by the adult site.

See https://www.ietf.org/slides/slides-agews-paper-device-based-age-verification-00.pdf for a position piece on the problem.

Is there a spec issue for this?

Flags: needinfo?(bvandersloot)
Flags: needinfo?(bvandersloot)
Pushed by bvandersloot@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/1f5d422cf8f6 https://hg.mozilla.org/integration/autoland/rev/13bcfc147074 part 1 - Add support for <meta name=rating> behind a pref - r=dom-core,firefox-desktop-core-reviewers ,fluent-reviewers,bolsson,smaug,frontend-codestyle-reviewers,Gijs https://github.com/mozilla-firefox/firefox/commit/33983e6a9923 https://hg.mozilla.org/integration/autoland/rev/6e803561be62 part 2 - Add tests for <meta name=rating> - r=dom-core,firefox-desktop-core-reviewers ,smaug https://github.com/mozilla-firefox/firefox/commit/4851a16d3455 https://hg.mozilla.org/integration/autoland/rev/7879480aa10c apply code formatting via Lando
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 146 Branch
Keywords: dev-doc-needed
QA Whiteboard: [qa-triage-done-c147/b146]

Hi there,

I'm currently working on writing MDN documentation for this feature, and I have a few questions:

  1. I understand that the feature is currently behind a pref. What is the pref? I can't see it listed anywhere, and can't find anything that sounds appropriate in about:config.
  2. Is the HTTP Rating header mentioned in the WHATWG issue also supported, or is it just the <meta> tag for now?
  3. To get the current implementation to work, do I just have to specify the <meta> tag (or the HTTP header) and the device (if restricted) redirects to an error page, or do I need to specify a custom error page somehow?
  4. What is the easiest way to test this on common OSes?
Flags: needinfo?(bvandersloot)
  1. security.restrict_to_adults.always and security.restrict_to_adults.respect_platform will control the behavior. ...always makes Firefox react to the tag whenever it sees it and ...respect_platform only does this if the OS parental control signal is seen by Firefox.
  2. Just the meta tag for now.
  3. It'll take you to the browser's error page: about:restricted
  4. Enabling security.restrict_to_adults.always then visiting https://restricted-to-adults.pages.dev as a test page. Alternatively, enable parental controls in the OS, set security.restrict_to_adults.respect_platform=true, restart Firefox, then visit https://restricted-to-adults.pages.dev
Flags: needinfo?(bvandersloot)

Thanks!

I've documented this on the Firefox Experimental features page at https://github.com/mdn/content/pull/42119.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: