This content originally appeared on web.dev and was authored by Sam Dutton
Origin trials are a way to test a new or experimental web platform feature.
Origin trials are usually only available on a first-party basis: they only work for a single registered origin. If a developer wants to test an experimental feature on other origins where their content is embedded, those origins all need to be registered for the origin trial, each with a unique trial token. This is not a scalable approach for testing scripts that are embedded across a number of sites.
Third-party origin trials make it possible for providers of embedded content to try out a new feature across multiple sites.
Third-party origin trials don't make sense for all features. Chrome will only make the third-party origin trial option available for features where embedding code on third-party sites is a common use case. Getting started with Chrome's origin trials provides more general information about how to participate in Chrome origin trials.
If you participate in an origin trial as a third-party provider, it will be your responsibility to notify and set expectations with any partners or customers whose sites you intend to include in the origin trial. Experimental features may cause unexpected issues and browser vendors may not be able to provide troubleshooting support.
Supporting third-party origin trials allows for broader participation, but also increases the potential for overuse or abuse of experimental features, so a "trusted tester" approach is more appropriate. The greater reach of third-party origin trials requires additional scrutiny and additional responsibility for web developers that participate as third-party providers. Requests to enable a third-party origin trial may be reviewed in order to avoid problematic third-party scripts affecting multiple sites. The Origin Trials Developer Guide explains the approval process.
Check Chrome Platform Status for updates on progress with third-party origin trials.
How to register for a third-party origin trial
-
Select a trial from the list of active trials.
-
On the trial's registration page, enable the option to request a third-party token, if available.
-
Select one of the choices for restricting usage for a third-party token:
- Standard Limit: This is the usual limit of 0.5% of Chrome page loads.
- User Subset: A small percentage of Chrome users will always be excluded from the trial, even when a valid third-party token is provided. The exclusion percentage varies (or might not apply) for each trial, but is typically less than 5%.
-
Click the Register button to submit your request.
-
Your third-party token will be issued immediately, unless further review of the request is required. (Depending on the trial, token requests may require review.)
-
If review is required, you'll be notified by email when the review is complete and your third-party token is ready.
How to provide feedback
If you're registering for a third-party origin trial and have feedback to share on the process or ideas on how we can improve it, please create an issue on the Origin Trials GitHub code repo.
Find out more
- Getting started with Chrome's origin trials
- Origin Trials Guide for Web Developers
- Chrome Platform Status
Photo by Louis Reed on Unsplash.
This content originally appeared on web.dev and was authored by Sam Dutton
Sam Dutton | Sciencx (2020-10-01T00:00:00+00:00) What are third-party origin trials?. Retrieved from https://www.scien.cx/2020/10/01/what-are-third-party-origin-trials/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.