Revision ed8099ac2129f3f7a0f9f3a5e30e3b581d54cdee authored by Philipp Hancke on 23 July 2018, 08:58:44 UTC, committed by Philipp Hancke on 25 July 2018, 15:46:40 UTC
makes most new transceiver tests pass by avoiding addTrack(track)
which does not work in Firefox yet.
1 parent 6c8ab50
Raw File
non-secure-context.tentative.html
<!DOCTYPE html>
<meta charset=utf-8>
<title>Web Locks API: API not available in non-secure context</title>
<link rel=help href="https://github.com/inexorabletash/web-locks">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
'use strict';

test(t => {
  assert_false(window.isSecureContext);
  assert_false('locks' in navigator,
               'navigator.locks is only present in secure contexts');
  assert_false('LockManager' in self,
               'LockManager is only present in secure contexts');
  assert_false('Lock' in self,
               'Lock interface is only present in secure contexts');
}, 'API presence in non-secure contexts');
</script>
back to top