Skip to content
Snippets Groups Projects
Forked from The Tor Project / Applications / Tor Browser
Source project has a limited visibility.
  • Emilio Cobos Álvarez's avatar
    5c525da4
    Bug 1755956 - Add initial boilerplate for origin trials. r=smaug,hsivonen · 5c525da4
    Emilio Cobos Álvarez authored
    This patch imports and implements all the infrastructure for origin
    trial tokens, minus the crypto stuff / token verification.
    
    We still don't hook it anywhere. The intended setup for now would be to
    have the `OriginTrials` object hanging off the `Document` (or global
    perhaps, not sure yet). That has a self-descriptive API to enable trials
    (UpdateFromToken), and check enabledness status (IsEnabled).
    
    There are some tests in the origin-trial-token crate
    (third_party/rust/origin-trial-token/tests.rs). No test for the DOM code
    yet because this isn't hooked into yet.
    
    Differential Revision: https://phabricator.services.mozilla.com/D139033
    5c525da4
    History
    Bug 1755956 - Add initial boilerplate for origin trials. r=smaug,hsivonen
    Emilio Cobos Álvarez authored
    This patch imports and implements all the infrastructure for origin
    trial tokens, minus the crypto stuff / token verification.
    
    We still don't hook it anywhere. The intended setup for now would be to
    have the `OriginTrials` object hanging off the `Document` (or global
    perhaps, not sure yet). That has a self-descriptive API to enable trials
    (UpdateFromToken), and check enabledness status (IsEnabled).
    
    There are some tests in the origin-trial-token crate
    (third_party/rust/origin-trial-token/tests.rs). No test for the DOM code
    yet because this isn't hooked into yet.
    
    Differential Revision: https://phabricator.services.mozilla.com/D139033
This project manages its dependencies using Cargo. Learn more