-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Feature detection for APIs behind enrollment #986
Comments
I think that we'd have to treat this the same way that we would treat It will be extremely important to mark tests with enrollment enabled somehow, since we can't programmatically determine what flags had been enabled from the web app side. |
Yeah I agree. I think BCD may want to mark these features with a note saying "enrollment needed" or so as well, and it would be great if the collector could add such a note automatically if possible. |
We should probably start by writing a BCD guideline for features requiring enrollment? |
Where is the quote "You do not need to enroll to test privacy sandbox features locally. To allow local testing, enable the chrome://flags/#privacy-sandbox-enrollment-overrides developer flag." from? I can't find anything :) I'm not sure if this is the same as origin trials, or if it's a new thing. |
Sorry that was in some MDN docs actually (see here), but other sources say to flip the pref, too: https://github.com/privacysandbox/attestation/blob/main/how-to-enroll.md I looked if/how WPT solves this and it seems many tests just fail? Do you know if these get tested somehow? |
I don't know why these APIs are designed this way. They could have been exposed and then fail with an error that enrollment is required. That would at least have helped with feature detection. Now they are invisible until enrolled. |
mdn/browser-compat-data#21194 is a good example how it's hard to verify support for APIs that are gated with enrollment. |
I chatted to @samdutton about these issues, and he asked me some questions and made some points that may help:
|
There is a new gating mechanism for certain APIs. It's called "enrollment". I think it currently affects Google Chrome Desktop, Google Chrome Android and Google Android WebView. The following APIs can't be feature detected by the collector as a consequence:
Google says "You do not need to enroll to test privacy sandbox features locally. To allow local testing, enable the chrome://flags/#privacy-sandbox-enrollment-overrides developer flag."
What should we do? Have the collector flip the preference in Google browsers and then collect results?
Is there another way? How will web developers feature detect these APIs?
@foolip thoughts?
The text was updated successfully, but these errors were encountered: