Origin trials can be enabled by script in a page, by adding a new <meta> tag to the document, with a valid trial token. For example, this could be a library/third-party script included in the top-level document, first-party script conditionally adding a token based on client-side logic, etc.
Some features may integrate with the OT framework by checking the enabled state on load, and then plumbing the result through to the browser, or other locations. Ideally, the enabled state of a trial would be always be determined by querying the OT framework on demand, but that isn't always feasible.
For integrations that effectively cache the enabled state of a trial, it would be useful to provide a notification if a trial is later enabled via script.
Comment 1 by chrisha@chromium.org
, Oct 15