tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

ua-client-hints.idl (1266B)


      1 // GENERATED CONTENT - DO NOT EDIT
      2 // Content was automatically extracted by Reffy into webref
      3 // (https://github.com/w3c/webref)
      4 // Source: User-Agent Client Hints (https://wicg.github.io/ua-client-hints/)
      5 
      6 dictionary NavigatorUABrandVersion {
      7  DOMString brand;
      8  DOMString version;
      9 };
     10 
     11 dictionary UADataValues {
     12  DOMString architecture;
     13  DOMString bitness;
     14  sequence<NavigatorUABrandVersion> brands;
     15  sequence<DOMString> formFactors;
     16  sequence<NavigatorUABrandVersion> fullVersionList;
     17  DOMString model;
     18  boolean mobile;
     19  DOMString platform;
     20  DOMString platformVersion;
     21  DOMString uaFullVersion; // deprecated in favor of fullVersionList
     22  boolean wow64;
     23 };
     24 
     25 dictionary UALowEntropyJSON {
     26  sequence<NavigatorUABrandVersion> brands;
     27  boolean mobile;
     28  DOMString platform;
     29 };
     30 
     31 [Exposed=(Window,Worker)]
     32 interface NavigatorUAData {
     33  readonly attribute FrozenArray<NavigatorUABrandVersion> brands;
     34  readonly attribute boolean mobile;
     35  readonly attribute DOMString platform;
     36  Promise<UADataValues> getHighEntropyValues(sequence<DOMString> hints);
     37  UALowEntropyJSON toJSON();
     38 };
     39 
     40 interface mixin NavigatorUA {
     41  [SecureContext] readonly attribute NavigatorUAData userAgentData;
     42 };
     43 
     44 Navigator includes NavigatorUA;
     45 WorkerNavigator includes NavigatorUA;