tor-browser

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

non-secure-context.any.js (542B)


      1 // META: title=Web Locks API: API not available in non-secure context
      2 // META: global=window,dedicatedworker,sharedworker
      3 
      4 'use strict';
      5 
      6 test(t => {
      7  assert_false(self.isSecureContext);
      8  assert_false('locks' in navigator,
      9               'navigator.locks is only present in secure contexts');
     10  assert_false('LockManager' in self,
     11               'LockManager is only present in secure contexts');
     12  assert_false('Lock' in self,
     13               'Lock interface is only present in secure contexts');
     14 }, 'API presence in non-secure contexts');