Add support for <meta name="rating"> behind a pref
Categories
(Core :: DOM: Core & HTML, enhancement)
Tracking
()
| 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.
| Assignee | ||
Comment 1•2 months ago
|
||
| Assignee | ||
Comment 2•2 months ago
|
||
| Assignee | ||
Comment 4•2 months ago
|
||
https://hg.mozilla.org/mozilla-central/rev/13bcfc147074
https://hg.mozilla.org/mozilla-central/rev/6e803561be62
https://hg.mozilla.org/mozilla-central/rev/7879480aa10c
Updated•20 days ago
|
Comment 7•11 days ago
•
|
||
Hi there,
I'm currently working on writing MDN documentation for this feature, and I have a few questions:
- 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.
- Is the HTTP Rating header mentioned in the WHATWG issue also supported, or is it just the <meta> tag for now?
- 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?
- What is the easiest way to test this on common OSes?
| Assignee | ||
Comment 8•8 days ago
|
||
security.restrict_to_adults.alwaysandsecurity.restrict_to_adults.respect_platformwill control the behavior....alwaysmakes Firefox react to the tag whenever it sees it and...respect_platformonly does this if the OS parental control signal is seen by Firefox.- Just the meta tag for now.
- It'll take you to the browser's error page:
about:restricted - Enabling
security.restrict_to_adults.alwaysthen visiting https://restricted-to-adults.pages.dev as a test page. Alternatively, enable parental controls in the OS, setsecurity.restrict_to_adults.respect_platform=true, restart Firefox, then visit https://restricted-to-adults.pages.dev
Comment 9•7 days ago
|
||
Thanks!
I've documented this on the Firefox Experimental features page at https://github.com/mdn/content/pull/42119.
Description
•